How To Make A Release¶
Update docs/changelog.txt
Update version in docs/conf.py, setup.py.
commit changes.
Tag a version, e.g.
git tag v3.2.0
push changes:
git push git push –tags
Build project. This will generate translated language files.
make build
Upload release to pypi.python.org
# update setuptools if needed. #pip install -U pip setuptools twine
python setup.py sdist bdist_wheel upload
or
python setup.py sdist bdist_wheel twine upload dist/django-cas-ng-3.5.9.tar.gz django_cas_ng-3.5.9-py2.py3-none-any.whl
Create a new release on https://github.com/mingchen/django-cas-ng/releases
Troubleshooting
$ make build CommandError: Can’t find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.
$ brew install gettext $ export PATH=$PATH:/usr/local/Cellar/gettext/0.19.8.1/bin $ make build
error: invalid command ‘bdist_wheel’
$ pip install wheel