-
-
Notifications
You must be signed in to change notification settings - Fork 13
Releasing
R. Bernstein edited this page Nov 7, 2021
·
1 revision
Table of Contents
- Get latest sources:
- Change version in xasm/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 xasm/version.py
$ source xasm/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
$ admin-tools/check-versions.sh
$ admin-tools/make-dist.sh
$ pyenv local 3.9.7
$ twine check dist/xasm-$__version__*
$ git tag release-python-2.4-$__version__
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 3.8.6
$ pip install -e git://github.com/rocky/python-xasm.git#egg=xasm
$ pydisasm --version
$ pydisasm src/xasm/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall xasm
$ popd
Goto https://github.com/rocky/python-xasm/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-xasm.git@$__version__#egg=xasm
$ pydisasm --version
$ pydisasm src/xasm/__pycache__/__pkginfo__.cpython-38.pyc
$ pip uninstall xasm
$ popd
$ twine upload dist/xasm-${__version__}*
Check on https://pypi.org/project/xasm/
$ git push --tags
$ git pull --tags
$ mv -v dist/xasm-${__version__}* dist/uploaded
In xasm/version.py bump number and add
.dev0`.