From a571608be7a0cd383239b8d7c119813ce6e42afa Mon Sep 17 00:00:00 2001 From: andgineer Date: Thu, 9 Nov 2023 10:29:34 +0100 Subject: [PATCH] pyproject.toml bugs --- pyproject.toml | 16 ++++++++++------ scripts/include_pyproject_requirements.py | 4 +++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 652c06b..6243208 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ readme = "README.md" keywords = [ "asyncio", "boto3", "botocore", "s3", "aws",] classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent",] requires-python = ">=3.7" -dependencies = [ "aiobotocore==2.7.0", "# via -r requirements.in", "aiohttp==3.8.6", "# via aiobotocore", "aioitertools==0.11.0", "# via aiobotocore", "aiosignal==1.3.1", "# via aiohttp", "async-timeout==4.0.3", "# via aiohttp", "attrs==23.1.0", "# via aiohttp", "botocore==1.31.64", "# via aiobotocore", "charset-normalizer==3.3.2", "# via aiohttp", "frozenlist==1.4.0", "# via", "# aiohttp", "# aiosignal", "idna==3.4", "# via yarl", "jmespath==1.0.1", "# via botocore", "multidict==6.0.4", "# via", "# aiohttp", "# yarl", "python-dateutil==2.8.2", "# via botocore", "six==1.16.0", "# via python-dateutil", "urllib3==2.0.7", "# via botocore", "wrapt==1.16.0", "# via aiobotocore", "yarl==1.9.2", "# via aiohttp",] +dependencies = [ "aiobotocore==2.7.0", "aiohttp==3.8.6", "aioitertools==0.11.0", "aiosignal==1.3.1", "async-timeout==4.0.3", "attrs==23.1.0", "botocore==1.31.64", "charset-normalizer==3.3.2", "frozenlist==1.4.0", "idna==3.4", "jmespath==1.0.1", "multidict==6.0.4", "python-dateutil==2.8.2", "six==1.16.0", "urllib3==2.0.7", "wrapt==1.16.0", "yarl==1.9.2",] dynamic = [ "version",] [[project.authors]] name = "Andrey Sorokin" @@ -22,10 +22,14 @@ file = "LICENSE.txt" Homepage = "https://andgineer.github.io/aios3/" documentation = "https://andgineer.github.io/aios3/" +[tool.setuptools] +packages = "find:" + +[tool.setuptools.package-dir] +"" = "src" + +[tool.setuptools.manifest] +include = [ "README.md", "LICENSE.txt",] + [tool.hatch.version] -source = "file" path = "src/aios3/__about__.py" -attr = "__version__" - -[tool.hatch.metadata.hooks.version] -enabled = true diff --git a/scripts/include_pyproject_requirements.py b/scripts/include_pyproject_requirements.py index bdea9d0..f1fd31a 100644 --- a/scripts/include_pyproject_requirements.py +++ b/scripts/include_pyproject_requirements.py @@ -6,7 +6,9 @@ with open(REQUIREMENTS_FILE_NAME, "r", encoding="utf8") as f: - requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")] + requirements = [ + line.strip() for line in f if line.strip() and not line.lstrip().startswith("#") + ] print( f"From {REQUIREMENTS_FILE_NAME} read requirements:" f"\n{requirements[:10]}...\n{len(requirements)} total"