From 20e0899ff3ac7d5bf67b07ba0e6892057f0e4b80 Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Fri, 11 Oct 2024 13:00:35 +0200 Subject: [PATCH] Fix incorrect fields in pyproject.toml --- python/pyproject.toml | 22 ++++++---------------- python/tox.ini | 1 + 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 32197fa..394aea6 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,5 +1,6 @@ [build-system] requires = ["setuptools>=72", "wheel", "setuptools_scm[toml]>=8"] +build-backend = "setuptools.build_meta" [project] name = "etos_api" @@ -13,6 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License" ] +requires-python = ">=3.9" dependencies = [ "etos_lib==4.3.1", "etcd3gw~=2.3", @@ -30,31 +32,16 @@ dependencies = [ "jsontas~=1.4", "packageurl-python~=0.11", "cryptography>=42.0.4,<43.0.0", - "setuptools_scm~=8.0" ] -[options] -zip_safe = false -include_package_data = true -python_requires = ">=3.4" - -[options.packages.find] -where = "src" -exclude = ["tests"] - [project.urls] Documentation = "https://etos.readthedocs.io/" Homepage = "https://github.com/eiffel-community/etos-api" Repository = "https://github.com/eiffel-community/etos-api" -[project.scripts] - [project.optional-dependencies] testing = ["pytest", "pytest-cov"] -[test] -extras = true - [tool.build_sphinx] source_dir = "docs" build_dir = "build/sphinx" @@ -72,4 +59,7 @@ norecursedirs = ["dist", "build", ".tox"] testpaths = ["tests"] [tool.setuptools_scm] -root = ".." \ No newline at end of file +root = ".." + +[tool.setuptools.packages] +find = { where = ["src"], exclude = ["tests"] } \ No newline at end of file diff --git a/python/tox.ini b/python/tox.ini index dab8a6c..15f38ab 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -33,5 +33,6 @@ commands = [testenv:pydocstyle] deps = pydocstyle + tomli commands = pydocstyle .