Skip to content

Releasing

rocky edited this page Jul 22, 2024 · 7 revisions

Table of Contents

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

Update NEWS.md from ChangeLog. Then:

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

Make sure pyenv is running and check newer versions

$ admin-tools/check-versions.sh

Make packages and check

$ . ./admin-tools/make-dist.sh
$ twine check dist/decompyle3-${__version__}*

Check package on github

$ pushd /tmp/gittest
$ pyenv local 3.8.17
$ pip install -e git+https://github.com/rocky/python-decompile3#egg=decompyle3
$ decompyle3 --version
$ decompyle3 src/decompyle3/__pkginfo__.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-decompile3@$__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.