From a28b1d176cdc5ee8c1558aabcaf0c3be3f28655c Mon Sep 17 00:00:00 2001 From: Dave Cowden Date: Wed, 13 Apr 2016 22:23:11 -0400 Subject: [PATCH] changed to use tagged version in a build --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 1eedd31..988a00e 100644 --- a/setup.py +++ b/setup.py @@ -16,10 +16,10 @@ from setuptools import setup #if we are building in travis, use the build number as the sub-minor version -version_list = ['0','4','0'] -if 'TRAVIS_BUILD_NUMBER' in os.environ.keys(): - version_list[-1] = os.environ['TRAVIS_BUILD_NUMBER'] -version = '.'.join(version_list) +version = '0.5-SNAPSHOT' +if 'TRAVIS_TAG' in os.environ.keys(): + version= os.environ['TRAVIS_TAG'] + setup( name='cadquery',