From 95eea82eeceef1460eabd9f1d2c1f6a5c6ccfacc Mon Sep 17 00:00:00 2001 From: takunomi-build-bot Date: Mon, 7 Jul 2025 01:00:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Repository=20layout=20updated=20?= =?UTF-8?q?to=20latest=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager) --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 49810e0..6d0700a 100644 --- a/setup.py +++ b/setup.py @@ -66,11 +66,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'): @@ -78,6 +76,7 @@ def find_python_packages() -> list[str]: return sorted(packages) + with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read())