Compare commits
2 Commits
86a40f05d9
...
866459842d
Author | SHA1 | Date | |
---|---|---|---|
866459842d | |||
0b227aed84 |
|
@ -1 +1 @@
|
|||
__version__ = '0.1.58'
|
||||
__version__ = '0.1.59'
|
||||
|
|
7
setup.py
7
setup.py
|
@ -42,11 +42,9 @@ def parse_version_file(text: str) -> str:
|
|||
|
||||
|
||||
def find_python_packages() -> list[str]:
|
||||
"""
|
||||
Find all python packages. (Directories containing __init__.py files.)
|
||||
"""
|
||||
"""Find all python packages (directories containing __init__.py files)."""
|
||||
root_path = Path(PACKAGE_NAME)
|
||||
packages: set[str] = set([PACKAGE_NAME])
|
||||
packages: set[str] = {PACKAGE_NAME}
|
||||
|
||||
# Search recursively
|
||||
for init_file in root_path.rglob('__init__.py'):
|
||||
|
@ -54,6 +52,7 @@ def find_python_packages() -> list[str]:
|
|||
|
||||
return sorted(packages)
|
||||
|
||||
|
||||
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||
version = parse_version_file(f.read())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user