-
-
Notifications
You must be signed in to change notification settings - Fork 410
Releasing
rocky edited this page Mar 16, 2024
·
11 revisions
Table of Contents
- Get latest sources:
- Change version in uncompyle6/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog. Then:
- Make sure pyenv is running and check newer versions
- Python 3.3 to 3.5
- Python 3.0 to 3.2
- Python 2.4 to 2.7
- Make packages and check
- Check package on github
- Release on Github
- Pull tags:
- Upload to PyPI
- Move dist files to uploaded
- Bump version to dev
git pull
$ emacs uncompyle6/version.py
$ source uncompyle6/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ emacs NEWS.md
$ make check
$ git commit --amend .
$ git push origin HEAD # get CI testing going early
$ admin-tools/check-newest-versions.sh
$ ./admin-tools/merge-for-3.3.sh
$ git commit .
$ make check
$ ./admin-tools/check-3.3-3.5-versions.sh
$ git push origin HEAD
$ ./admin-tools/merge-for-3.0.sh
$ git commit .
$ make check
$ ./admin-tools/check-3.3-3.5-versions.sh
$ git push origin HEAD
$ ./admin-tools/merge-for-2.4.sh
$ make check
$ . ./admin-tools/check-2.4-2.7-versions.sh
$ git push origin HEAD
$ ./admin-tools/make-dist-2.4-2.7.sh
$ pyenv local 3.9
$ twine check dist/uncompyle6-$__version__*
$ git tag release-python-2.4-$__version__
$ ./admin-tools/make-dist-3.0-3.2.sh
$ git tag release-python-3.0-$__version__
$ ./admin-tools/make-dist-3.3-3.5.sh
$ git tag release-python-3.3-$__version__
$ ./admin-tools/make-dist-newest.sh
$ twine check dist/uncompyle6-$__version__*
$ pushd /tmp/gittest
$ pip install -e git+https://github.com/rocky/python-uncompyle6.git#egg=uncompyle6
$ uncompyle6 --version
$ uncompyle6 src/uncompyle6/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall uncompyle6
$ popd
Goto https://github.com/rocky/python-uncompyle6/releases/new
Now check the tagged release. (Checking the untagged release was previously done).
Todo: turn this into a script in admin-tools
$ pushd /tmp/gittest
$ pip install -e git+https://github.com/rocky/python-uncompyle6.git@$__version__#egg=uncompyle6
$ uncompyle6 --version
$ uncompyle6 src/uncompyle6/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall uncompyle6
$ popd
$ git pull --tags
$ twine upload dist/uncompyle6-${__version__}*
Check on https://pypi.org/project/uncompyle6/
$ mv -v dist/uncompyle6-${__version__}* dist/uploaded
In uncompyle6/version.py
bump number and add .dev0
.