diff options
author | Andrey Kislyuk <kislyuk@gmail.com> | 2017-01-16 12:31:17 -0800 |
---|---|---|
committer | Andrey Kislyuk <kislyuk@gmail.com> | 2017-01-16 12:38:28 -0800 |
commit | bc6d1c2afda04c2004b8a298b687d8ec28ae0a5b (patch) | |
tree | e9ea24e95aafad166163b0bb99594d0bb92ddb26 | |
parent | 69538572a4a5a4f3f8fdc0ebb07b2d42ff389e28 (diff) |
Install test deps via setuptools/pip
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | setup.py | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 32806fe..d8f666c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ addons: - jq before_install: - - pip install --quiet codecov + - pip install --quiet --upgrade pip codecov install: - make install @@ -1,5 +1,5 @@ test_deps: - pip install coverage flake8 wheel + pip install .[test] lint: test_deps ./setup.py flake8 @@ -3,6 +3,8 @@ import os, glob from setuptools import setup, find_packages +tests_require = ["coverage", "flake8", "wheel"] + setup( name="yq", version="2.0.1", @@ -16,6 +18,8 @@ setup( "setuptools", "PyYAML >= 3.11" ], + tests_require=tests_require, + extras_require={"test": tests_require}, packages=find_packages(exclude=["test"]), scripts=glob.glob("scripts/*"), include_package_data=True, |