Skip to content

Commit

Permalink
Consolidate test requirements in file
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Sep 7, 2017
1 parent 6516064 commit 71a4785
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ python:
- "2.7"
- "3.6"
# command to install dependencies
install:
- "pip install nose coverage"
- "pip install -r requirements.txt"
install:
- "pip install -e '.[test]'"
# command to run tests
script: nosetests warrant.tests --nocapture --nologcapture
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
boto3>=1.4.3
envs>=0.3.0
mock>=2.0.0
python-jose>=1.3.2
requests>=2.13.0
3 changes: 3 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock>=2.0.0
nose
coverage
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pip.req import parse_requirements

install_reqs = parse_requirements('requirements.txt', session=False)
test_reqs = parse_requirements('requirements_test.txt', session=False)

version = '0.2.0'

Expand All @@ -26,8 +27,11 @@
maintainer='Brian Jinwright',
packages=find_packages(),
url='https://github.com/capless/warrant',
license='GNU GPL V3',
license='Apache License 2.0',
install_requires=[str(ir.req) for ir in install_reqs],
extras_require={
'test': [str(ir.req) for ir in test_reqs]
},
include_package_data=True,
zip_safe=True,

Expand Down

0 comments on commit 71a4785

Please sign in to comment.