From d517561e80cec0c249ae8467f991f602019ed196 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 7 Mar 2018 19:51:09 -0500 Subject: save the git commit in the description --- .travis.yml | 2 -- setup.py | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b230aac..c171321 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,5 +17,3 @@ deploy: file_glob: true file: 'dist/*.whl' skip_cleanup: true - on: - tags: true diff --git a/setup.py b/setup.py index 06dad3d..625bc00 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,17 @@ buildnum = os.environ.get('TRAVIS_BUILD_NUMBER') if buildnum is None: version = '0.dev0' else: - version = buildnum[:7] + version = buildnum gitrev = os.environ.get('TRAVIS_COMMIT') -if gitrev is not None: - version = '{}-{}'.format(version, gitrev) +if gitrev is None: + description = '' +else: + description = gitrev setup( name="unbiased", version=version, + description=description, packages=['unbiased', 'unbiased.sources'], package_data={ 'unbiased': [ -- cgit v1.2.3