forked from icon-project/loopchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (36 loc) · 1.21 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
with open('requirements.txt') as requirements:
requires = list(requirements)
version = os.environ.get('VERSION') # 1.21.5
if version is None:
with open(os.path.join('.', 'VERSION')) as version_file:
version = version_file.read().strip()
setup_options = {
'name': 'loopchain',
'version': version,
'description': 'Blockchain consensus engine based on LFT',
'author': 'ICON foundation',
'packages': find_packages(),
'license': "Apache License 2.0",
'install_requires': requires,
'entry_points': {
'console_scripts': [
'loop=loopchain.__main__:main',
'loopchain=loopchain.__main__:main'
],
},
'setup_requires': ['pytest-runner'],
'tests_requires': ['pytest'],
'classifiers': [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6.5'
]
}
setup(**setup_options)