Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
57af01ea14 | |||
f230cf8d13 | |||
d5f0e9f324 | |||
3fb6f62810 |
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.10'
|
__version__ = '0.1.12'
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -32,19 +32,17 @@ def parse_version_file(text: str) -> str:
|
||||||
|
|
||||||
|
|
||||||
def find_python_packages() -> list[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)
|
root_path = Path(PACKAGE_NAME)
|
||||||
packages: set[str] = set([PACKAGE_NAME])
|
packages: set[str] = {PACKAGE_NAME}
|
||||||
|
|
||||||
# Search recursively
|
# Search recursively
|
||||||
for init_file in root_path.rglob('__init__.py'):
|
for init_file in root_path.rglob('__init__.py'):
|
||||||
packages.add(str(init_file.parent).replace('/', '.'))
|
packages.add(str(init_file.parent).replace('/', '.'))
|
||||||
|
|
||||||
print(f'Found following packages: {packages}')
|
|
||||||
return sorted(packages)
|
return sorted(packages)
|
||||||
|
|
||||||
|
|
||||||
with open(PACKAGE_NAME + '/_version.py') as f:
|
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||||
version = parse_version_file(f.read())
|
version = parse_version_file(f.read())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user