This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
57 lines (49 loc) · 1.75 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
version = os.environ.get('VERSION')
if version is None:
with open(os.path.join('.', 'VERSION')) as version_file:
version = version_file.read().strip()
install_requires = []
with open('requirements.txt') as requirements:
for line in requirements:
req = line.strip()
install_requires.append(req)
extras_requires = {
'tests': ['pytest~=5.4.2', 'pytest-asyncio~=0.12.0', 'mock~=4.0.1', 'pytest-sanic~=1.8.1']
}
setup_options = {
'name': 'iconrpcserver',
'version': version,
'description': 'ICON RPC Server',
'long_description': open('README.md').read(),
'long_description_content_type': 'text/markdown',
'url': 'https://github.com/icon-project/icon-rpc-server',
'author': 'ICON Foundation',
'author_email': '[email protected]',
'packages': find_packages(exclude=['tests*', 'docs']),
'package_dir': {'': '.'},
'package_data': {'iconrpcserver': ['icon_rpcserver_config.json']},
'py_modules': ['iconrpcserver', ''],
'license': "Apache License 2.0",
'install_requires': install_requires,
'extras_require': extras_requires,
'test_suite': 'tests',
'entry_points': {
'console_scripts': [
'iconrpcserver=iconrpcserver:main'
],
},
'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.7',
'Programming Language :: Python :: 3 :: Only'
]
}
setup(**setup_options)