Commit 0ef59d10 authored by Christophe Benz's avatar Christophe Benz
Browse files

Use setuptools "extra require" for tests

parent cff5b062
......@@ -9,8 +9,7 @@ Run tests:
stage: test
image: python:3.7-slim-stretch
before_script:
- pip install pytest pytest-vcr
- pip install --editable .
- pip install --editable .[test]
script:
- pytest
......
......@@ -61,6 +61,9 @@ jupyter notebook index.ipynb
Run tests:
```bash
# Only once
pip install -e .[test]
pytest
# Specify an alterate API URL
......
......@@ -80,6 +80,13 @@ setup(
'pandas >= 0.21',
],
extras_require={
'test': [
'pytest',
'pytest-vcr'
]
},
setup_requires=[
'pytest-runner',
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment