Skip to content

Commit

Permalink
Use extras_require[test] instead of tests_require (#28)
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 9, 2024
1 parent 49af6ef commit a67bf9d
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 @@ -32,7 +32,10 @@ install_requires =
colcon-core
coverage
packages = find:
tests_require =
zip_safe = false

[options.extras_require]
test =
flake8>=3.6.0
flake8-blind-except
flake8-builtins
Expand All @@ -47,7 +50,6 @@ tests_require =
pytest
pytest-cov
scspell3k>=2.2
zip_safe = false

[options.packages.find]
exclude =
Expand Down

0 comments on commit a67bf9d

Please sign in to comment.