Skip to content

Releasing

R. Bernstein edited this page Oct 1, 2025 · 9 revisions

Table of Contents

Look at the PyPI page for errors in documentation

Look at https://pypi.org/project/decompyle3/ and check over documentation.

Get latest sources:

git pull

Change version in decompyle3/version.py:

$ emacs decompyle3/version.py
$ source decompyle3/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .

Update ChangeLog:

$ make ChangeLog
$ codespell ChangeLog

Update NEWS.md from ChangeLog.

$ emacs NEWS.md
$ make check
$ git commit --amend .
$ git push origin HEAD   # get CI testing going early

Make sure pyenv is running and check newer versions

$ admin-tools/check-newest-versions.sh

Python 3.7 to 3.10

$ ./admin-tools/merge-for-3.7.sh
$ git commit .
$ make check
$ ./admin-tools/check-3.7-3.10-versions.sh
$ git push origin HEAD

Make packages and check

$ ./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__*

Check package on github

$ 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

Release on Github

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

Pull tags:

$ git pull --tags

Upload to PyPI

$ twine upload dist/decompyle3-${__version__}*{whl,gz}

Check on https://pypi.org/project/decompyle3/

Move dist files to uploaded

$ mv -v dist/decompyle3-${__version__}* dist/uploaded

Bump version to dev

In decompyle3/version.py bump number and add .dev0.

Clone this wiki locally