Skip to content

How to publish

Maxime Labelle edited this page May 1, 2023 · 1 revision

To publish a new version of the package, complete the following steps:

First, make sure tests pass:

git pristine && git submodule update --init
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt

./scripts/sync-tests
./scripts/run-tests

Then, create the package:

python setup.py sdist bdist_wheel

Recommanded, test the package on TestPYPi before publishing.

twine upload --repository testpypi dist/*

Finally, publish the package

twine upload dist/*
Clone this wiki locally