Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

tox: Add a -noextras factor #9030

Merged
merged 1 commit into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/9030.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a `-noextras` factor to `tox.ini`, to support running the tests with no optional dependencies.
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
envlist = packaging, py35, py36, py37, py38, py39, check_codestyle, check_isort

[base]
extras = test
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaict this was never used.

deps =
python-subunit
junitxml
Expand All @@ -25,10 +24,15 @@ deps =
# install the "enum34" dependency of cryptography.
pip>=10

# default settings for all tox environments
[testenv]
deps =
{[base]deps}
extras = all, test
extras =
# install the optional dependendencies for tox environments without
# '-noextras' in their name
!noextras: all
test

setenv =
# use a postgres db for tox environments with "-postgres" in the name
Expand Down