Commit a70bc7ff authored by Mark Hymers's avatar Mark Hymers

Add release notes

Signed-off-by: Mark Hymers's avatarMark Hymers <>
parent c3674a23
Pipeline #744 passed with stage
in 1 minute and 48 seconds
......@@ -2,3 +2,4 @@ include utils/*
include doc/*
include Makefile
include LICENSE.txt
How to release anamnesis
* Check that all MRs which are intended to be in this release have been merged into master
* Check that master builds cleanly in CI
* Set the version and release numbers appropriately in `` in master
* Check that the documentation builds
make doc-html
* Run the test suite for python2 and python3 and check there are no failures
make testv2
make testv3
* Ensure that you have an up-to-date python3-twine available. You may have to create a
virtualenv and install it that way. If you need to test it, test against ``
rather than the real `` (see the Packaging Python Documents tutorial at
* Ensure that you have a gitlab API token set up for ``
* Tag the release in gitlab:
git tag x.y.z
git push --tags
* Wait for CI to complete and download the artifacts for PyPi
* Check the artefacts - untar the source tarball and run the tests again
* Upload the artefacts to twine (from the `dist/` directory containing the unzipped artefacts.
An example output is below:
python3 -m twine upload *
Enter your username: xxx
Enter your password: yyy
Uploading distributions to
Uploading anamnesis-1.0.0-py2-none-any.whl ...
* Store the release in gitlab (including links to pypi) [TODO: Write a script for this]
You will need to update the variables in the curl snippet below:
curl --header 'Content-Type: application/json' \
--data '{ "name": "x.y.z", "tag_name": "x.y.z", "description": "Release description here", "assets": { "links": [{ "name": "anamnesis-x.y.z.tar.gz", "url": "" }, { "name": "anamnesis-x.y.z-py2-non-any.whl", "url": ""}, { "name": "anamnesis-x.y.z-py3-none-any.whl", "url": ""}] } }' \
--request POST ""
After Uploading
* Test that you can pip install the toolbox in a clean virtualenv:
mkdir /tmp/anamnesis-test
cd /tmp/anamnesis/test
virtualenv -p /usr/bin/python3 .
. bin/activate
pip3 install anamnesis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment