forked from trailofbits/graphtage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (57 loc) · 1.87 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
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.6',
install_requires=[
'colorama',
'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==0.4.3", "twine"]
},
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
)