forked from sudrich/sf-gad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (43 loc) · 1.78 KB
/
setup.py
File metadata and controls
53 lines (43 loc) · 1.78 KB
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
from distutils.core import setup
from setuptools import find_packages
DISTNAME = 'sfgad'
DESCRIPTION = 'A statistical framework for graph anomaly detection'
MAINTAINER = 'Simon Sudrich'
MAINTAINER_EMAIL = 'uzcyg@student.kit.edu'
URL = 'https://github.com/sudrich/sf-gad'
DOWNLOAD_URL = 'https://api.github.com/repos/sudrich/sf-gad/tarball/master'
LICENSE = 'GPL-3.0'
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
VERSION = '0.1.2'
SCIPY_MIN_VERSION = '0.13.3'
NUMPY_MIN_VERSION = '1.8.2'
PANDAS_MIN_VERSION = '0.22.0'
NETWORKX_MIN_VERSION = '1.11'
JOBLIB_MIN_VERSION = '0.12.2'
MYSQL_CONNECTOR_MIN_VERSION = '2.0.0'
def setup_package():
metadata = dict(name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
version=VERSION,
classifiers=[],
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),
install_requires=[
'numpy>={0}'.format(NUMPY_MIN_VERSION),
'pandas>={0}'.format(PANDAS_MIN_VERSION),
'scipy>={0}'.format(SCIPY_MIN_VERSION),
'networkx=={0}'.format(NETWORKX_MIN_VERSION),
'joblib>={0}'.format(JOBLIB_MIN_VERSION),
'mysql-connector-python>={0}'.format(MYSQL_CONNECTOR_MIN_VERSION)
],
)
setup(**metadata)
if __name__ == "__main__":
setup_package()