This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (76 loc) · 2.07 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
#!/usr/bin/env python
#
# Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
import sys
from setuptools import setup
__author__ = 'Marcel Sestak'
__email__ = 'msestak@cisco.com'
__version__ = '0.1'
__status__ = 'alpha'
"""
SFC package installer
"""
if sys.platform.startswith('linux'):
inst_requires = [
'ipaddress',
'Flask >= 0.10.1',
'paramiko >= 1.15.2',
'pytest >= 2.6.4',
'requests >= 2.5.1',
'scapy-python3 >= 0.13',
'netifaces>=0.10.4',
'NFQP3',
]
else:
inst_requires = [
'ipaddress',
'Flask >= 0.10.1',
'paramiko >= 1.15.2',
'pytest >= 2.6.4',
'requests >= 2.5.1',
'scapy-python3 >= 0.13',
'netifaces>=0.10.4',
]
def readme(file):
"""
Read file content to string
:param file: target file
:type file: str
:return str
"""
# Support for Python 2.xx
if sys.version_info < (3, 0):
with open(name=file, mode='r') as _file:
content = _file.read()
else:
with open(file=file, mode='r', encoding='utf-8') as _file:
content = _file.read()
return content
setup(
name='sfc',
version='0.1.4',
keywords='sfc nsh nfq',
description='Service Function Chaining',
long_description=readme('README.rst'),
url='https://wiki.opendaylight.org/view/Service_Function_Chaining:Main',
author='SFC Developers',
author_email='sfc-dev@lists.opendaylight.org',
packages=[
'sfc',
'sfc.cli',
'sfc.nsh',
'sfc.common'
],
install_requires=inst_requires,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.4',
'Operating System :: POSIX :: Linux',
'Natural Language :: English',
]
)