From 3aca3bc64a7a5cc16496f7b6082d77c9ad5ca629 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Fri, 31 May 2024 15:06:30 +0200 Subject: [PATCH] Move pytest configuration into pyproject.toml Having pytest configuration in setup.cfg if there is also a pyproject.toml could be suprising for some. Moving it to pyproject.toml allows us to completely remove the setup.cfg file, giving users one less place to look for it. --- pyproject.toml | 3 +++ setup.cfg | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 9bf6df9..31e9e44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,3 +3,6 @@ requires = ["setuptools>=64", "setuptools_scm>=8"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] + +[tool.pytest.ini_options] +addopts = "--cov-report= --cov=devpi_builder tests" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index b0e672c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[tool:pytest] -addopts = --cov-report= --cov=devpi_builder tests