Compare commits

...

5 commits

Author SHA1 Message Date
Simon Willison
7d7f5f61fd
Use extras_require so pip can install test dependencies
https://github.com/pypa/pip/issues/1197#issuecomment-228939212
2018-06-21 20:03:54 -07:00
Simon Willison
69b3a6c7dd
Run pytest manually
python setup.py test appeared to still download a bunch of stuff
https://travis-ci.org/simonw/datasette/jobs/395306188
2018-06-21 19:59:26 -07:00
Simon Willison
22831a1ac8
Don't use --download-cache argument 2018-06-21 19:53:22 -07:00
Simon Willison
b9046332c4
Tell pip to use explicit download cache 2018-06-21 19:51:10 -07:00
Simon Willison
749b6f0d74
Cache pip wheels between runs in Travis, refs #323 2018-06-21 16:57:49 -07:00
2 changed files with 15 additions and 4 deletions

View file

@ -7,7 +7,13 @@ python:
# Executed for 3.5 AND 3.5 as the first "test" stage:
script:
- python setup.py test
- pip install -U pip wheel
- pip install .[test]
- pytest
cache:
directories:
- $HOME/.cache/pip
# This defines further stages that execute after the tests
jobs:

View file

@ -47,10 +47,15 @@ setup(
datasette=datasette.cli:cli
''',
setup_requires=['pytest-runner'],
extras_require={
'test': [
'pytest==3.6.0',
'aiohttp==2.3.2',
'beautifulsoup4==4.6.0',
]
},
tests_require=[
'pytest==3.6.0',
'aiohttp==2.3.2',
'beautifulsoup4==4.6.0',
'datasette[test]',
],
classifiers=[
'Development Status :: 4 - Beta',