Add functionality to automatically parse version number from setup.py for peach-config build #14

Merged
mhfowler merged 2 commits from version-number into main 2021-03-16 13:40:35 +00:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit 9544954ab7 - Show all commits

View File

@ -15,7 +15,6 @@ def get_version_from_setup_file(file_path):
with open(file_path, 'r') as f:
lines = f.read().splitlines()
for line in lines:
print(line)
match = re.match('.*version = "(\S+)",', line)
if match:
version = match.group(1)