Skip to content

Commit 5232a88

Browse files
committed
Fix broken version string and regex check
1 parent 7cb5f25 commit 5232a88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# parse the version instead of importing it to avoid dependency-related crashes
88
with open('repomate_plug/__version.py', mode='r', encoding='utf-8') as f:
99
line = f.readline()
10-
__version__ = line.split('=')[1].strip(" '\"")
11-
assert re.match(r'\d\.\d\.\d', __version__)
10+
__version__ = line.split('=')[1].strip(" '\"\n")
11+
assert re.match(r'^\d\.\d\.\d$', __version__)
1212

1313
test_requirements = ['pytest', 'pytest-cov', 'codecov']
1414
required = ['pluggy']

0 commit comments

Comments
 (0)