-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
95 lines (77 loc) · 2.96 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
# Copyright (c) 2019-2024 Riverbed Technology, Inc.
#
# This software is licensed under the terms and conditions of the MIT License
# accompanying the software ("License"). This software is distributed "AS IS"
# as set forth in the License.
import sys
import itertools
from glob import glob
try:
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
except ImportError:
raise ImportError(
'The setuptools package is required to install this library. See '
'"https://pypi.python.org/pypi/setuptools#installation-instructions" '
'for further instructions.'
)
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main("%s tests" % " ".join(self.test_args))
sys.exit(errno)
test = ['pytest', 'testfixtures']
doc = ['sphinx']
setup(
name='steelscript.cmdline',
version= '24.2.1',
author='Riverbed Technology',
author_email='[email protected]',
url='http://pythonhosted.org/steelscript',
license='MIT',
description='SteelScript support for command-line interaction',
long_description="""SteelScript for Command-Line Access
===================================
This package contains modules for interacting with a command line or shell.
It contains modules for interacting with different transport types, such as
telnet and ssh, and also contains modules for common parsing of command line
responses.
For a complete guide to installation, see:
http://pythonhosted.org/steelscript/
For installation on Windows, this package depends on `pycrypto`,
see more information about installing this pre-requisite here:
https://support.riverbed.com/apis/steelscript/install/steelhead.html#pycrypto
""",
platforms='Linux, Mac OS, Windows',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.12',
'Topic :: System :: Networking',
],
packages=find_packages(exclude=('gitpy_versioning',)),
include_package_data=True,
data_files=(
('share/doc/steelscript/docs/cmdline', glob('docs/*.rst')),
('share/doc/steelscript/examples/cmdline', glob('examples/*')),
),
install_requires=['paramiko',
'scp',
'steelscript>=24.2.0',
'ipaddress'],
extras_require={'test': test,
'doc': doc,
'dev': [p for p in itertools.chain(test, doc)],
'all': ['libvirt']
},
tests_require=test,
cmdclass={'test': PyTest},
)