Преглед на файлове

tox: Add a -noextras factor (#9030)

... for running the tests with no optional deps.
tags/v1.26.0rc1
Richard van der Hoff преди 3 години
committed by GitHub
родител
ревизия
1d5c021a45
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 2 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. +1
    -0
      changelog.d/9030.misc
  2. +6
    -2
      tox.ini

+ 1
- 0
changelog.d/9030.misc Целия файл

@@ -0,0 +1 @@
Add a `-noextras` factor to `tox.ini`, to support running the tests with no optional dependencies.

+ 6
- 2
tox.ini Целия файл

@@ -2,7 +2,6 @@
envlist = packaging, py35, py36, py37, py38, py39, check_codestyle, check_isort envlist = packaging, py35, py36, py37, py38, py39, check_codestyle, check_isort


[base] [base]
extras = test
deps = deps =
python-subunit python-subunit
junitxml junitxml
@@ -25,10 +24,15 @@ deps =
# install the "enum34" dependency of cryptography. # install the "enum34" dependency of cryptography.
pip>=10 pip>=10


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


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


Зареждане…
Отказ
Запис