summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-04 16:05:56 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-04 16:05:56 +0100
commitbebeef1bb5b7e91da8ffaa01bf46df0ab4b89591 (patch)
tree3b0f9cb3f32116474ef065b29fdd6379d9c73cf6
parent980d45c37435cb18a94644ad672b6a10126a6b31 (diff)
downloadsandboxlib-bebeef1bb5b7e91da8ffaa01bf46df0ab4b89591.tar.gz
Use PBR 'postversioning', and update release process0.1.1
Rather than specifying the version number in setup.cfg, PBR will work it out from the latest Git tag, which saves a lot of faff. PBR is excellent!
-rw-r--r--HACKING.rst10
-rw-r--r--setup.cfg1
2 files changed, 7 insertions, 4 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 3f4d676..a7573d6 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -3,8 +3,12 @@ The 'sandboxlib' library uses the PEP-8 coding style, as a guide.
Release process
---------------
-Basically, tag the commit you're going to release, build and upload a source
-distribution tarball to PyPI_, and then increment the version number.
+Basically, tag the commit you're going to release with a sensible version
+number, then build and upload a source distribution tarball to PyPI_.
+
+The 'sandboxlib' library uses PBR_, which makes packaging pretty easy. In
+particular, note that _PBR will work out a version number automatically from
+Git tags.
You need
- an account on PyPI with access to the 'sandboxlib' project
@@ -13,9 +17,9 @@ You need
Process:
1. Run tests: ``sudo tox``
+2. Create and push tag: ``git tag --annotate -m "sandboxlib version 0.0.0" 0.0.0 && git push --tags``
2. Create source distribution tarball: ``python ./setup.py sdist``
3. Upload to PyPI: ``twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/sandboxlib-0.0.0.tar.gz``
-4. Create and push tag: ``git tag --annotate -m "sandboxlib version 0.0.0" 0.0.0 && git push --tags``
I intend to follow the `PBR Linux/Python Compatible Semantic Versioning`_
version scheme for this library. This is based on the `semantic versioning`_
diff --git a/setup.cfg b/setup.cfg
index e931ab1..d0de480 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,5 @@
[metadata]
name = sandboxlib
-version = 0.1.1
summary = Sandboxing Library for Python
description-file =
README.rst