Skip to content
rocky edited this page Jul 22, 2024 · 1 revision

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 check
$ git commit --amend .
$ git push origin HEAD # get CI testing going early

Make sure pyenv is running and check versions

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

Python 3.6 to 3.10

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

Python 3.2 to 3.5

$ ./admin-tools/merge-for-3.2.sh
$ make check-full
$ ./admin-tools/check-3.2-3.5-versions.sh
$ git push origin HEAD

Python 3.0 to 3.2

$ ./admin-tools/merge-for-3.0.sh
$ make check-full
$ admin-tools/check-3.0-3.2-versions.sh
$ git push origin HEAD

Check package from github

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

Make packages and check

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

Check packages

$ twine check dist/trepan3k-$__version__*

Release on github

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

Get on PyPI

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

Check on https://pypi.org/project/trepan3k/

Push and Pull tags:

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

Move dist files to uploaded

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

Bump version do dev

In trepan/version.py bump number and add .dev0`.