-
Notifications
You must be signed in to change notification settings - Fork 658
/
setup.py
106 lines (97 loc) · 4.14 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
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
v = sys.version_info
if sys.version_info < (3, 8):
msg = "FAIL: Requires Python 3.8 or later, " \
"but setup.py was run using {}.{}.{}"
v = sys.version_info
print(msg.format(v.major, v.minor, v.micro))
# noinspection PyPackageRequirements
print("NOTE: Installation failed. Run setup.py using python3")
sys.exit(1)
try:
here = os.path.abspath(os.path.dirname(__file__))
except NameError:
# it can be the case when we are being run as script or frozen
here = os.path.abspath(os.path.dirname(sys.argv[0]))
metadata = {'__file__': os.path.join(here, 'indy_node', '__metadata__.py')}
with open(metadata['__file__'], 'r') as f:
exec(f.read(), metadata)
BASE_DIR = os.path.join(os.path.expanduser("~"), ".indy")
tests_require = ['attrs>=20.3.0', 'pytest>=6.2.2', 'pytest-xdist>=2.2.1', 'pytest-forked>=1.3.0',
'python3-indy==1.16.0.post236', 'pytest-asyncio>=0.14.0']
setup(
name=metadata['__title__'],
version=metadata['__version__'],
description=metadata['__description__'],
long_description=metadata['__long_description__'],
keywords=metadata['__keywords__'],
url=metadata['__url__'],
author=metadata['__author__'],
author_email=metadata['__author_email__'],
maintainer=metadata['__maintainer__'],
license=metadata['__license__'],
classifiers=[
'Programming Language :: Python :: 3'
],
packages=find_packages(exclude=['docs', 'docs*']) + [
'data'],
# TODO move that to MANIFEST.in
package_data={
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.indy']},
include_package_data=True,
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
# Update ./build-scripts/ubuntu-xxxx/build-3rd-parties.sh when this list gets updated.
# - Excluding changes to indy-plenum.
install_requires=['indy-plenum==1.13.1',
# importlib-metadata needs to be pinned to 3.10.1 because from v4.0.0 the package
# name ends in python3-importlib-metadata_0.0.0_amd64.deb
# see also build-scripts/ubuntu-2004/build-3rd-parties.sh
# https://github.com/hyperledger/indy-plenum/blob/eac38674252b539216be2c40bb13e53c5b70dad2/build-scripts/ubuntu-2004/build-3rd-parties.sh#L104-L106
'importlib-metadata==3.10.1',
'timeout-decorator>=0.5.0',
'distro==1.7.0'],
setup_requires=['pytest-runner'],
extras_require={
'tests': tests_require
},
tests_require=tests_require,
scripts=['scripts/start_indy_node',
'scripts/start_node_control_tool',
'scripts/clear_node.py',
'scripts/get_keys',
'scripts/get_metrics',
'scripts/generate_indy_pool_transactions',
'scripts/init_indy_keys',
'scripts/upgrade_indy_node_ubuntu1604.sh',
'scripts/upgrade_indy_node_ubuntu1604_test.sh',
'scripts/upgrade_indy_node.bat',
'scripts/upgrade_indy_node_test.bat',
'scripts/restart_indy_node_ubuntu1604.sh',
'scripts/restart_indy_node.bat',
'scripts/restart_sovrin_node_ubuntu1604.sh',
'scripts/complete_rebranding_upgrade_ubuntu1604.sh',
'scripts/install_indy_node.bat',
'scripts/delete_indy_node.bat',
'scripts/restart_upgrade_agent.bat',
'scripts/install_nssm.bat',
'scripts/read_ledger',
'scripts/validator-info',
'scripts/validator-info-history',
'scripts/init_bls_keys',
'scripts/create_dirs.sh',
'scripts/setup_iptables',
'scripts/setup_indy_node_iptables',
'scripts/current_validators',
'scripts/node_address_list',
'scripts/generate_bls_proof_of_possession',
'tools/diagnostics/nscapture',
'tools/diagnostics/nsdiff',
'tools/diagnostics/nsreplay',
]
)