Skip to content

Commit

Permalink
add test dependencies to extras_require
Browse files Browse the repository at this point in the history
Allows you to `pip install .[test]`
  • Loading branch information
thijstriemstra committed Feb 27, 2017
1 parent 9852e11 commit 0a01c45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def read_file(fname):

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
test_deps = ["mock", "pytest", "pytest-cov"]

setup(
name="luma.core",
Expand All @@ -34,11 +35,12 @@ def read_file(fname):
packages=["luma.core", "luma.core.legacy"],
install_requires=["pillow>=4.0.0", "smbus2", "spidev", "RPi.GPIO"],
setup_requires=pytest_runner,
tests_require=["mock", "pytest", "pytest-cov", "python-coveralls"],
tests_require=test_deps,
extras_require={
'docs': [
'sphinx >= 1.5.1'
]
],
'test': test_deps
},
zip_safe=False,
classifiers=[
Expand Down

0 comments on commit 0a01c45

Please sign in to comment.