-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
95 lines (84 loc) · 2.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
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
# -*- coding: utf-8 -*-
#
# This file is part of validator-cli
#
# Copyright (C) 2020 SKALE Labs
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
import re
from setuptools import find_packages, setup
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
f = open(path, "r")
return f.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Couldn't parse version from file.")
extras_require = {
'linter': [
"flake8==3.7.9",
"isort>=4.2.15,<5.4.3",
],
'dev': [
"PyInstaller==5.5",
"pytest==5.4.2",
"twine==3.1.1",
"mock==4.0.2",
"boto3==1.13.7",
"pytest-cov==2.9.0",
"codecov==2.1.7"
],
'hw-wallet': [
"ledgerblue==0.1.31"
]
}
extras_require['dev'] = (
extras_require['linter'] + extras_require['dev'] + extras_require['hw-wallet']
)
setup(
name='validator-cli',
# *IMPORTANT*: Don't manually change the version here.
# Use the 'bumpversion' utility instead.
version=find_version("cli", "__init__.py"),
include_package_data=True,
description='SKALE validator tools',
long_description_markdown_filename='README.md',
author='SKALE Labs',
author_email='[email protected]',
url='https://github.com/skalenetwork/validator-cli',
install_requires=[
"click==7.1.2",
"skale.py==5.8dev3",
"yaspin==2.2.0",
"texttable==1.6.4",
"pandas==1.5.1",
"terminaltables==3.1.10",
],
python_requires='>=3.7,<4',
extras_require=extras_require,
keywords=['skale', 'cli'],
packages=find_packages(exclude=['tests']),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 (AGPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
],
)