Skip to content

Commit

Permalink
Use extras_require[test] instead of tests_require (#35)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cottsay committed Feb 7, 2024
1 parent 78837ab commit 053e30d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,7 +45,6 @@ tests_require =
pytest
pytest-cov
scspell3k>=2.2
zip_safe = true

[options.package_data]
colcon_lcov_result.verb.configuration = lcovrc
Expand Down

0 comments on commit 053e30d

Please sign in to comment.