Skip to content

Commit

Permalink
Add a "test" extra (#357)
Browse files Browse the repository at this point in the history
Similar to the existing "doc" extra, specify a "test" extra with the
relevant dependencies.  Since tornado is needed for the tests, move it
from doc to test.  This will help distributions that package tenacity to
gather the test dependencies without the doc dependencies.
  • Loading branch information
carlwgeorge authored Aug 21, 2023
1 parent 703fe3c commit a29f494
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions releasenotes/notes/add-test-extra-55e869261b03e56d.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
other:
- Add a \"test\" extra
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ tenacity = py.typed
doc =
reno
sphinx
test =
pytest
tornado>=4.5
typeguard

[tool:pytest]
filterwarnings =
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ skip_missing_interpreters = True
usedevelop = True
sitepackages = False
deps =
.[test]
.[doc]
pytest
typeguard
commands =
py3{7,8,9,10,11},pypy3: pytest {posargs}
py3{7,8,9,10,11},pypy3: sphinx-build -a -E -W -b doctest doc/source doc/build
Expand Down

0 comments on commit a29f494

Please sign in to comment.