-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
87 lines (81 loc) · 3.36 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2016 Fabio Falcinelli, Maximilian Hils
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from codecs import open
from setuptools import setup, find_packages
__author__ = 'fabio'
workdir = os.path.abspath(os.path.dirname(__file__))
# https://packaging.python.org/single_source_version/
with open(os.path.join(workdir, "pydivert", "__init__.py")) as fp:
__version__ = fp.read().split("__version__ = '", 1)[1].split("'", 1)[0]
with open(os.path.join(workdir, 'README.rst')) as f:
long_description = f.read()
setup(
name='pydivert',
version=__version__,
description='Python binding to windivert driver',
long_description=long_description,
author='Fabio Falcinelli',
author_email='[email protected]',
url='https://github.com/ffalcinelli/pydivert',
download_url='https://github.com/ffalcinelli/pydivert/releases/{}'.format(__version__),
keywords=['windivert', 'network', 'tcp/ip'],
license="LGPLv3",
packages=find_packages(),
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Operating System :: Microsoft :: Windows :: Windows Vista',
'Operating System :: Microsoft :: Windows :: Windows Server 2008',
'Operating System :: Microsoft :: Windows :: Windows 7',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking :: Firewalls',
'Topic :: System :: Networking :: Monitoring',
'Topic :: Utilities',
],
extras_require={
"test": [
"mock>=1.0.1",
"hypothesis>=3.5.3",
"pytest>=3.0.3",
"pytest-cov>=2.2.1",
"pytest-timeout>=1.0.0, <2",
"pytest-faulthandler>=1.3.0, <2",
"codecov>=2.0.5",
"wheel>=0.29",
],
"docs": [
"sphinx>=1.4.8",
],
# Do not use a range operator here: https://bitbucket.org/pypa/setuptools/issues/380
# Ubuntu Trusty and other still ship with setuptools < 17.1
':python_version == "2.7" or python_version == "3.3"': [
"win_inet_pton>=1.0.1", # available on 3.4+
"enum34>=1.1.6", # available on 3.4+
]
}
)