Skip to content

Commit 2cea44c

Browse files
author
Justin Boswell
committed
cleanup, more specific regex
1 parent 317b9ac commit 2cea44c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codebuild/cd/manylinux-x86-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ phases:
88
commands:
99
- export CC=gcc
1010
- cd aws-crt-python
11-
- export PKG_VERSION=$(git describe --tags | cut -f2 -dv)
1211
- /opt/python/cp37-cp37m/bin/python ./continuous-delivery/update-version.py
1312
build:
1413
commands:

continuous-delivery/update-version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
print("Updating setup.py to version {}".format(version))
1212
with open(setup_path, 'r+') as setup_py:
1313
contents = setup_py.read()
14-
contents = re.sub(r'(\s)version=.+,', r'\1version="{}",'.format(version), contents)
14+
contents = re.sub(r'(\s)version="1\.0\.0-dev",', r'\1version="{}",'.format(version), contents)
1515
setup_py.seek(0, os.SEEK_SET)
1616
setup_py.write(contents)
17+
print(contents)

0 commit comments

Comments
 (0)