mbox series

[v5,0/9] bitbake-setup PyPI Packaging

Message ID 20260708-add-pypi-v10-v5-0-7d5f457f4b9c@windriver.com
Headers show
Series bitbake-setup PyPI Packaging | expand

Message

Rob Woolley July 9, 2026, 2:03 a.m. UTC
This is an update to the previous series to rebase on master. It is also
available at: https://github.com/robwoolley/bitbake/tree/add-pypi-v10

The latest changes were to:

* rebase on HEAD
* re-run "vendoring sync ." to update the sync commit from before
* rename contrib/pypi/ to packaging-pypi/bitbake-setup/
* add instructions on using vendoring to packaging-pypi/bitbake-setup/BUILD.md
* rename the temporary directory from packaging_workspace to packaging-workspace

Here are the steps of the test procedure I ran again for this series:

```
python3 -m venv venv

source venv/bin/activate

pip install build

BB_SKIP_PYPI_TESTS=no bin/bitbake-selftest -v bb.tests.setup.PyPIPackagingTest

packaging-pypi/bitbake-setup/package-bitbake-setup.py -v

cd packaging-workspace/

pip install -e .

which bitbake-setup

bitbake-setup --version

bitbake-setup list

pip uninstall bitbake-setup

python3 -m build

pip install dist/bitbake_setup-2.19.0-py3-none-any.whl

which bitbake-setup

bitbake-setup --version

cd $(mktemp -d)

bitbake-setup init

. /tmp/tmp.cHLz5edo1w/bitbake-builds/oe-nodistro-master/build/init-build-env

which bitbake

cd /tmp/tmp.cHLz5edo1w/bitbake-builds/oe-nodistro-master/layers/bitbake

git remote add bitbake-setup-pypi /ala-lpggp31/rwoolley/bitbake-setup/bitbake

git remote update bitbake-setup-pypi

git checkout --track bitbake-setup-pypi/b4/add-pypi-v8

cd $BUILDDIR

bitbake quilt-native

bitbake core-image-minimal

bitbake-selftest
```

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
Rob Woolley (9):
      bitbake-setup: Add version option
      pypi: Add PyPI packaging for bitbake-setup
      pypi: Add packaging documentation for developers
      gitignore: Ignore temporary staging directory
      Add pyproject.toml and vendor.txt for vendoring
      Add vendor patches
      Update vendorized modules
      vendor.txt: Add typing_extensions for bs4
      Update typing_extensions with vendoring

 .gitignore                                         |    1 +
 bin/bitbake-selftest                               |    2 +
 bin/bitbake-setup                                  |    1 +
 lib/bb/_vendor/__init__.py                         |   18 -
 .../{bs4/LICENSE => beautifulsoup4.LICENSE}        |    0
 lib/bb/_vendor/bs4/AUTHORS                         |   49 -
 lib/bb/_vendor/bs4/CHANGELOG                       | 1839 ---------
 lib/bb/_vendor/bs4/__init__.py                     |  856 ++--
 lib/bb/_vendor/bs4/_deprecation.py                 |   80 +
 lib/bb/_vendor/bs4/_typing.py                      |  205 +
 lib/bb/_vendor/bs4/_warnings.py                    |   98 +
 lib/bb/_vendor/bs4/builder/__init__.py             |  828 ++--
 lib/bb/_vendor/bs4/builder/_html5lib.py            |  592 +--
 lib/bb/_vendor/bs4/builder/_htmlparser.py          |  426 +-
 lib/bb/_vendor/bs4/builder/_lxml.py                |  387 +-
 lib/bb/_vendor/bs4/css.py                          |  268 +-
 lib/bb/_vendor/bs4/dammit.py                       | 1622 +++++---
 lib/bb/_vendor/bs4/diagnose.py                     |  169 +-
 lib/bb/_vendor/bs4/element.py                      | 3494 ++++++++++------
 lib/bb/_vendor/bs4/exceptions.py                   |   28 +
 lib/bb/_vendor/bs4/filter.py                       |  764 ++++
 lib/bb/_vendor/bs4/formatter.py                    |  211 +-
 lib/bb/_vendor/bs4/py.typed                        |    0
 lib/bb/_vendor/ply.pyi                             |    1 +
 lib/bb/_vendor/ply/__init__.py                     |    1 +
 lib/bb/_vendor/ply/cpp.py                          |  918 +++++
 lib/bb/_vendor/ply/ctokens.py                      |  133 +
 lib/bb/_vendor/ply/lex.py                          |  845 ++--
 lib/bb/_vendor/ply/yacc.py                         | 2231 +++++-----
 lib/bb/_vendor/ply/ygen.py                         |   74 +
 lib/bb/_vendor/progressbar.pyi                     |    1 +
 lib/bb/_vendor/progressbar/__init__.py             |    4 +-
 lib/bb/_vendor/progressbar/progressbar.py          |   21 +-
 lib/bb/_vendor/progressbar/widgets.py              |   14 +-
 lib/bb/_vendor/simplediff.pyi                      |    1 +
 lib/bb/_vendor/simplediff/__init__.py              |    2 +-
 lib/bb/_vendor/typing_extensions.LICENSE           |  279 ++
 lib/bb/_vendor/typing_extensions.py                | 4317 ++++++++++++++++++++
 lib/bb/_vendor/typing_extensions.pyi               |    1 +
 lib/bb/tests/setup.py                              |  289 +-
 packaging-pypi/bitbake-setup/BUILD.md              |   67 +
 packaging-pypi/bitbake-setup/LICENSE               |   23 +
 packaging-pypi/bitbake-setup/README.md             |   42 +
 .../bitbake-setup/package-bitbake-setup.py         |   79 +
 packaging-pypi/bitbake-setup/pyproject.toml        |   92 +
 pyproject.toml                                     |   19 +
 vendor.txt                                         |    5 +
 vendor/licenses/ply/LICENSE                        |   32 +
 .../bs4-0010-lib-bs4-Avoid-soupsieve-warning.patch |   40 +
 vendor/patches/bs4-remove-double-imports.patch     |   23 +
 ...lib-implement-basic-task-progress-support.patch |  125 +
 ...-initial-pass-of-SPDX-license-headers-to-.patch |   79 +
 ...gressbar-accept-value-over-initial-maxval.patch |   54 +
 ...-Add-self._fd_console-to-use-for-self._ha.patch |   53 +
 ...ar-Make-bars-show-correctly-with-maxval-0.patch |   31 +
 ...-knotty-Allow-mixing-log-messages-and-pro.patch |   31 +
 56 files changed, 15254 insertions(+), 6611 deletions(-)
---
base-commit: 660965735c7f16a9e864d8d3cb91298db8c39b81
change-id: 20260708-add-pypi-v10-08e8a0c0f01b

Best regards,
--  
Rob Woolley <rob.woolley@windriver.com>