-
-
Notifications
You must be signed in to change notification settings - Fork 160
Releasing
R. Bernstein edited this page Oct 1, 2025
·
9 revisions
Table of Contents
- Look at the PyPI page for errors in documentation
- Get latest sources:
- Change version in decompyle3/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog.
- Make sure pyenv is running and check newer versions
- Python 3.7 to 3.10
- 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
Look at https://pypi.org/project/decompyle3/ and check over documentation.
git pull
$ emacs decompyle3/version.py
$ source decompyle3/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ codespell 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.7.sh
$ git commit .
$ make check
$ ./admin-tools/check-3.7-3.10-versions.sh
$ git push origin HEAD
$ ./admin-tools/make-dist-3.7-3.10.sh
$ git tag release-python-3.7-$__version__
$ pyenv local 3.9
$ twine check dist/decompyle3-$__version__*
$ ./admin-tools/make-dist-newest.sh
$ twine check dist/decompyle3-$__version__*
$ pushd /tmp/gittest
$ pip install -e git+https://github.com/rocky/python-decompyle3.git#egg=decompyle3
$ decompyle3 --version
$ decompyle3 src/decompyle3/main.py
$ pip uninstall decompyle3
$ popd
Goto https://github.com/rocky/python-decompile3/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-decompyle3.git@$__version__#egg=decompyle3
$ decompyle3 --version
$ decompyle3 src/decompyle3/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall decompyle3
$ popd
$ git pull --tags
$ twine upload dist/decompyle3-${__version__}*{whl,gz}
Check on https://pypi.org/project/decompyle3/
$ mv -v dist/decompyle3-${__version__}* dist/uploaded
In decompyle3/version.py
bump number and add .dev0
.