Skip to content

Commit ad32217

Browse files
author
Justin Boswell
committed
only dump setuptools.setup block
1 parent 2cea44c commit ad32217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

continuous-delivery/update-version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
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)
17+
18+
setup = contents[contents.rfind('setuptools.setup'):]
19+
print(setup)

0 commit comments

Comments
 (0)