travis fixes

This commit is contained in:
Shay Palachy
2017-04-20 11:55:27 +03:00
parent c870617c9f
commit 5519745598
2 changed files with 12 additions and 5 deletions
+4 -3
View File
@@ -11,9 +11,10 @@ before_install:
# coverage submission packages
- pip install codecov
install:
- python setup.py test
script: nosetests --cover-erase --with-coverage --cover-package=cachier -d
# --ignore-files="tests_perf\.py" -coveralls
# Coveralls 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then travis_retry pip install repoze; fi
- pip install ".[test]"
script: pytest --cov=pcachier
# submit coverage
after_success:
# - coveralls
+8 -2
View File
@@ -14,10 +14,14 @@ except ImportError:
import versioneer
TEST_REQUIRES = ['pytest', 'coverage', 'pytest-cov']
README_RST = ''
with open('README.rst') as f:
README_RST = f.read()
setup(
name='cachier',
version=versioneer.get_version(),
@@ -33,8 +37,10 @@ setup(
'pymongo',
'watchdog'
],
setup_requires=['nose', 'coverage'],
test_suite='nose.collector',
extras_require={
'test': TEST_REQUIRES
},
setup_requires=TEST_REQUIRES,
platforms=['linux', 'osx'],
keywords=['cache', 'persistence', 'mongo', 'memoization', 'decorator'],
classifiers=[