diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-27 06:20:15 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-02 14:42:02 -0800 |
commit | 543335230ae29acdbc9a9303d93d18406013f332 (patch) | |
tree | fafed719111d604778a33debf77fe6d073bd8de3 /tox.ini | |
parent | 624748f5792a9284189125824993aacfc33e8662 (diff) | |
download | isort-543335230ae29acdbc9a9303d93d18406013f332.tar.gz |
Use tox feature "extras" to install extras_require dependencies
Avoids duplicating the list of dependencies. They will now always stay
in sync with the setuptools definition. The feature was added in tox
2.4 (2016-10-12), so added a "minversion" to the configuration.
https://tox.readthedocs.io/en/latest/config.html#conf-extras
> extras
>
> A list of “extras” to be installed with the sdist or develop install.
> For example, extras = testing is equivalent to [testing] in a pip
> install command.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,5 @@ [tox] +minversion = 2.4 envlist = isort-check, lint, @@ -7,9 +8,9 @@ envlist = [testenv] deps = pytest - pip - pipreqs - requirementslib +extras = + pipfile + requirements commands = py.test test_isort.py {posargs} [testenv:isort-check] |