Compare commits
No commits in common. "acb99df8b6c1eca4894b2b0e9aa31346d8651b92" and "25eae78e768f4492d51870c23476d20823c1cb49" have entirely different histories.
acb99df8b6
...
25eae78e76
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,7 +4,6 @@
|
|||
/secrets/
|
||||
/private_deps/
|
||||
/data/
|
||||
/config/
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
|
|
3
setup.py
3
setup.py
|
@ -15,6 +15,7 @@ PACKAGE_NAME = 'socials_util'
|
|||
with open('README.md') as f:
|
||||
readme = f.read()
|
||||
|
||||
|
||||
def parse_version_file(text: str) -> str:
|
||||
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||
if match is None:
|
||||
|
@ -22,9 +23,11 @@ def parse_version_file(text: str) -> str:
|
|||
raise Exception(msg)
|
||||
return match.group(2)
|
||||
|
||||
|
||||
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||
version = parse_version_file(f.read())
|
||||
|
||||
|
||||
def parse_requirements(text: str) -> list[str]:
|
||||
return text.strip().split('\n')
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.9'
|
||||
__version__ = '0.1.8'
|
Loading…
Reference in New Issue
Block a user