- Create release branch
X.Y.Z
fromdevelop
. - Update
VERSION
incastle/version.py
to the new version - Update the
CHANGELOG.rst
for 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
master
branch, specify tag asvX.Y.Z
to create a tag. git checkout master && git pull
rm -rf dist
python3 setup.py sdist bdist_wheel
twine 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/*