Skip to content
rocky edited this page Jul 22, 2024 · 6 revisions

Table of Contents

Get latest sources:

$ git pull

Change version in trepan/version.py:

$ emacs trepan/version.py
$ source trepan/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .

Update ChangeLog:

$ make ChangeLog

Update NEWS.md from 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

Check against older versions

$ . ./admin-tools/check-older-versions.sh

Make packages and tag

$ . ./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

Check package on github

$ [[ ! -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

Release on github

Goto https://github.com/rocky/python2-trepan/releases/new

Get on PyPI

$ twine upload dist/trepan2-${__version__}*.{whl,gz}

Push tags:

$ git pull --tags
$ git push --tags

Move dist files to uploaded

$ mv -v dist/trepan2-${__version__}* dist/uploaded

Bump version to dev

In xdis/version.py, bump number and add .dev0.