info on how to release

This commit is contained in:
boyska 2019-11-08 15:14:24 +01:00
parent 7db3a2ba3a
commit 318cd3391f
2 changed files with 21 additions and 0 deletions

11
RELEASE.rst Normal file
View file

@ -0,0 +1,11 @@
How to release
===================
Change version number in ``setup.py`` and ``doc/source/conf.py`` and commit it.
Make a tag like ``git tag -s v1.2.3``
``git push --tags``
./publish-release

10
publish-release Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
set -u
ver=$(git describe --exact-match | tr -d v)
python setup.py sdist bdist_wheel
twine upload -s dist/larigira-${ver}*.whl
twine upload -s dist/larigira-${ver}*.tar.gz