-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
90 lines (80 loc) · 2.39 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
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==6.0.0",
"isort>=4.2.15,<5.10.2",
],
'dev': [
"bumpversion==0.6.0",
"pytest==7.2.2",
"pytest-cov==4.0.0",
"twine==4.0.2",
"mock==4.0.3",
"freezegun==1.2.2"
]
}
extras_require['dev'] = (
extras_require['linter'] + extras_require['dev']
)
setup(
name='node-cli',
# *IMPORTANT*: Don't manually change the version here.
# Use the 'bumpversion' utility instead.
version=find_version("node_cli", "cli", "__init__.py"),
include_package_data=True,
description='SKALE client tools',
long_description_markdown_filename='README.md',
author='SKALE Labs',
author_email='[email protected]',
url='https://github.com/skalenetwork/node-cli',
install_requires=[
"click==8.1.3",
"PyInstaller==5.12.0",
"distro==1.4.0",
"docker==6.0.1",
"texttable==1.6.7",
"python-dateutil==2.8.2",
"Jinja2==3.1.2",
"psutil==5.9.4",
"python-dotenv==0.21.0",
"terminaltables==3.1.10",
"requests==2.28.1",
"GitPython==3.1.41",
"packaging==23.0",
"python-debian==0.1.49",
"python-iptables==1.0.1",
"PyYAML==6.0",
"pyOpenSSL==22.0.0",
"MarkupSafe==2.1.1",
'Flask==2.3.3',
'itsdangerous==2.1.2',
"cryptography==37.0.2",
"filelock==3.0.12",
'sh==1.14.2',
'python-crontab==2.6.0'
],
python_requires='>=3.8,<4',
extras_require=extras_require,
keywords=['skale', 'cli'],
packages=find_packages(exclude=['tests']),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Programming Language :: Python :: 3.11',
],
)