summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--setup.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index bd67b38..b230aac 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,4 +18,4 @@ deploy:
file: 'dist/*.whl'
skip_cleanup: true
on:
- repo: xcolour/unbiased
+ tags: true
diff --git a/setup.py b/setup.py
index 2feb200..06dad3d 100644
--- a/setup.py
+++ b/setup.py
@@ -5,10 +5,10 @@ buildnum = os.environ.get('TRAVIS_BUILD_NUMBER')
if buildnum is None:
version = '0.dev0'
else:
- version = buildnum
+ version = buildnum[:7]
gitrev = os.environ.get('TRAVIS_COMMIT')
if gitrev is not None:
- version = '{}+{}'.format(version, gitrev)
+ version = '{}-{}'.format(version, gitrev)
setup(
name="unbiased",