forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
271 lines (247 loc) · 7.59 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
[metadata]
name = Twisted
version = attr: twisted.__version__
description = An asynchronous networking framework written in Python
author = Twisted Matrix Laboratories
author_email = twisted-python@twistedmatrix.com
maintainer = Glyph Lefkowitz
maintainer_email = glyph@twistedmatrix.com
url = https://twistedmatrix.com/
project_urls =
Documentation=https://docs.twistedmatrix.com/
Source=https://github.com/twisted/twisted
Issues=https://twistedmatrix.com/trac/report
Twitter=https://twitter.com/twistedmatrix
Changelog=https://github.com/twisted/twisted/blob/HEAD/NEWS.rst
license = MIT
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
long_description_content_type = text/x-rst
[options]
# When updating this value, make sure our CI matrix includes a matching minimum version.
python_requires = >=3.7.1
install_requires =
zope.interface >= 4.4.2
constantly >= 15.1
incremental >= 21.3.0
Automat >= 0.8.0
hyperlink >= 17.1.1
attrs >= 19.2.0
typing_extensions >= 3.6.5
twisted-iocpsupport >= 1.0.2, <2; platform_system == "Windows"
include_package_data = True
zip_safe = False
package_dir = =src
packages = find:
[options.extras_require]
; This is list of minimum dependencies required to run the test.
; The plan is to remove the `test` extra requirement and skip tests that
; depend on then
; To prevent trunk failures we should pin all dev dependencies to minor
; versions.
; We trust semantic versioning and auto-upgrading to a bugfix release
; should be OK.
test =
cython-test-exception-raiser >= 1.0.2, <2
PyHamcrest >= 1.9.0
; List of dependencies required to build the documentation and test the
; release scripts and process.
dev_release =
towncrier ~= 19.2
pydoctor ~= 22.7.0
sphinx-rtd-theme ~= 0.5
readthedocs-sphinx-ext ~= 2.1
sphinx >= 4.1.2, <6
; All the extra tools used to help with the development process.
dev =
%(dev_release)s
pyflakes ~= 2.2
# TODO: support python-subunit in py3.10 https://twistedmatrix.com/trac/ticket/10115
python-subunit ~= 1.4; python_version < "3.10"
twistedchecker ~= 0.7
coverage >= 6b1, <7
tls =
pyopenssl >= 21.0.0
# service_identity 18.1.0 added support for validating IP addresses in
# certificate subjectAltNames
service_identity >= 18.1.0
idna >= 2.4
conch =
pyasn1
cryptography >= 2.6
appdirs >= 1.4.0
bcrypt >= 3.0.0
conch_nacl =
%(conch)s
# Used to support Ed25519 keys on systems with OpenSSL < 1.1.1b
PyNaCl
serial =
pyserial >= 3.0
pywin32 != 226; platform_system == "Windows"
http2 =
h2 >= 3.0, < 5.0
priority >= 1.1.0, < 2.0
contextvars =
contextvars >= 2.4, < 3; python_version < "3.7"
all_non_platform =
%(test)s
%(tls)s
%(conch)s
%(serial)s
%(http2)s
%(contextvars)s
macos_platform =
pyobjc-core
pyobjc-framework-CFNetwork
pyobjc-framework-Cocoa
%(all_non_platform)s
windows_platform =
pywin32 != 226
%(all_non_platform)s
osx_platform =
%(macos_platform)s
gtk_platform =
pygobject
%(all_non_platform)s
mypy =
mypy==0.930
mypy-zope==0.3.4
types-setuptools
types-pyOpenSSL
%(dev)s
%(all_non_platform)s
%(conch_nacl)s
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
ckeygen = twisted.conch.scripts.ckeygen:run
cftp = twisted.conch.scripts.cftp:run
conch = twisted.conch.scripts.conch:run
mailmail = twisted.mail.scripts.mailmail:run
pyhtmlizer = twisted.scripts.htmlizer:run
tkconch = twisted.conch.scripts.tkconch:run
trial = twisted.scripts.trial:run
twist = twisted.application.twist._twist:Twist.main
twistd = twisted.scripts.twistd:run
[options.exclude_package_data]
* =
*.c
*.h
*.pxi
*.pyx
build.bat
[flake8]
disable-noqa = True
max-line-length = 182
extend-ignore =
E203, # whitespace before : is not PEP8 compliant (& conflicts with black)
per-file-ignores =
src/twisted/*:
# block comment should start with '# '
E265,
# too many leading '#' for block comment
E266,
# multiple imports on one line
E401,
# module level import not at top of file
E402,
# comparison to None should be 'if cond is None:'
E711,
# comparison to True should be 'if cond is True:' or 'if cond:'
E712,
# do not compare types, use 'isinstance()'
E721,
# do not assign a lambda expression, use a def
E731,
# ambiguous variable name 'l'
E741,
# ambiguous function definition 'l'
E743,
# .has_key() is deprecated, use 'in'
W601,
docs/*:
# block comment should start with '# '
E265,
# too many leading '#' for block comment
E266,
# multiple imports on one line
E401,
# module level import not at top of file
E402,
# ambiguous variable name 'l'
E741,
# 'string' imported but unused
F401,
# 'from Foundation import *' used; unable to detect undefined names
F403,
# 'USEREVENT' may be undefined, or defined from star imports: pygame.locals
F405,
# redefinition of unused 'pb' from line 8
F811,
# undefined name 'name'
F821,
# local variable 'd' is assigned to but never used
F841,
# trailing whitespace
W291,
# blank line contains whitespace
W293,
[tool:pydoctor]
quiet=1
warnings-as-errors=true
project-name=Twisted
project-url=https://twisted.org/
docformat=epytext
theme=readthedocs
privacy=
HIDDEN:twisted.words.test
HIDDEN:twisted.web.test
HIDDEN:twisted.spread.test
HIDDEN:twisted.scripts.test
HIDDEN:twisted.runner.test
HIDDEN:twisted.python.test
HIDDEN:twisted.protocols.haproxy.test
HIDDEN:twisted.protocols.test
HIDDEN:twisted.positioning.test
HIDDEN:twisted.persisted.test
HIDDEN:twisted.pair.test
HIDDEN:twisted.names.test
HIDDEN:twisted.mail.test
HIDDEN:twisted.logger.test
HIDDEN:twisted.cred.test
HIDDEN:twisted.conch.test
HIDDEN:twisted.application.runner.test
HIDDEN:twisted.application.twist.test
HIDDEN:twisted.application.test
HIDDEN:twisted._threads.test
HIDDEN:twisted.trial._dist.test
HIDDEN:twisted.trial.test
HIDDEN:twisted.internet.test
HIDDEN:twisted.test.*
PUBLIC:twisted.test.proto_helpers
intersphinx=
https://docs.python.org/3/objects.inv
https://cryptography.io/en/latest/objects.inv
https://pyopenssl.readthedocs.io/en/stable/objects.inv
https://hyperlink.readthedocs.io/en/stable/objects.inv
https://twisted.org/constantly/docs/objects.inv
https://twisted.org/incremental/docs/objects.inv
https://python-hyper.org/projects/hyper-h2/en/stable/objects.inv
https://priority.readthedocs.io/en/stable/objects.inv
https://zopeinterface.readthedocs.io/en/latest/objects.inv
https://automat.readthedocs.io/en/latest/objects.inv
;
; These options are used as default for the tox and direct command line usage.
; They are designed to help with documentation development.
; For documentation publishing, they need to be overriden in sphinx's conf.py
; No custom `--template-dir` is use here.
; We do have a custom template for final documentation publishing.
project-base-dir=src/twisted
html-output=docs/_build/api
html-viewsource-base=https://github.com/twisted/twisted/tree/trunk/src