-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
92 lines (74 loc) · 2.9 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
from pathlib import Path
from setuptools import setup, find_packages
root = Path(__file__).parent.resolve()
with open(root / "README.rst", "r", encoding="utf-8") as f:
long_description = f.read()
with open(root / "cfpq_data/config.py") as f:
for line in f:
if line.startswith("VERSION"):
version = line.strip().split()[-1][1:-1]
break
name = "cfpq_data"
description = (
"Python package containing Graphs and Grammars "
+ "for experimental analysis of Context-Free Path Querying algorithms"
)
authors = {
"vdshk": ("Vadim Abzalov", "[email protected]"),
"Yakonick": ("Nikita Kovalev", "[email protected]"),
}
url = "https://formallanguageconstrainedpathquerying.github.io/CFPQ_Data/"
project_urls = {
"Documentation": "https://formallanguageconstrainedpathquerying.github.io/CFPQ_Data",
"Source Code": "https://github.com/FormalLanguageConstrainedPathQuerying/CFPQ_Data",
"Bug Tracker": "https://github.com/FormalLanguageConstrainedPathQuerying/CFPQ_Data/issues",
}
platforms = ["Linux", "Mac OSX", "Unix", "Windows"]
keywords = ["graphs", "grammars", "context-free", "path-query", "cfpq-data"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Information Analysis",
]
def parse_requirements_file(filename):
with open(filename) as fid:
requires = [l.strip() for l in fid.readlines() if not l.startswith("#")]
return requires
install_requires = parse_requirements_file(root / "requirements" / "default.txt")
extras_require = {
dep: parse_requirements_file(root / "requirements" / f"{dep}.txt")
for dep in ["developer", "docs", "tests"]
}
if __name__ == "__main__":
setup(
name="cfpq_data",
description=description,
long_description=long_description,
author=authors["vdshk"][0],
author_email=authors["vdshk"][1],
maintainer=authors["Yakonick"][0],
maintainer_email=authors["Yakonick"][1],
version=version,
keywords=keywords,
packages=find_packages(),
platforms=platforms,
url=url,
project_urls=project_urls,
classifiers=classifiers,
install_requires=install_requires,
extras_require=extras_require,
python_requires=">=3.8",
zip_safe=False,
)