forked from karpierz/libpcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
192 lines (171 loc) · 4.35 KB
/
setup.cfg
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Copyright (c) 2016-2020, Adam Karpierz
# Licensed under the BSD license
# https://opensource.org/licenses/BSD-3-Clause
[metadata]
long_description = file: README.rst, CHANGES.rst
long_description_content_type = text/x-rst; charset=UTF-8
project_urls =
Documentation=https://libpcap.readthedocs.io/
Source=https://github.com/karpierz/libpcap
Issues=https://github.com/karpierz/libpcap/issues
license_files = LICENSE
keywords = pcap, libpcap, wpcap, npcap
platforms = any
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Natural Language :: Polish
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: Stackless
Topic :: Software Development :: Libraries :: Python Modules
[options]
python_requires = >=3.6.0,<4.0.0
setup_requires =
setuptools>=42.0.2
install_requires =
setuptools>=42.0.2
packages = find:
package_dir =
= src
# libpcap.tests = tests
zip_safe = False
[options.packages.find]
where = src
[options.package_data]
libpcap = libpcap.cfg
libpcap._platform = */*/*/*.dll, */*/*/*.so, */*/*.dylib, */*/*/.keep
[options.extras_require]
doc =
Sphinx>=3.2.1
restructuredtext-lint>=1.3.1
test =
[sdist]
formats = zip
[bdist_wheel]
universal = False
[build_sphinx]
source-dir = docs
build-dir = build/docs
builder = html
all-files = True
warning-is-error = True
#
# Configuration(s) for tox
#
[tox:tox]
envlist = py{36,37,38,39}, coverage, docs
minversion = 3.13.2
requires =
tox-venv>=0.4.0
{[base]setup_requires}
skip_missing_interpreters = true
[base]
setup_requires =
pip>=20.2.3
setuptools>=50.3.0
wheel>=0.35.1
packagesubdir = libpcap
[testenv]
passenv = WINDIR
commands =
{envpython} --version
{envpython} -B -m tests {posargs}
extras = test
deps =
{[base]setup_requires}
[testenv:prepare]
basepython = python3.7
skip_install = true
whitelist_externals =
cmd
.build
commands =
cmd /C if exist .build.cmd .build.cmd
[testenv:coverage]
basepython = python3.7
commands =
{envpython} -m coverage erase
-{envpython} -B -m coverage run -m tests {posargs}
{envpython} -m coverage report
{envpython} -m coverage html
deps =
{[testenv]deps}
coverage>=5.3.0
diff-cover>=4.0.0
[testenv:docs]
basepython = python3.7
commands =
#{envpython} -m sphinx.apidoc -f {envsitepackagesdir}/{[base]packagesubdir}
{envpython} setup.py -v build_sphinx -b html -E
{envpython} setup.py -v build_sphinx -b linkcheck
{envpython} setup.py -v build_sphinx -b doctest
extras = doc
[testenv:lint]
basepython = python3.7
commands =
{envpython} -m flake8 {envsitepackagesdir}/{[base]packagesubdir}/
extras =
deps =
{[testenv]deps}
flake8>=3.8.3
flake8-docstrings>=1.5.0
pep8-naming>=0.11.1
flake8-builtins>=1.5.3
[testenv:publish]
basepython = python3.7
commands =
{envpython} setup.py sdist
{envpython} -m twine check dist/*
{envpython} -m twine upload dist/*
extras =
deps =
{[testenv]deps}
twine>=3.2.0
[coverage:run]
source =
libpcap
tests
data_file = .tox/coverage/.coverage
[coverage:report]
exclude_lines =
# Regexes
# Have to re-enable the standard pragma
pragma: no cover
raise (AssertionError|NotImplementedError)
if\s+(0|False)\s*:
if\s+__name__.*\s*==\s*['"]__main__['"]\s*:
^\s*@unittest\.skip\(
^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)
omit =
tests/run.py
skip_covered = False
[coverage:html]
directory = .tox/coverage/.coverage.html
[flake8]
filename = *.py,*.pyx
#include = tests
#exclude = .tox,*.egg,.git,_build,.hypothesis
max-line-length = 99
ignore = E126,E203,E221,E251,E302,E701,E702,E731,
E122,E127,E128,E222,E272,E241,E266, E226,E704,
D100, D101, D102, D103, D104, D400, D401, D202,
N806, N802, N803, N801,
I100
# (e.g. E4,W) default: E121,E123, 126, 226,E24, 704
#select =
#select = E,W,F,N,I
output-file = .tox/lint/flake8out.txt
count = True
#show-pep8,
#show-source
#verbose
#quiet