Compare commits
1 Commits
main
...
issue-105-
Author | SHA1 | Date | |
---|---|---|---|
4ab1f15e8d |
|
@ -1 +1 @@
|
|||
__version__ = '0.1.12'
|
||||
__version__ = '0.1.10'
|
||||
|
|
7
setup.py
7
setup.py
|
@ -161,14 +161,17 @@ 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] = {PACKAGE_NAME}
|
||||
packages: set[str] = set([PACKAGE_NAME])
|
||||
|
||||
# Search recursively
|
||||
for init_file in root_path.rglob('__init__.py'):
|
||||
packages.add(str(init_file.parent).replace('/', '.'))
|
||||
|
||||
print(f'Found following packages: {packages}')
|
||||
return sorted(packages)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user