Skip to content

Commit a67bf9d

Browse files
authored
Use extras_require[test] instead of tests_require (#28)
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.
1 parent 49af6ef commit a67bf9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.cfg

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ install_requires =
3232
colcon-core
3333
coverage
3434
packages = find:
35-
tests_require =
35+
zip_safe = false
36+
37+
[options.extras_require]
38+
test =
3639
flake8>=3.6.0
3740
flake8-blind-except
3841
flake8-builtins
@@ -47,7 +50,6 @@ tests_require =
4750
pytest
4851
pytest-cov
4952
scspell3k>=2.2
50-
zip_safe = false
5153

5254
[options.packages.find]
5355
exclude =

0 commit comments

Comments
 (0)