-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
93 lines (74 loc) · 2.53 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
93
"""
Package set up.
"""
import pathlib
import typing
import setuptools # type: ignore
VERSION = "1.2.1"
DESCRIP = """
A proposed standard `NOCK` for a Parquet format that supports efficient
distributed serialization of multiple kinds of graph technologies.
""".strip()
KEYWORDS = [
"CSV",
"Parquet",
"RDF",
"dataframe",
"graph data science",
"knowledge graph",
"labeled property graphs",
"open standard",
"openCypher",
"probabilistic graphs",
"semantic graphs",
"serialization",
"spreadsheet",
]
def parse_requirements_file (filename: str) -> typing.List[ str ]:
"""parse `requirements.txt` file, stripping constraints, comments, etc."""
reqs = [] # pylint: disable=W0621
for line in pathlib.Path(filename).open(encoding="utf-8").readlines():
line = line.strip()
if line.startswith("git+"):
pkg = line.split("#")[1].replace("egg=", "")
line = pkg + " @ " + line
else:
line = line.replace(" ", "").split("#")[0]
reqs.append(line)
return reqs
if __name__ == "__main__":
setuptools.setup(
name = "pynock",
version = VERSION,
license = "MIT",
python_requires = ">=3.8",
install_requires = parse_requirements_file("requirements.txt"),
packages = setuptools.find_packages(exclude=[
"bin",
"dat",
"tests",
"venv",
]),
author = "Paco Nathan",
author_email = "paco@derwen.ai",
description = DESCRIP,
long_description = pathlib.Path("README.md").read_text(encoding="utf-8"),
long_description_content_type = "text/markdown",
keywords = ", ".join(KEYWORDS),
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Testing",
"Topic :: System :: Distributed Computing",
],
url = "https://github.com/DerwenAI/pynock",
zip_safe = False,
)