-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
94 lines (78 loc) · 2.85 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
# 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.
from __future__ import print_function, division
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.steelhead',
version='24.2.1',
author='Riverbed Technology',
author_email='[email protected]',
url='http://pythonhosted.org/steelscript',
license='MIT',
description=('Python modules for interacting with '
'Riverbed SteelHead with SteelScript'),
long_description="""SteelScript for SteelHead
=========================
This package provides device specific bindings for interacting
with Riverbed SteelHead devices as part of the Riverbed Steelscript
for Python.
For a complete guide to installation, see:
http://pythonhosted.org/steelscript/
""",
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',
],
python_requires='>3.5.0',
packages=find_packages(exclude=('gitpy_versioning',)),
include_package_data=True,
data_files=(
('share/doc/steelscript/docs/steelhead', glob('docs/*.rst')),
('share/doc/steelscript/examples/steelhead', glob('examples/*')),
),
install_requires=['ipaddress',
'netaddr',
'steelscript.cmdline>=2.0'],
extras_require={'test': test,
'doc': doc,
'dev': [p for p in itertools.chain(test, doc)],
'all': []
},
tests_require=test,
cmdclass={'test': PyTest},
entry_points={'portal.plugins': [
'steelhead = steelscript.steelhead.appfwk.plugin:SteelHeadPlugin'
]}
)