Skip to content

Commit

Permalink
outsourced requireements
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Jan 4, 2017
1 parent c6326a9 commit a751fd8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ python:
- 3.4
- 3.5
install:
- pip install pytest==3.0.5
- pip install pytest-pep8==1.0.6
- pip install pytest-cov==2.4.0
- pip install -r requirements.txt
- python setup.py install
script:
- python setup.py test
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest==3.0.5
pytest-pep8==1.0.6
pytest-cov==2.4.0
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
from setuptools import setup
import pytest


with open('requirements.txt') as reqs_file:
reqs = reqs_file.read().splitlines()


setup(name='olib',
version='0.1.0',
description='olivers lib',
Expand All @@ -13,5 +18,5 @@
license='MIT',
zip_safe=False,
test_suite='tests',
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
tests_require=reqs,
setup_requires=['pytest-runner'])

0 comments on commit a751fd8

Please sign in to comment.