Skip to content

Commit a1fe7f2

Browse files
Merge pull request #25 from JaviCerveraIngram/CPS-4-version-fix
Version fix
2 parents 30b7f64 + 64f78db commit a1fe7f2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ install:
2323
script:
2424
- flake8 connect
2525
- pytest --cov-report=xml --cov=./connect
26+
- sed -i "s/version='0.0.0'/version='${TRAVIS_TAG}'/g" setup.py
2627

2728
after_success:
2829
- bash <(curl -s https://codecov.io/bash)

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""
88

99
from os.path import abspath, dirname, exists, join
10-
from os import environ
1110
from setuptools import find_packages, setup
1211

1312
try: # for pip >= 10
@@ -25,7 +24,6 @@
2524
'sdk.txt',
2625
), session='None')
2726

28-
VERSION = environ.get('TRAVIS_TAG')
2927
PACKAGES = find_packages(exclude=['tests*'])
3028

3129
DOC = ''
@@ -35,7 +33,7 @@
3533
setup(
3634
name='connect-sdk',
3735
author='Ingram Micro',
38-
version=VERSION,
36+
version='0.0.0',
3937
keywords='sdk connect connect automation',
4038
packages=PACKAGES,
4139
description='Connect Python SDK',

0 commit comments

Comments
 (0)