From a07d01e4ecf39989d5986e47f31d4edb808e3fea Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Fri, 26 Jan 2018 11:15:11 +0900 Subject: [PATCH] Add extras_require for tests --- .travis.yml | 2 +- setup.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e9f11e..54790cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,6 @@ language: python python: - "3.6" install: - - pip install -e . + - pip install -e .[tests] script: - pytest diff --git a/setup.py b/setup.py index 3891d20..1f5a520 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,13 @@ install_requires=[ 'pytest>=3.0,<4', 'pydocstyle>=2.1,<2.2', - 'pytest-codestyle>=1.0,<2.0', - 'pytest-isort>=0.1,<1.0', ], + extras_require={ + 'tests': [ + 'pytest-codestyle>=1.0,<2.0', + 'pytest-isort>=0.1,<1.0', + ], + }, # https://docs.pytest.org/en/latest/writing_plugins.html#making-your-plugin-installable-by-others entry_points={ 'pytest11': [