mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-13 11:33:25 +01:00
tox: Add a -noextras factor (#9030)
... for running the tests with no optional deps.
This commit is contained in:
parent
8d3d264052
commit
1d5c021a45
2 changed files with 7 additions and 2 deletions
1
changelog.d/9030.misc
Normal file
1
changelog.d/9030.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Add a `-noextras` factor to `tox.ini`, to support running the tests with no optional dependencies.
|
8
tox.ini
8
tox.ini
|
@ -2,7 +2,6 @@
|
|||
envlist = packaging, py35, py36, py37, py38, py39, check_codestyle, check_isort
|
||||
|
||||
[base]
|
||||
extras = test
|
||||
deps =
|
||||
python-subunit
|
||||
junitxml
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue