forked from nedbat/byterun
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Releasing
rocky edited this page Jul 22, 2024
·
16 revisions
Table of Contents
- Get latest sources:
- Change version in xpython/version.py:
- Update ChangeLog:
- Update NEWS.md from ChangeLog. Then:
- Python 3.3 to 3.5
- Python 3.1 to 3.2
- Python 2.4 to 2.7
- Make packages and check
- Check package on github
- Release on Github
- Get on PyPI
- Push/pull tags:
- Move dist files to uploaded
- Bump version to dev
$ git pull
$ emacs xpython/version.py
$ source xpython/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ emacs NEWS.md
$ remake -c check
$ git commit --amend .
$ git push # get CI testing going early
$ ./admin-tools/check-newest-versions.sh
$ ./admin-tools/merge-for-3.3.sh
$ make check-full
$ ./admin-tools/check-3.3-3.5-versions.sh
$ git push origin HEAD
$ ./admin-tools/merge-for-3.1.sh
$ make check-full
$ git push origin HEAD
$ ./admin-tools/merge-for-2.4.sh
$ ./admin-tools/make-dist-3.1-3.2.sh
$ git tag release-python-3.1-$__version__
$ ./admin-tools/make-dist-3.3-3.5.sh
$ git tag release-python-3.3-$__version__
$ ./admin-tools/make-newest-dist.sh
$ twine check dist/x[-_]python-$__version__*
$ $ [[ ! -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/xpython.git#egg=x-python
$ xpython --version
$ xpython src/x-python/xpython/__pycache__/vm.cpython-38.pyc
$ pip uninstall x-python
$ popd
Goto https://github.com/rocky/x-python/releases/new
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
$ pyenv local 3.7.5
$ pip install -e git://github.com/rocky/x-python.git@${VERSION}#egg=x-python
$ xpython -V # see that new version appears
$ pip uninstall x-python
$ popd
$ twine upload dist/x[-_]python-${__version__}*
Check on https://pypi.org/project/x-python/
$ git push --tags
$ git pull --tags
$ mv -v dist/x[_-]python-${__version__}* dist/uploaded
In xdis/version.py bump number and add
.dev0`.