|
|
@ -40,6 +40,12 @@ class PyTest(TestCommand): |
|
|
|
|
|
|
|
|
|
|
|
ROOT = os.path.dirname(__file__) |
|
|
|
ROOT = os.path.dirname(__file__) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tests_requirements = [ |
|
|
|
|
|
|
|
"pyquery", "flask", "cairosvg", |
|
|
|
|
|
|
|
'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort', |
|
|
|
|
|
|
|
'pytest' |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
# Explicitly specify the encoding of pygal/__init__.py if we're on py3. |
|
|
|
# Explicitly specify the encoding of pygal/__init__.py if we're on py3. |
|
|
|
kwargs = {} |
|
|
|
kwargs = {} |
|
|
|
if sys.version_info[0] == 3: |
|
|
|
if sys.version_info[0] == 3: |
|
|
@ -62,13 +68,14 @@ setup( |
|
|
|
scripts=["pygal_gen.py"], |
|
|
|
scripts=["pygal_gen.py"], |
|
|
|
keywords=[ |
|
|
|
keywords=[ |
|
|
|
"svg", "chart", "graph", "diagram", "plot", "histogram", "kiviat"], |
|
|
|
"svg", "chart", "graph", "diagram", "plot", "histogram", "kiviat"], |
|
|
|
tests_require=["pytest", "pyquery", "flask", "cairosvg"], |
|
|
|
setup_requires=['pytest-runner'], |
|
|
|
|
|
|
|
test_requires=tests_requirements, |
|
|
|
cmdclass={'test': PyTest}, |
|
|
|
cmdclass={'test': PyTest}, |
|
|
|
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 |
|
|
|
}, |
|
|
|
}, |
|
|
|
classifiers=[ |
|
|
|
classifiers=[ |
|
|
|
"Development Status :: 4 - Beta", |
|
|
|
"Development Status :: 4 - Beta", |
|
|
|