-
Notifications
You must be signed in to change notification settings - Fork 124
/
setup.py
60 lines (52 loc) · 1.97 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
57
58
59
60
from setuptools import setup, find_packages
from io import open
def get_version(filename="django_nvd3/__init__.py", varname="__version__"):
glb = {}
with open(filename, encoding='utf-8') as fp:
for line in fp:
if varname in line:
exec(line, glb)
break
return glb[varname]
def readfile(filename):
with open(filename, encoding='utf-8') as fp:
return fp.read()
readme = readfile('README.rst')
history = readfile('CHANGELOG.rst').replace('.. :changelog:', '')
setup(
name='django-nvd3',
version=get_version(),
description="Django NVD3 - Chart Library for d3.js",
long_description=readme + '\n\n' + history,
keywords='django, nvd3, chart, graph, d3',
url='http://github.com/areski/django-nvd3',
author='Belaid Arezqui',
author_email='[email protected]',
license='MIT',
zip_safe=False,
packages=find_packages(include=['django_nvd3', 'django_nvd3.*']),
install_requires=["Django", "python-nvd3"],
test_suite='tests',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'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',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)