forked from emre/storm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py.off
85 lines (79 loc) · 2.9 KB
/
setup.py.off
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
import sys
import os
import ast
import re
from setuptools import setup, find_packages
from storm.parsers.storm_config_parser import create_storm_config
EXCLUDE_FROM_PACKAGES = ["deactivated", "tests*"]
CURDIR = os.path.abspath(os.path.dirname(__file__))
def get_version():
main_file = os.path.join(CURDIR, "storm", "__init__.py")
_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)")
with open(main_file, "r", encoding="utf8") as f:
match = _version_re.search(f.read())
version = match.group("version") if match is not None else '"unknown"'
return str(ast.literal_eval(version))
setup(
name="stormssh",
version=get_version(),
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
# package_data={'storm': ['templates/*.html', 'static/css/*.css',
# 'static/css/themes/storm/*.css', 'static/css/themes/storm/img/*.png',
# 'static/js/*.js', 'static/js/core/*.js', 'static/favicon.ico']},
include_package_data=True,
url="http://github.com/DonKannalie/storm",
license="MIT",
author="Emre Yilmaz, Jonas Kahlen",
author_email="[email protected]",
description="Management commands to ssh config files.",
# scripts=['scripts/collect_server_info.sh'],
# entry_points={
# 'console_scripts': [
# # 'storm = storm.__main__:main',
# 'storm=storm.cli:cli',
# ],
# },
# entry_points='''
# [console_scripts]
# storm=storm.cli:cli
# ''',
setup_requires=["setuptools~=58.0.0"],
entry_points={"console_scripts": ["storm=storm.cli:cli"]},
install_requires=list(
filter(
None,
[
"paramiko",
"termcolor",
# "flask",
"prettytable",
"colorama",
# "argparse" if sys.version_info[:2] < (2, 7) else None,
"six",
"iterfzf",
"ping3",
"wakeonlan",
"click",
"click-aliases",
"click-completion",
"click-option-group",
],
)
),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Topic :: System :: Systems Administration",
],
)
create_storm_config()