-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (42 loc) · 1.45 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
import os
import sys
from setuptools import setup, find_packages
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)
here = os.path.abspath(os.path.dirname(__file__))
metadata = {}
with open(os.path.join(here, 'scp', '__metadata__.py'), 'r') as f:
exec(f.read(), metadata)
tests_require = []
setup(
name=metadata['__title__'],
version=metadata['__version__'],
description=metadata['__description__'],
long_description=metadata['__long_description__'],
url=metadata['__url__'],
author=metadata['__author__'],
author_email=metadata['__author_email__'],
maintainer=metadata['__maintainer__'],
license=metadata['__license__'],
keywords='',
packages=find_packages(exclude=['test', 'test.*', 'docs', 'docs*']),
package_data={
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', 'sovtoken']},
include_package_data=True,
install_requires=['indy-node==1.13.0.dev1199'],
setup_requires=['pytest-runner'],
extras_require={
'test': tests_require,
'benchmark': ['pympler']
},
tests_require=tests_require,
scripts=[]
)