Release process¶
Building the package¶
Ensure Microsoft Visual C++ Build Tools are installed.
Install the required Python packages:
pip install -r requirements.txt
Build the package by running:
python setup.py build_ext
python setup.py sdist
python setup.py bdist_wheel
sdist- creates a source distribution,bdist_wheel- builds a wheel distribution.
Install the package locally in editable mode for testing:
pip install -e .
Building the documentation¶
Build the documentation:
cd docs
make clean
make html
View the documentation by opening the following file in your browser:
docs/_build/html/index.html
Uploading to PyPI¶
Create a pull request to merge into the
mainbranch:
feature/branch_name–>developdevelop–>main
Update the version number in
setup.py:
setup(
...
version="X.Y.Z",
)
Publish a new release on GitHub:
Navigate to Releases > Draft a new release > Choose a tag > Create a new tag (vX.Y.Z) > Publish release
Verify that the
build_deployjob is successful in the “Actions” tab.
If the job fails, debug the issue, delete the tag, and try again.
git push origin --delete vX.Y.Z