Skip to content

Commit 8bafa67

Browse files
author
Naor Livne
committed
adding automatic update of the version number based on the branch the sdk is being built from
1 parent f875746 commit 8bafa67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ deploy:
1515
password:
1616
secure: SxcnVy5rN996xry9WQLCXPjCPS5tjX6d7f1AjRdGmILLEHfyXtD7U3XgIoQfxOddasqfplYE2J4l8XGDcnPr52/y1Zh8ZT2flm+6LcP1EFpe4qMn8+1znsny851t7eZowEpfrqdRUcxGXPewyz3DXNU8dz0rmn7cVz0blKxQOhw7bqZbq42SJGXp0y87xB7CFxJOuJ7AR5riKAwj/j7wQU3cYF20BbAXTi9P6+TrDgq/a+0YDjYm2vMyHeEsi2U/27m8haG50TibufTBszL1jrfQyP02tjASvMrXMJVrjJYGtcF1upT46b2DnkzQ+fXm4QrySvWHSmkCK1jP4KsUY+qnEb8AU4Ag+Zro7B33uQezPkvpQyBPzP3LM3bLD5a29dAnLeJ4sX3b6yj+bylHBhNU460HOnxpOaS1J280p+ZTCH8Pq5cPf51J2e8TOCCFPOhqLa/1WGG6XI1Vjvx00kPPci/MWMEKiLg3Q2eJyTTiKKJMdsIrjNMT+i1KYuBine4Xq3k9HcavsufJJ2ZBVntO6IYMW4t5hq+zkT55ESQAoLN/BzDXpJHb50kB/sDnrIq7/oL2KMxW4I4xzqN2usUUisI09hs3NOt3lcbh6dugPm6yFYAXtjmCTbO6gLWVTiKH8OHoWc43xmc6DfLegwuYdXeXYIEvXUS1nXDe6aM=
1717
distributions: sdist bdist_wheel
18-
skip_existing: true
18+
skip_existing: true
19+
on:
20+
all_branches: true
21+
condition: $TRAVIS_BRANCH != master

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from setuptools import setup, find_packages
2+
import os
3+
14
__author__ = 'Naor Livne'
25
__author_email__ = 'naorlivne@gmail.com'
3-
__version__ = '2.2.0'
4-
5-
from setuptools import setup, find_packages
6+
__version__ = os.getenv("TRAVIS_BRANCH")
67

78
with open('README.md') as f:
89
long_description = f.read()

0 commit comments

Comments
 (0)