forked from hetio/hetnetpy
/
setup.py
73 lines (67 loc) · 2.2 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
import pathlib
import re
import setuptools
directory = pathlib.Path(__file__).parent.absolute()
# version
init_path = directory.joinpath("hetnetpy", "__init__.py")
with init_path.open() as read_file:
text = read_file.read()
pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE)
version = pattern.search(text).group(1)
# long_description
readme_path = directory.joinpath("README.md")
with readme_path.open() as read_file:
long_description = read_file.read()
# Testing dependencies
tests_require = [
"black ; python_version>='3.6'",
"neo4j",
"numpy",
"pandas",
"py2neo",
"pytest",
"scipy",
"tqdm",
]
setuptools.setup(
# Package details
name="hetnetpy",
version=version,
url="https://github.com/hetio/hetnetpy",
description="Hetnets in Python",
long_description_content_type="text/markdown",
long_description=long_description,
license="CC0 1.0",
# Author details
author="Daniel Himmelstein",
author_email="daniel.himmelstein@gmail.com",
# Package topics
keywords="hetnet graph heterogeneous network neo4j hetio hetnetpy",
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
# should find hetnetpy (and hetio if symlink supported)
packages=setuptools.find_packages(exclude=["test"]),
# Specify python version
python_requires=">=3.5",
# Run-time dependencies
install_requires=["regex"],
# Testing dependencies
tests_require=tests_require,
# Additional groups of dependencies
extras_require={
"stats": ["pandas", "matplotlib", "seaborn"],
"neo4j": ["pandas", "py2neo", "tqdm"],
"matrix": ["numpy", "scipy"],
"test": tests_require,
},
)