Skip to content

Commit

Permalink
Fixing dependencies version. Split test and production requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
aenriquerg committed Aug 10, 2018
1 parent d412ac1 commit f72fcb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ before_install:
- pip install coveralls coverage
install:
- pip install -r requirements.txt
- pip install -r requirements-test.txt
script:
- coverage run -m py.test
- coverage report -m
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest==3.6.3
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
setuptools
pytest
ply
ply==3.11
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
with open("requirements.txt", "r") as f:
install_requires = [str(req) for req in pkg_resources.parse_requirements(f)]

with open("requirements-test.txt", "r") as f:
install_test_requires = [str(req) for req in pkg_resources.parse_requirements(f)]

setuptools.setup(
name="blindtex",
version="0.0.1",
Expand All @@ -22,7 +25,7 @@
include_package_data = True,
install_requires=install_requires,
extras_require = {
'test': ['coverage', 'pytest', 'pytest-cov'],
'test': install_test_requires,
},
classifiers=(
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit f72fcb1

Please sign in to comment.