-
-
Notifications
You must be signed in to change notification settings - Fork 94
Releasing
R. Bernstein edited this page Sep 25, 2021
·
33 revisions
Table of Contents
- Get latest sources:
- Change version in xdis/version.py.
- Update ChangeLog:
- Update NEWS.md from ChangeLog. Then:
- 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.
- Update NEWS.md from master branch
- Check against older versions
- Make packages and tag
- 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 xdis/version.py
$ source xdis/version.py
$ echo $__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
$ emacs NEWS.md
$ make check
$ git commit --amend .
$ git push # get CI testing going early
$ make check-full
$ admin-tools/check-newest-versions.sh
$ . ./admin-tools/setup-python-3.3.sh
$ git merge master
$ make check-full
$ . ./admin-tools/setup-python-3.1.sh
$ git merge python-3.3-to-3.5
$ admin-tools/check-3.1-3.2-versions.sh
$ . ./admin-tools/setup-python-2.4.sh
$ git merge python-3.1-to-3.2
$ make check-full
$ . ./admin-tools/check-2.4-2.7-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
$ git commit -m"Get ready for release $__version__" .
$ git push origin HEAD
$ admin-tools/check-2.4-2.7-versions.sh
$ admin-tools/make-dist-2-4-2.7.sh
$ pyenv local 3.9.7
$ twine check dist/xdis-$__version__*
$ git tag release-python-2.4-$__version__
$ . ./admin-tools/make-dist-3.1-3.2.sh
$ . ./admin-tools/make-dist-3.3-3.5.sh
$ . ./admin-tools/make-dist-newer.sh
$ twine check dist/xdis-$__version__*
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 3.8.6
$ pip install -e git://github.com/rocky/python-xdis.git#egg=xdis
$ pydisasm --version
$ pydisasm src/xdis/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall xdis
$ popd
Goto https://github.com/rocky/python-xdis/releases/new
Now check the tagged release. (Checking the untagged release was previously done).
Todo: turn this into a script in admin-tools
$ pushd /tmp/gittest
$ pip install -e git://github.com/rocky/python-xdis.git@$__version__#egg=xdis
$ pydisasm --version
$ pydisasm src/xdis/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall xdis
$ popd
$ twine upload dist/xdis-${__version__}*
Check on https://pypi.org/project/xdis/
$ git push --tags
$ git pull --tags
$ mv -v dist/xdis-${__version__}* dist/uploaded
In xdis/version.py bump number and add
.dev0`.