-
-
Notifications
You must be signed in to change notification settings - Fork 5
Releasing
rocky edited this page Feb 25, 2023
·
14 revisions
Table of Contents
- Get latest sources:
- Check that Mathics isn't broken with this code:
- Change version in mathics/version.py
- Make release branch:
- Update Changes
- Create PR and check CI on github.
- Check package from github
- Make packages and check
- Release on Github
- Upload the release to PyPI
- Post-Release
$ git pull
$ make check-mathics
Update __version__
in mathics_scanner/version.py
.
$ source mathics_scanner/version.py # to set in POSIX shell
$ echo $__version__
$ git checkout -b release-$__version__
$ git commit -m"Get ready for release $__version__" .
$ make ChangeLog
Update CHANGES.rst
from ChangeLog
.
$ make check
$ git commit --amend .
http://rst.ninjs.org/ can be used for checking the RsT.
Go over spelling with codespell.
$ git push -u origin HEAD # get CI testing going early
$ git checkout master $ git pull origin HEAD
Todo: turn this into a script in admin-tools
$ [[ ! -d /tmp/gittest ]] && mkdir /tmp/gittest; pushd /tmp/gittest
$ pyenv local 3.10.1
$ pip install -e git+https://github.com/mathics3/mathics-scanner.git#egg=mathics-scanner
$ (cd /tmp/gittest/src/mathics-scanner/ && make)
$ python -m mathics_scanner.generate.rl_inputrc inputrc-no-unicode
$ pip uninstall mathics-scanner
$ popd
$ ./admin-tools/check-versions.sh
$ ./admin-tools/make-dist.sh
$ twine check dist/Mathics_Scanner-$__version__*
Goto https://github.com/mathics3/mathics-scanner/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
$ pip install -e git+https://github.com/mathics3/mathics-scanner.git@${__version__}#egg=mathics-scanner
$ (cd /tmp/gittest/src/mathics-scanner/ && make)
$ python -m mathics_scanner.generate.rl_inputrc inputrc-no-unicode
$ pip uninstall mathics-scanner
$ popd
Upload it to PyPI with twine
$ twine upload dist/Mathics_Scanner-${__version__}*
Move uploaded versions to dist/uploaded
.
- Update docker setup
- Update
__version__
toNEXT_VERSION.dev0