-
-
Notifications
You must be signed in to change notification settings - Fork 155
Releasing
rocky edited this page Jul 22, 2024
·
7 revisions
Table of Contents
- Get latest sources:
- Change version in decompyle3/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog. Then:
- Make sure pyenv is running and check newer versions
- 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 decompyle3/version.py
$ source decompyle3/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ emacs NEWS.md
$ make check
$ git commit --amend .
$ git push # get CI testing going early
$ admin-tools/check-versions.sh
$ . ./admin-tools/make-dist.sh
$ twine check dist/decompyle3-${__version__}*
$ 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
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
$ 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
.