-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (76 loc) · 2.85 KB
/
setup.py
File metadata and controls
97 lines (76 loc) · 2.85 KB
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
96
97
# 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
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ""
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import shlex
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
test = ['pytest', 'testfixtures', 'mock']
doc = ['sphinx']
install_requires = ['steelscript>=24.2.0',
'sleepwalker>=2.0',
'reschema==2.0']
setup_requires = ['pytest-runner']
setup(
name='steelscript.scc',
version= '24.2.1',
author='Riverbed Technology',
author_email='eng-github@riverbed.com',
url='http://pythonhosted.org/steelscript',
license='MIT',
description='SteelScript support for SteelCentral Controller',
long_description="""SteelScript for SteelCentral Controller
=======================================
SteelScript is a collection of libraries and scripts in Python and
JavaScript for interacting with Riverbed Technology devices.
This package contains python modules for interacting with a SteelCentral
Controller Device.
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',
],
packages=find_packages(exclude=('gitpy_versioning',)),
include_package_data=True,
data_files=(
('share/doc/steelscript/docs/scc', glob('docs/*')),
('share/doc/steelscript/examples/scc', glob('examples/*')),
),
install_requires=install_requires,
setup_requires=setup_requires,
extras_require={'test': test,
'doc': doc,
'dev': [p for p in itertools.chain(test, doc)],
'all': []
},
tests_require=test,
cmdclass={'pytest': PyTest},
entry_points={
'portal.plugins': ['SCC = steelscript.scc.appfwk.plugin:SCCPlugin']}
)