Python to generate nice looking SVG graph http://pygal.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

#!python
import os
import sys
from setuptools import find_packages
from distutils.cmd import Command
13 years ago
class DisabledTestCommand(Command):
user_options = []
13 years ago
def __init__(self, dist):
13 years ago
raise RuntimeError(
13 years ago
"test command not supported on pygal."
13 years ago
" Use setup.py nosetests instead")
_this_dir = os.path.dirname(__file__)
_readme = os.path.join(_this_dir, 'readme.txt')
_long_description = open(_readme).read().strip()
# it seems that dateutil 2.0 only works under Python 3
dateutil_req = (
13 years ago
['python-dateutil>=1.4,<2.0dev'] if sys.version_info < (3, 0)
else ['python-dateutil>=2.0'])
setup_params = dict(
13 years ago
name="pygal",
description="Python svg graph abstract layer",
13 years ago
long_description=_long_description,
13 years ago
author="Jason R. Coombs, Kozea",
author_email="jaraco@jaraco.com, gayoub@kozea.fr",
url="https://github.com/Kozea/pygal",
13 years ago
packages=find_packages(),
zip_safe=True,
13 years ago
include_package_data=True,
install_requires=[
'cssutils>=0.9.8a3',
'lxml>=2.0',
] + dateutil_req,
13 years ago
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
13 years ago
entry_points={
},
# Don't use setup.py test - nose doesn't support it
# see http://code.google.com/p/python-nose/issues/detail?id=219
cmdclass=dict(
test=DisabledTestCommand,
),
13 years ago
use_2to3=True,
)
if __name__ == '__main__':
from setuptools import setup
setup(**setup_params)