-
Notifications
You must be signed in to change notification settings - Fork 45
/
setup.py
74 lines (66 loc) · 2.11 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
import os
from setuptools import setup, find_packages
HERE = os.path.realpath(os.path.dirname(__file__))
VERSION_MODULE_PATH = os.path.join(HERE, "graphtage", "version.py")
README_PATH = os.path.join(HERE, "README.md")
def get_version_string():
version = {}
with open(VERSION_MODULE_PATH) as f:
exec(f.read(), version)
return version['VERSION_STRING']
def get_readme():
with open(README_PATH, encoding='utf-8') as f:
return f.read()
setup(
name='graphtage',
description='A utility to diff tree-like files such as JSON and XML.',
license="LGPL-3.0-or-later",
long_description=get_readme(),
long_description_content_type="text/markdown",
url='https://github.com/trailofbits/graphtage',
project_urls={
'Documentation': 'https://trailofbits.github.io/graphtage',
'Source': 'https://github.com/trailofbits/graphtage',
'Tracker': 'https://github.com/trailofbits/graphtage/issues',
},
author='Trail of Bits',
version=get_version_string(),
packages=find_packages(exclude=['test']),
python_requires='>=3.8',
install_requires=[
"colorama",
"fickling>=0.0.8",
"intervaltree",
"json5==0.9.5",
"numpy>=1.19.4",
"PyYAML",
"scipy>=1.4.0",
"tqdm",
"typing_extensions>=3.7.4.3"
],
entry_points={
'console_scripts': [
'graphtage = graphtage.__main__:main'
]
},
extras_require={
"dev": [
"flake8",
"Sphinx",
"pytest",
"sphinx_rtd_theme==1.2.2",
"twine",
# workaround for https://github.com/python/importlib_metadata/issues/406:
"importlib_metadata<5; python_version == '3.7'"
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Utilities'
],
include_package_data=True
)