-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 1.53 KB
/
setup.py
File metadata and controls
48 lines (42 loc) · 1.53 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
'''
Created on 2015/12/10
Author: by wang_yang1980@hotmail.com
'''
from setuptools import setup, find_packages
import sys
from os.path import abspath, dirname, join
with open(join(dirname(abspath(__file__)), 'src', 'ScapyLibrary', 'version.py')) as f:
exec(f.read())
sys.path.insert(0, join(dirname(abspath(__file__)), 'src'))
xmlFile = join(dirname(abspath(__file__)), 'src', 'ScapyLibrary', 'ScapyLibrary.xml')
try:
from robot.libdoc import libdoc
libdoc('ScapyLibrary', xmlFile, name='ScapyLibrary', version=__version__, format='XML')
except ImportError:
pass
DESCRIPTION = """
Scapy Robot Framework Library provide keywords for Robot Framework to send, sniff and dissect and forge network packets through scapy.
"""[1:-1]
CLASSIFIERS = """
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Testing
"""[1:-1]
setup(name='robotframework-ScapyLibrary',
version=__version__,
description='Scapy library for Robot Framework',
long_description=DESCRIPTION,
author='Wang Yang',
author_email='wang_yang1980@hotmail.com',
url='https://github.com/rainmanwy/robotframework-ScapyLibrary',
license='Apache License 2.0',
keywords='robotframework testing testautomation scapy network protocol',
platforms='any',
classifiers=CLASSIFIERS.splitlines(),
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=[
'scapy>=2.3.2',
],
package_data={'ScapyLibrary': ['ScapyLibrary.xml']},
)