Browse Source

Fix travis target

pull/374/head
Florian Mounier 8 years ago
parent
commit
382c0fdd80
  1. 13
      .travis.yml
  2. 5
      setup.py

13
.travis.yml

@ -8,18 +8,7 @@ python:
- nightly - nightly
- pypy - pypy
install: install: pip install .[test]
- pip install .
- pip install pygal_maps_world
- pip install pygal_maps_fr
- pip install pygal_maps_ch
- pip install pytest
- pip install pytest-flake8
- pip install pytest-cov
- pip install lxml
- pip install pyquery
- pip install cairosvg
- pip install coveralls
script: py.test pygal/ --flake8 --cov-report= --cov=pygal script: py.test pygal/ --flake8 --cov-report= --cov=pygal

5
setup.py

@ -50,7 +50,8 @@ else:
cairosvg = 'cairosvg==0.5' cairosvg = 'cairosvg==0.5'
tests_requirements = [ tests_requirements = [
"pyquery", "flask", cairosvg, "pyquery", "flask", cairosvg, 'lxml', 'pygal_maps_world', 'pygal_maps_fr',
'pygal_maps_ch', 'coveralls',
'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort', 'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort',
'pytest' 'pytest'
] ]
@ -79,7 +80,7 @@ setup(
package_data={'pygal': ['css/*', 'graph/maps/*.svg']}, package_data={'pygal': ['css/*', 'graph/maps/*.svg']},
extras_require={ extras_require={
'lxml': ['lxml'], 'lxml': ['lxml'],
'png': ['cairosvg'], 'png': [cairosvg],
'test': tests_requirements 'test': tests_requirements
}, },
classifiers=[ classifiers=[

Loading…
Cancel
Save