- Create release branch
X.Y.Zfromdevelop. - Update
VERSIONincastle/version.pyto the new version - Update the
CHANGELOG.rstfor the impending release git commit -am "release X.Y.Z"(where X.Y.Z is the new version)- Push to Github, make PR to the develop branch, and when approved, merge.
- Pull latest
develop, merge it tomaster, and push it. - Make a release on Github from the
masterbranch, specify tag asvX.Y.Zto create a tag. git checkout master && git pullrm -rf distpython3 setup.py sdist bdist_wheeltwine upload dist/*
When you change something in the README.rst make sure it is in the correct format, as pypi will ignore the file if it is not valid.
pip3 install collective.checkdocs
pip3 install pygments
python3 setup.py checkdocs
To upload to testpypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/*