The document describes how to release hpo-toolkit
to PyPi and conda-forge
.
- update documentation notebooks to present the latest features
- create a release branch
- remove deprecated methods targeted for removal in this version. The
TODO
markers are labeled using the target version (e.g.TODO[v0.3.0]
) - bump versions to a release:
src/hpotk/__init__.py
recipe/meta.yaml
- ensure the CI passes, check that coverage levels are acceptable
- deploy to PyPi (described below)
- merge to
main
- create the release tag and GitHub version
- merge
main
todevelopment
- bump versions to a
dev
version
# https://conda-forge.org/#contribute
The following packages are required for testing, building, and deployment to PyPi:
tox
build
twine
Consider creating a dedicated virtual environment with the above packages. Then, run the following
to deploy hpo-toolkit
to PyPi:
cd hpo-toolkit
# Test
tox run
# Build
python3 -m build
# Deploy
python3 -m twine upload dist/*
# Clear the deployed files
rm -rf dist
The commands will run tests, build source distribution and a wheel, and deploy the source distribution and wheel to PyPi. During deployment, you will be prompted for your PyPi credentials.