From 053e30dc8e41265679581693646e43b748e4cca2 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 7 Feb 2024 13:16:43 -0600 Subject: [PATCH] Use extras_require[test] instead of tests_require (#35) This replaces `tests_require` with a pattern that seems to have popped up since pypa/setuptools#931 and pypa/setuptools#1684. It allows test dependencies to be installed by adding `[test]` to the end of the package name. --- setup.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9f2b4c9..9067b77 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,10 @@ python_requires = >=3.6 install_requires = colcon-core>=0.5.6 packages = find: -tests_require = +zip_safe = true + +[options.extras_require] +tests = flake8>=3.6.0 flake8-blind-except flake8-builtins @@ -42,7 +45,6 @@ tests_require = pytest pytest-cov scspell3k>=2.2 -zip_safe = true [options.package_data] colcon_lcov_result.verb.configuration = lcovrc