-
Notifications
You must be signed in to change notification settings - Fork 12
Releasing
rocky edited this page Jul 22, 2024
·
6 revisions
Table of Contents
- Get latest sources:
- Change version in trepan/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog:
- Switch to python-2.4, sync that up and build that first since it creates a tarball which we don't want.
- Check against older versions
- Make packages and tag
- Check package on github
- Release on github
- Get on PyPI
- Push tags:
- Move dist files to uploaded
- Bump version to dev
$ git pull
$ emacs trepan/version.py
$ source trepan/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ make clean_pyc
$ make check-short
$ git commit --amend .
$ git push origin HEAD # get CI testing going early
Switch to python-2.4, sync that up and build that first since it creates a tarball which we don't want.
$ . ./admin-tools/merge-python-2.4.sh
# Add and fix merge conflicts
$ git commit
$ . ./admin-tools/check-older-versions.sh
$ . ./admin-tools/make-dist-older.shs
$ pyenv local 3.9 && twine check dist/trepan2-$__version__* && pyenv local 2.7
$ git tag release-python-2.4-$__version__
$ . ./admin-tools/make-dist-newer.sh
$ pyenv local 3.9 && twine check dist/trepan2-$__version__* && pyenv local 2.7
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 2.7
$ pip install -e git+https://github.com/rocky/python2-trepan.git#egg=trepan
$ trepan2 --version
$ trepan2 trepan2
$ pip uninstall trepan2
$ popd
Goto https://github.com/rocky/python2-trepan/releases/new
$ twine upload dist/trepan2-${__version__}*.{whl,gz}
$ git pull --tags
$ git push --tags
$ mv -v dist/trepan2-${__version__}* dist/uploaded
In xdis/version.py
, bump number and add .dev0
.