Compare commits
No commits in common. "e26caaa98cc65b5da9f12468e36488605dc236d9" and "1f989184d249b8124147c704f63c1ae55874c648" have entirely different histories.
e26caaa98c
...
1f989184d2
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.70'
|
__version__ = '0.1.69'
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -55,8 +55,7 @@ This program collects several small data fetchers, for downloading personal
|
||||||
data spread around the internet.""".strip()
|
data spread around the internet.""".strip()
|
||||||
|
|
||||||
def parse_version_file(text: str) -> str:
|
def parse_version_file(text: str) -> str:
|
||||||
text = re.sub('^#.*', '', text, flags=re.MULTILINE)
|
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||||
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
|
||||||
if match is None:
|
if match is None:
|
||||||
msg = 'Malformed _version.py file!'
|
msg = 'Malformed _version.py file!'
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user