forked from gaainf/pcaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·79 lines (73 loc) · 2.34 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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Alexander Grechin
#
# Licensed under the BSD 3-Clause license.
# See LICENSE file in the project root for full license information.
#
"""Setup module"""
from setuptools import setup, find_packages
import re
from os.path import join, dirname
with open('README.rst') as f:
long_readme = f.read()
setuptools_kwargs = {
'install_requires': [
'dpkt>=1.9.1',
'flake8>=3.5.0',
'six>=1.11.0',
'python-dateutil>=2.8.0',
'zipp<=1.2.0; python_version<"3"'
],
'setup_requires': 'pytest-runner',
'tests_require': [
'pytest<=3.7.2; python_version<"3"',
'pytest>=3.7.2; python_version>"3"',
'more-itertools<=5.0.0; python_version<"3"',
'pyparsing<3.0.0; python_version<"3"',
'pytest-cov<2.6.0; python_version<"3"',
'pytest-cov>=2.6.0; python_version>"3"',
'mock<=3.0.0; python_version<="3.5"',
'mock>=3.0.0; python_version>"3.5"',
],
'entry_points': {
'console_scripts': [
'pcap2txt=pcaper.pcap2txt:main',
'har2txt=pcaper.har2txt:main'
],
},
}
PACKAGE_NAME = 'pcaper'
AUTHOR = 'Alexander Grechin'
AUTHOR_EMAIL = 'infinum@mail.ru'
LICENSE = 'BSD'
with open(join(dirname(__file__), PACKAGE_NAME, '_version.py'), 'r') as f:
VERSION = re.match(r".*__version__ = '(.*?)'", f.read(), re.S).group(1)
setup(
name=PACKAGE_NAME,
version=VERSION,
packages=find_packages(exclude=('tests', 'docs')),
description='Read pcap and assemble HTTP requests',
long_description=long_readme,
keywords='traffic pcap utilities tcpdump tshark wireshark',
author=AUTHOR,
author_email=AUTHOR_EMAIL,
download_url='https://github.com/gaainf/pcaper',
url='https://github.com/gaainf/pcaper',
license='BSD-3-Clause',
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development',
'Topic :: Utilities'
],
**setuptools_kwargs
)