🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
This commit is contained in:
parent
3dd6579e1e
commit
6ed0a589c2
3
setup.py
3
setup.py
|
@ -21,7 +21,8 @@ PACKAGE_DESCRIPTION_SHORT = """
|
||||||
Unofficial library for reading contract states from Partisia Blockchain.""".strip()
|
Unofficial library for reading contract states from Partisia Blockchain.""".strip()
|
||||||
|
|
||||||
def parse_version_file(text: str) -> str:
|
def parse_version_file(text: str) -> str:
|
||||||
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
text = re.sub('^#.*$', '', 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