-
Notifications
You must be signed in to change notification settings - Fork 12
how to make a release
rocky edited this page Jun 5, 2022
·
1 revision
Table of Contents
- Get latest sources:
- Change version in trepan/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog:
- Make sure pyenv is running and check newer versions
- 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
- Upload
- Push tags:
$ git pull
$ emacs trepan/version.py
$ source trepan/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ make check-short
$ git commit --amend .
$ git push # get CI testing going early
$ pyenv local && source admin-tools/check-newer-versions.sh
Switch to python-2.4, sync that up and build that first since it creates a tarball which we don't want.
$ source admin-tools/setup-python-2.4.sh
$ git merge master
# Add and fix merge conflicts
$ git commit
$ source admin-tools/check-older-versions.sh
$ . ./admin-tools/make-dist-older.sh
$ pyenv local 3.8.6 && twine check dist/trepan2-$__version__* && pyenv local 2.7.18
$ git tag release-python-2.4-$__version__
$ . ./admin-tools/make-dist-newer.sh
$ pyenv local 3.8.6 && twine check dist/trepan2-$__version__* && pyenv local 2.7.18
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 2.7.18
$ pip install -e git+https://github.com/rocky/python2-trepan.git#egg=trepan2
$ trepan2 --version
$ trepan2 trepan2
$ pip uninstall trepan2
$ popd
Goto https://github.com/rocky/python2-trepan/releases/new
$ pyenv local 3.6.10 && twine upload dist/trepan2-${__version__}* && pyenv local 2.7.18
$ git pull --tags
$ git push --tags
$ mv -v dist/trepan2-${__version__}* dist/uploaded