-
Modify the version in
setup.py
and commit the changes. Development versions should have the following pattern:1.3.1.dev1
Production versions should follow semantic versionning:
1.3.1
-
Stop your local development server:
docker compose down
-
Remove the
build
directory to ensure a clean build (this is especially important when you made changes to setup.py or setup.cfg). Also remove previous builds fromdist
:rm -rf build dist
-
Build the assets, as explained in DEVSETUP.md:
rm -rf souschef/sous_chef/assets/* ./tools/compile_assets.sh
-
Then, use Docker to create the source package and the wheel archive:
docker compose run web python3 setup.py sdist docker compose run web python3 setup.py bdist_wheel
-
If you have a development version, upload it to test PyPI:
twine upload -r testpypi dist/*
For production:
twine upload dist/*
These commands will only work if you have proper permissions to upload to the PyPI souschef project.