From f45fa6ea4cacb09e382a0c91a6bee8965179278d Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Mon, 14 Oct 2024 14:51:14 +0200 Subject: [PATCH] Fix incorrect fields in pyproject.toml (#113) --- pyproject.toml | 22 +++++++++++++--------- tox.ini | 1 + 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1d4e7b0..5c89182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [build-system] requires = ["setuptools>=72", "wheel", "setuptools_scm[toml]>=8"] +build-backend = "setuptools.build_meta" [project] name = "etos_environment_provider" @@ -13,6 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License" ] +requires-python = ">=3.9" dependencies = [ "cryptography>=42.0.4,<43.0.0", "jsontas~=1.3", @@ -29,18 +31,9 @@ Documentation = "https://etos.readthedocs.io/" Homepage = "https://github.com/eiffel-community/etos-environment-provider" Repository = "https://github.com/eiffel-community/etos-environment-provider" -[project.scripts] - [project.optional-dependencies] testing = ["pytest", "pytest-cov"] -[tool.flake8] -exclude = [".tox", "build", "dist", ".eggs", "docs/conf.py"] - -[tool.pytest.ini_options] -addopts = "--cov etos_lib --cov-report term-missing --verbose" -norecursedirs = ["dist", "build", ".tox"] -testpaths = ["tests"] [tool.build_sphinx] source_dir = "docs" @@ -49,3 +42,14 @@ build_dir = "build/sphinx" [tool.devpi.upload] no-vcs = 1 formats = "bdist_wheel" + +[tool.flake8] +exclude = [".tox", "build", "dist", ".eggs", "docs/conf.py"] + +[tool.pytest.ini_options] +addopts = "--cov etos_lib --cov-report term-missing --verbose" +norecursedirs = ["dist", "build", ".tox"] +testpaths = ["tests"] + +[tool.setuptools.packages] +find = { where = ["src"], exclude = ["tests"] } \ No newline at end of file diff --git a/tox.ini b/tox.ini index 9ff533c..9eff780 100644 --- a/tox.ini +++ b/tox.ini @@ -28,5 +28,6 @@ commands = [testenv:pydocstyle] deps = pydocstyle + tomli commands = pydocstyle src tests