-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (54 loc) · 2.27 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
"""
Setup for building, installing and testing the :py:mod:`dengraph` package
All unittests can be run via `python setup.py test`.
"""
import os
import sys
from setuptools import setup, find_packages
repo_base_dir = os.path.abspath(os.path.dirname(__file__))
# pull in the packages metadata
package_about = {}
with open(os.path.join(repo_base_dir, "dengraph", "__about__.py")) as f:
exec(f.read(), package_about)
# other modules/packages required
dependencies = [] # 'matplotlib', 'package', 'package',
if sys.version_info < (3, 3):
dependencies.append('backports.range')
if __name__ == '__main__':
setup(
name=package_about['__title__'],
descriptions=package_about['__summary__'],
version=package_about['__version__'],
author=package_about['__author__'],
author_email=package_about['__email__'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
# TODO: add license!!!
# Versions/Interpreters we support
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
# We probably support others as well, need to check
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Clustering',
],
keywords='clustering cluster graph density distance',
# what we provide V but not any of these
packages=find_packages(exclude=('dengraph_*',)),
# what we need
install_requires=dependencies,
# what we need for special things
extras_require={
# 'feature': ['package', 'package'], 'feature': []
},
# unit tests
test_suite='dengraph_unittests',
# use unittest backport to have subTest etc.
tests_require=['unittest2'] if sys.version_info < (3, 4) else [],
)