-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
executable file
·115 lines (107 loc) · 3.53 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
# Author: "Chris Ward" <cward@redhat.com>
# FIXME: make metrique cmd
# http://pythonhosted.org/setuptools/pkg_resources.html#entry-points
from setuptools import setup, Extension
from Cython.Distutils import build_ext
VERSION_FILE = "metrique/_version.py"
VERSION_EXEC = ''.join(open(VERSION_FILE).readlines())
__version__ = ''
exec(VERSION_EXEC) # update __version__
if not __version__:
raise RuntimeError("Unable to find version string in %s." % VERSION_FILE)
__pkg__ = 'metrique'
__pkgs__ = [
'metrique',
'metrique.cubes',
'metrique.cubes.csvdata',
'metrique.cubes.gitdata',
'metrique.cubes.osinfo',
'metrique.cubes.sqldata',
]
__provides__ = ['metrique']
__desc__ = 'Metrique - Client Libraries'
__scripts__ = []
__requires__ = [
'anyconfig',
'cython',
'decorator',
'lockfile',
# bug when installing numpy as dep;
# https://github.com/numpy/numpy/issues/2434
# install manually with metrique.py deploy or `pip install pandas`
#'pandas (>=0.13.0)',
'python_dateutil',
'pytz'
'simplejson',
'sqlalchemy (>=0.9.4)',
'virtualenv (>=1.11)',
]
__irequires__ = [
'anyconfig',
'cython',
'decorator',
'lockfile',
#'pandas>=0.13.0',
'python_dateutil',
'pytz',
'simplejson',
'sqlalchemy>=0.9.4',
'virtualenv>=1.11',
]
pip_src = 'https://pypi.python.org/packages/source'
__deplinks__ = []
with open('README.rst') as _file:
readme = _file.read()
github = 'https://github.com/kejbaly2/metrique'
download_url = '%s/archive/master.zip' % github
default_setup = dict(
url=github,
license='GPLv3',
author='Chris Ward',
author_email='cward@redhat.com',
download_url=download_url,
long_description=readme,
data_files=[],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Database',
'Topic :: Office/Business',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Utilities',
],
keywords=['data', 'mining', 'information', 'postgresql'
'etl', 'analysis', 'search', 'query'],
dependency_links=__deplinks__,
description=__desc__,
install_requires=__irequires__,
name=__pkg__,
packages=__pkgs__,
provides=__provides__,
requires=__requires__,
scripts=__scripts__,
version=__version__,
zip_safe=False, # we reference __file__; see [1]
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("metrique.core_api", ['metrique/core_api.py']),
Extension("metrique.metrique", ['metrique/metrique.py']),
# FIXME: these fail to compile
#Extension("metrique.parse", ['metrique/parse.py']),
#Extension("metrique.plotting", ['metrique/plotting.py']),
#Extension("metrique.result", ['metrique/result.py']),
Extension("metrique._version", ['metrique/_version.py']),
Extension("metrique.utils", ['metrique/utils.py'])
],
)
# http://stackoverflow.com/questions/8362510
setup(**default_setup)