From 96d15cb0ccdd0bc340b79a6704c40faebca552ab Mon Sep 17 00:00:00 2001 From: Dave Cowden Date: Wed, 13 Apr 2016 21:21:58 -0400 Subject: [PATCH] add travis build number to subminor version --- setup.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e68a6e6..1eedd31 100644 --- a/setup.py +++ b/setup.py @@ -11,12 +11,19 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - +import os 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) + setup( name='cadquery', - version='0.4.0', + version=version, url='https://github.com/dcowden/cadquery', license='Apache Public License 2.0', author='David Cowden',