Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 36482e0

Browse files
Denys Smirnovdennwc
authored andcommitted
use package version from ci when uploading to pypi
Signed-off-by: Denys Smirnov <[email protected]>
1 parent d4fe220 commit 36482e0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ install:
1616
- docker exec bblfshd bblfshctl driver install bblfsh/python-driver:$BBLFSH_PYTHON_VERSION
1717
- wget https://github.com/bblfsh/client-python/releases/download/v2.2.1/protobuf-python_3.4.1-1_amd64.deb
1818
- sudo dpkg -i protobuf-python_3.4.1-1_amd64.deb
19+
- if [[ ! -z "$TRAVIS_TAG" ]]; then sed -i -e "s/^VERSION\s*=\s*\"[^\"]\+\"/VERSION = \"${TRAVIS_TAG#v}\"/g" setup.py; fi
1920
- pip3 install --upgrade pip
2021
- pip3 install -r requirements.txt
2122
- python3 setup.py --getdeps --log

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
from setuptools import setup, find_packages, Extension
1313
from setuptools.command.build_ext import build_ext
1414

15-
VERSION = "3.0.1"
15+
# The VERSION line is edited automatically during deployments.
16+
# You may change the contents of the string, but do not otherwise edit the line.
17+
VERSION = "3.x.x-dev"
1618
LIBUAST_VERSION = "v3.1.0"
1719
LIBUAST_ARCH = "linux-amd64"
1820
SDK_V1_VERSION = "v1.16.1"

0 commit comments

Comments
 (0)