-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
58 lines (52 loc) · 1.66 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
# Copyright 2020 The spartan2 Authors.
#
#
import setuptools
from setuptools.extension import Extension
from Cython.Build import cythonize, build_ext
NAME = 'spartan2'
VERSION = '0.1.3-post4'
DESCRIPTION = 'collection of data mining algorithms on big graphs and time series'
URL = 'https://github.com/BGT-M/spartan2'
AUTHOR = 'Shenghua Liu, Houquan Zhou, Quan Ding, Jiabao Zhang, Xin Zhao, Siwei Zeng,etc'
EMAIL = 'liu.shengh@foxmail.com'
# Get the long description from the README file
with open('README.md', encoding='utf-8') as fp:
_LONG_DESCRIPTION = fp.read()
extensions = [
Extension(
name="spartan.model.DPGS.c_MDL",
sources=["spartan/model/DPGS/c_MDL.pyx"],
),
]
REQUIRED_PACKAGES = [
'numpy',
'scipy',
'networkx',
'matplotlib',
'statsmodels',
'pomegranate',
'scikit-learn',
'scikit-image',
'sparse',
'ipdb',
]
setuptools.setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=_LONG_DESCRIPTION,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
url=URL,
install_requires=REQUIRED_PACKAGES,
packages=setuptools.find_packages(),
ext_modules=cythonize(extensions),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
build_ext= build_ext
)