Browse Source

info on how to release

boyska 4 years ago
parent
commit
318cd3391f
2 changed files with 21 additions and 0 deletions
  1. 11 0
      RELEASE.rst
  2. 10 0
      publish-release

+ 11 - 0
RELEASE.rst

@@ -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 - 0
publish-release

@@ -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