forked from ebeahan/aeon-ztps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·63 lines (58 loc) · 2.2 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
# Copyright 2014-present, Apstra, Inc. All rights reserved.
#
# This source code is licensed under End User License Agreement found in the
# LICENSE file at http://www.apstra.com/community/eula
#
# Copyright 2016-present, Apstra, Inc. All rights reserved.
#
# This source code is licensed under Community End User License Agreement
# found in the LICENSE.txt file in the root directory of this source tree.
#
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
# parse requirements
req_lines = [line.strip() for line in open(
'requirements.txt').readlines()]
install_reqs = list(filter(None, req_lines))
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errcode = tox.cmdline(self.test_args)
sys.exit(errcode)
setup(
name="aeon-ztp",
version="1.5.4",
author="Apstra Customer Enablement",
author_email="[email protected]",
description=("AEON ZTP Server"),
url="https://github.com/Apstra/aeon-ztps",
scripts=['aeon_ztp/bin/aztp-db-flush', 'aeon_ztp/bin/aztp-manage'],
license="Apache 2.0",
keywords="networking automation vendor-agnostic",
packages=find_packages(exclude=["tests", ".*"]),
include_package_data=True,
install_requires=install_reqs,
zip_safe=False,
tests_require=['tox'],
cmdclass = {'test': Tox},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)