Compare commits

...

2 Commits
v0.1.9 ... main

Author SHA1 Message Date
d30b52879b 🤖 Bumped version to 0.1.10
All checks were successful
Package Python / Package-Python-And-Publish (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s
Run Python tests (through Pytest) / Test (push) Successful in 26s
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-06-04 21:30:34 +02:00
46821eb5d3 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-06-04 21:30:18 +02:00
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
__version__ = '0.1.9'
__version__ = '0.1.10'

View File

@ -3,6 +3,7 @@
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
import re
from pathlib import Path
from setuptools import setup
@ -30,6 +31,20 @@ def parse_version_file(text: str) -> str:
return match.group(2)
def find_python_packages() -> list[str]:
"""
Find all python packages. (Directories containing __init__.py files.)
"""
root_path = Path(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)
with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read())
@ -50,6 +65,7 @@ setup(
author='Jon Michael Aanes',
author_email='jonjmaa@gmail.com',
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
packages=find_python_packages(),
install_requires=REQUIREMENTS_MAIN,
extras_require={
'test': REQUIREMENTS_TEST,