forked from areski/python-nvd3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (48 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /usr/bin/env python
from setuptools import setup
def get_version(filename="nvd3/__init__.py", varname="__version__"):
glb = {}
with open(filename) as fp:
for line in fp:
if varname in line:
exec(line, glb)
break
return glb[varname]
def readfile(filename):
with open(filename) as fp:
return fp.read()
readme = readfile('README.rst')
history = readfile('CHANGELOG.rst').replace('.. :changelog:', '')
setup(
name='python-nvd3',
version=get_version(),
description="Python NVD3 - Chart Library for d3.js",
long_description=readme + '\n\n' + history,
keywords='plot, graph, nvd3, d3',
author='Belaid Arezqui',
author_email='areski@gmail.com',
url='http://github.com/areski/python-nvd3',
license="MIT",
test_suite='tests',
packages=['nvd3'],
include_package_data=True,
zip_safe=False,
install_requires=[
'python-slugify==1.1.4',
'Jinja2>=2.8'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Multimedia :: Graphics :: Presentation',
],
)