forked from openslide/openslide
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.cfg.in
122 lines (110 loc) · 2.8 KB
/
setup.cfg.in
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
[metadata]
name = @CMAKE_PROJECT_NAME@,
description = @CMAKE_PROJECT_DESCRIPTION@,
long_description = file: README.md,
long_description_content_type = text/markdown,
author = Nico Curti,
author_email = [email protected],
platforms = any,
license = LGPL
license_file = LICENSE
description_file = README.md
classifiers = License :: OSI Approved :: LGPL License,
Natural Language :: English,
Operating System :: MacOS :: MacOS X,
Operating System :: POSIX,
Operating System :: POSIX :: Linux,
Operating System :: Microsoft :: Windows,
Programming Language :: Python,
Programming Language :: Python :: 3,
Programming Language :: Python :: 3.5,
Programming Language :: Python :: 3.6,
Programming Language :: Python :: 3.7,
Programming Language :: Python :: 3.8,
Programming Language :: Python :: Implementation :: CPython,
Programming Language :: Python :: Implementation :: PyPy
[options]
packages = find:
install_requires =
setuptools>=18.0
wheel
cython>=0.29
numpy>=1.16
cmake>=3.12.0
python_requires = >=3.5
include_package_data = True
zip_safe = False
[options.extras_require]
test =
hypothesis>=5.5.3
pytest>=6.0
[options.package_data]
* = lib/**/*.dll
[build_ext]
inplace = True
[options.packages.find]
include = python, python.*
exclude = test, testing
[coverage:run]
branch = True
omit =
python/__init__.py
python/__version__.py
./setup_.py
plugins = Cython.Coverage
source = python
[coverage:report]
ignore_errors = False
show_missing = True
omit =
python/__init__.py
python/__version__.py
./setup_.py
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
AbstractMethodError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
[coverage:html]
directory = coverage_html_report
[flake8]
max-line-length = 88
ignore =
# space before : (needed for how black formats slicing)
E203,
# line break before binary operator
W503,
# line break after binary operator
W504,
# module level import not at top of file
E402,
# do not assign a lambda expression, use a def
E731,
# found modulo formatter (incorrect picks up mod operations)
S001,
# controversial
B005,
# controversial
B006,
# controversial
B007,
# controversial
B008,
# setattr is used to side-step mypy
B009,
# getattr is used to side-step mypy
B010,
# tests use assert False
B011,
# tests use comparisons but not their returned value
B015,
# false positives
B301