forked from hyperledger/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
103 lines (93 loc) · 3.64 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
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages, __version__
v = sys.version_info
if sys.version_info < (3, 5):
msg = "FAIL: Requires Python 3.5 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:
SETUP_DIRNAME = os.path.dirname(__file__)
except NameError:
# We're probably being frozen, and __file__ triggered this NameError
# Work around this
SETUP_DIRNAME = os.path.dirname(sys.argv[0])
if SETUP_DIRNAME != '':
os.chdir(SETUP_DIRNAME)
SETUP_DIRNAME = os.path.abspath(SETUP_DIRNAME)
METADATA = os.path.join(SETUP_DIRNAME, 'indy_node', '__metadata__.py')
# Load the metadata using exec() so we don't trigger an import of
# ioflo.__init__
exec(compile(open(METADATA).read(), METADATA, 'exec'))
BASE_DIR = os.path.join(os.path.expanduser("~"), ".indy")
LOG_DIR = os.path.join(BASE_DIR, "log")
CONFIG_FILE = os.path.join(BASE_DIR, "indy_config.py")
tests_require = ['pytest==3.3.1', 'pytest-xdist==1.22.1', 'python3-indy==1.4.0-dev-586']
setup(
name='indy-node-dev',
version=__version__,
description='Indy node',
url='https://github.com/hyperledger/indy-node',
author=__author__,
author_email='[email protected]',
license=__license__,
keywords='Indy Node',
packages=find_packages(exclude=['docs', 'docs*']) + [
'data'],
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'])
)],
install_requires=['indy-plenum-dev==1.4.419',
'indy-anoncreds-dev==1.0.32',
'python-dateutil',
'timeout-decorator==0.4.0'],
setup_requires=['pytest-runner'],
extras_require={
'tests': tests_require
},
tests_require=tests_require,
scripts=['scripts/indy',
'scripts/add_new_node',
'scripts/reset_client',
'scripts/start_indy_node',
'scripts/start_node_control_tool',
'scripts/clear_node.py',
'scripts/get_keys',
'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/test_some_write_keys_others_read_them',
'scripts/test_users_write_and_read_own_keys',
'scripts/validator-info',
'scripts/init_bls_keys',
'scripts/enable_bls',
'scripts/create_dirs.sh',
'scripts/indy_old_cli_export_dids',
'scripts/setup_iptables',
'scripts/setup_indy_node_iptables',
'tools/diagnostics/nscapture',
'tools/diagnostics/nsdiff',
'tools/diagnostics/nsreplay',
]
)