-
Notifications
You must be signed in to change notification settings - Fork 572
/
setup.py
65 lines (60 loc) · 1.83 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
61
62
63
64
65
import os
from setuptools import find_packages, setup
def extract_version():
"""Return ggplot.__version__ without importing ggplot.
Extracts version from ggplot/__init__.py
without importing ggplot, which requires dependencies to be installed.
"""
with open('ggplot/__init__.py') as fd:
ns = {}
for line in fd:
if line.startswith('__version__'):
exec(line.strip(), ns)
return ns['__version__']
setup(
name="ggplot",
# Increase the version in ggplot/__init__.py
version=extract_version(),
author="Greg Lamp",
author_email="[email protected]",
url="https://github.com/yhat/ggplot/",
license="BSD",
packages=find_packages(),
package_dir={ "ggplot": "ggplot" },
package_data={
"ggplot": [
"datasets/*.csv",
"geoms/*.png"
]
},
description="ggplot for python",
# run pandoc --from=markdown --to=rst --output=README.rst README.md
long_description=open("README.rst").read(),
install_requires=[
"six",
"statsmodels",
"brewer2mpl",
"matplotlib",
"scipy",
"patsy>=0.4",
"pandas",
"cycler",
"numpy"
],
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3'
],
zip_safe=False
)