-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
76 lines (66 loc) · 2.54 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
import pathlib
from setuptools import find_packages, setup
# Get absolute path to the decription file to avoid reading in
# something unexpected.
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")
# Get version number from a single source of truth
def get_version(version_path):
with open(version_path) as infile:
for line in infile:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
# Get non-python files under a directory recursively.
def get_data_files(directory):
files = [
str(p.relative_to(directory))
for p in directory.rglob("*")
if (not str(p).endswith(".py")) or (not str(p).endswith(".pyc"))
]
return files
setup(
name='pyTigerGraph',
packages=find_packages(where="."),
package_data={"pyTigerGraph.gds": get_data_files(
here / "pyTigerGraph" / "gds")},
version=get_version(here/"pyTigerGraph"/"__init__.py"),
license='Apache 2',
description='Library to connect to TigerGraph databases',
long_description=long_description,
long_description_content_type='text/markdown',
author='TigerGraph Inc.',
author_email='[email protected]',
url='https://docs.tigergraph.com/pytigergraph/current/intro/',
download_url='',
keywords=['TigerGraph', 'Graph Database',
'Data Science', 'Machine Learning'],
install_requires=[
'validators',
'requests',
'httpx'],
classifiers=[
# 3 - Alpha, 4 - Beta or 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
extras_require={
"gds": ["pandas", "kafka-python", "numpy", "tqdm"],
},
project_urls={
"Bug Reports": "https://github.com/tigergraph/pyTigerGraph/issues",
"Source": "https://github.com/tigergraph/pyTigerGraph",
},
)