Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.63 KB

RELEASING.md

File metadata and controls

68 lines (51 loc) · 1.63 KB

Release Checklist

  • Get master to the appropriate code release state. GitHub Actions should be running cleanly for all merges to master. GitHub Actions status
  • Start from a freshly cloned repo:
cd /tmp
rm -rf humanize
git clone https://github.com/jmoiron/humanize
cd humanize
# Generate translation binaries
scripts/generate-translation-binaries.sh
  • (Optional) Create a distribution and release on TestPyPI:
pip install -U pip build keyring twine
rm -rf build dist
python -m build
twine check --strict dist/* && twine upload --repository-url https://test.pypi.org/legacy/ dist/*
  • (Optional) Check test installation:
pip3 uninstall -y humanize
pip3 install -U -i https://test.pypi.org/simple/ humanize --pre
python3 -c "import humanize; print(humanize.__version__)"
  • Tag with the version number:
git tag -a 2.1.0 -m "Release 2.1.0"
  • Create a distribution and release on live PyPI:
pip install -U pip build keyring twine
rm -rf build dist
python -m build
twine check --strict dist/* && twine upload -r pypi dist/*
  • Check installation:
pip uninstall -y humanize
pip install -U humanize
python3 -c "import humanize; print(humanize.__version__)"
  • Push tag:
git push --tags