-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
91 lines (86 loc) · 3.03 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The setup script for Salt SProxy
"""
import codecs
from setuptools import setup, find_packages
__author__ = "Mircea Ulinic <[email protected]>"
with codecs.open("pypi.rst", "r", encoding="utf8") as file:
long_description = file.read()
with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
name = "salt-sproxy"
repo_slug = "mirceaulinic/{}".format(name)
repo_url = "https://github.com/{}".format(repo_slug)
setup(
name=name,
version="2023.8.0",
namespace_packages=["salt_sproxy"],
packages=find_packages(),
author="Mircea Ulinic",
author_email="[email protected]",
description="Salt plugin for managing devices and applications, without running (Proxy) Minions",
long_description=long_description,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"License :: OSI Approved :: Apache Software License",
"Topic :: Utilities",
"Topic :: System :: Networking",
"Topic :: System :: Clustering",
"Topic :: System :: Operating System",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Systems Administration",
"Programming Language :: Python",
"Programming Language :: Cython",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Intended Audience :: Developers",
"Intended Audience :: Telecommunications Industry",
"Intended Audience :: System Administrators",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
],
url="https://github.com/mirceaulinic/salt-sproxy",
license="Apache License 2.0",
keywords=(
"salt",
"network",
"automation",
"cli",
"proxy",
"minion",
"salt-extension",
),
project_urls={
"CI: GitHub Actions": "{}/actions".format(repo_url),
"Docs: RTD": "https://salt-sproxy.readthedocs.io/",
"GitHub: issues": "{}/issues".format(repo_url),
"GitHub: repo": repo_url,
},
include_package_data=True,
install_requires=reqs,
entry_points={
"console_scripts": [
"salt-sapi=salt_sproxy.scripts:salt_sapi",
"salt-sproxy=salt_sproxy.scripts:salt_sproxy",
]
},
extras_require={
"api": ["cherrypy>=18.8.0"],
"netbox": ["pynetbox"],
"napalm": ["napalm"],
"junos": ["junos-eznc"],
"netmiko": ["netmiko"],
},
data_files=[("man/man1", ["docs/man/salt-sproxy.1", "docs/man/salt-sapi.1"])],
)