-
-
Notifications
You must be signed in to change notification settings - Fork 18
Releasing
rocky edited this page Oct 18, 2025
·
13 revisions
Look at https://pypi.org/project/trepan3k/ and check over documentation.
$ git pull$ emacs trepan/version.py
$ source trepan/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ head -n 500 ChangeLog | codespell -$ emacs NEWS.md
$ make check
$ git commit --amend .
$ git push origin HEAD # get CI testing going early
$ ./admin-tools/check-newest-versions.sh$ admin-tools/check-newest-versions.sh$ ./admin-tools/merge-for-3.11.sh
$ git commit && git commit .
$ make check
$ ./admin-tools/check-3.11-versions.sh
$ git push origin HEAD$ ./admin-tools/merge-for-3.6.sh
$ git commit && git commit .
$ make check
$ ./admin-tools/check-3.6-3.10-versions.sh
$ git push origin HEAD$ ./admin-tools/merge-for-3.3.sh
$ make check
$ ./admin-tools/check-3.3-3.5-versions.sh
$ git push origin HEAD$ ./admin-tools/merge-for-3.0.sh
$ make check
$ admin-tools/check-3.0-3.2-versions.sh
$ git push origin HEADTodo: turn this into a script in admin-tools
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 3.12.6 # 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.2.sh
$ (cd dist && pip install *tarball* )
$ ./admin-tools/make-dist-3.3-3.5.sh
$ (cd dist && pip install *tarball* )
$ ./admin-tools/make-dist-3.6-3.10.sh
$ (cd dist && pip install *tarball* )
$ ./admin-tools/make-dist-3.11.sh
$ (cd dist && pip install *tarball* )
$ ./admin-tools/make-dist-newest.sh
$ (cd dist && pip install *tarball* )
$ twine check dist/trepan3k-$__version__*Goto https://github.com/rocky/python3-trepan/releases/new
Set the version, copy the NEWS.md item, and upload the binaries.
$ git pull --tags
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 the 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/
$ mkdir dist/uploaded/$__version__/
$ mv -v dist/trepan3k-${__version__}* dist/uploaded/$__version__/In trepan/version.py, bump the number and add .dev0.