-
Notifications
You must be signed in to change notification settings - Fork 3
Packaging
Marc-Olivier Buob edited this page Jul 10, 2024
·
15 revisions
The GitHub CI automatically publishes the release once it is drafted. The new release appears after few minutes here.
The steps below are only here to recall what you would have to do without relying on the CI.
- Install the packages needed to interact with PyPI. For example, under Debian-based distribution, run:
sudo apt update
sudo apt install python3-twine- Assuming you're involved in this package, configure your
~/.pypircby providing appropriate token. For further details, see this link.
[pypi]
username = __token__
password = pypi-xxxxxxxxxxxxxxxxxxxxxx
Build, check and upload the package:
poetry build
poetry publishInstall the packages needed to build .rpm and .deb packages:
python3-setuptools-
python3-stdebfor.debpackages -
rpmfor.rpmpackages
For example, under Debian-based distribution, run:
sudo apt update
sudo apt install python3-setuptools python3-stdeb rpmAs for now poetry can't build .deb or .rpm, follow these steps.
To build the .rpm package (in dist/), run:
cd ~/git/pybgl/
python3 setup.py bdist_rpmTo build the .deb package (in deb_dist/), run:
python3 setup.py --command-packages=stdeb.command bdist_deb