-
-
Notifications
You must be signed in to change notification settings - Fork 15
Releasing
rocky edited this page Jul 22, 2024
·
1 revision
Table of Contents
- Get latest sources:
- Change version in trepan/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog:
- Check package from github
- Make sure pyenv is running and check versions
- Switch to python-3.2, sync that up
- Make packages
- Check packages
- Release on github
- Get on PyPI
- Push and Pull tags:
- Move dist files to uploaded
- Bump version do dev
$ git pull
$ emacs trepan/version.py
$ source trepan/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ make check
$ git commit --amend .
$ git push origin HEAD # get CI testing going early
$ admin-tools/check-newer-versions.sh
$ ./admin-tools/merge-for-3.6.sh
$ git commit && git commit .
$ make check-full
$ ./admin-tools/check-3.6-3.10-versions.sh
$ git push origin HEAD
$ ./admin-tools/merge-for-3.2.sh
$ make check-full
$ ./admin-tools/check-3.2-3.5-versions.sh
$ git push origin HEAD
$ ./admin-tools/merge-for-3.0.sh
$ make check-full
$ admin-tools/check-3.0-3.2-versions.sh
$ git push origin HEAD
Todo: turn this into a script in admin-tools
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 3.8.17 # or some other non-current version
$ pip install -e git+https://github.com/rocky/python3-trepan.git#egg=trepan3k
$ trepan3k --version
$ trepan3k trepan3k
$ pip uninstall trepan3k
$ popd
$ . ./admin-tools/make-dist-3.0-3.1.sh
$ git tag release-python-3.0-$__version__
$ . ./admin-tools/make-dist-3.2-3.5.sh
$ git tag release-python-3.2-$__version__
$ . ./admin-tools/make-dist-newer.sh
$ twine check dist/trepan3k-$__version__*
Goto https://github.com/rocky/python3-trepan/releases/new
Set version, copy in NEWS.md
item, upload binaries.
Now check the tagged release. (Checking the untagged release was previously done).
Todo: turn this into a script in admin-tools
$ git pull # to pull down new tag
$ pushd /tmp/gittest
$ pip install -e git+https://github.com/rocky/python3-trepan.git@${__version__}#egg=trepan3k
$ trepan3k --version
$ trepan3k trepan3k
$ pip uninstall trepan3k
$ popd
$ twine upload dist/trepan3k-${__version__}*.{whl,gz}
Check on https://pypi.org/project/trepan3k/
$ git push --tags
$ git pull --tags
$ mv -v dist/trepan3k-${__version__}* dist/uploaded
In trepan/version.py
bump number and add .dev0`.