forked from urllib3/urllib3
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
153 lines (142 loc) · 5.64 KB
/
pyproject.toml
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
# This file is protected via CODEOWNERS
[build-system]
requires = ["hatchling>=1.6.0,<2"]
build-backend = "hatchling.build"
[project]
name = "urllib3-future"
description = "urllib3.future is a powerful HTTP 1.1, 2, and 3 client with both sync and async interfaces"
readme = "README.md"
license-files = { paths = ["LICENSE.txt"] }
license = "MIT"
keywords = ["urllib", "httplib", "threadsafe", "filepost", "http", "https", "ssl", "pooling", "multiplexed", "concurrent", "dns", "dot", "doq", "doh", "dou", "dns-over-quic", "dns-over-https", "dns-over-tls", "async", "tasksafe"]
authors = [
{name = "Andrey Petrov", email = "andrey.petrov@shazow.net"}
]
maintainers = [
{name = "Ahmed R. TAHRI", email="tahri.ahmed@proton.me"},
]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.7"
dynamic = ["version"]
dependencies = [
"qh3>=1.2.0,<2.0.0; (platform_python_implementation != 'CPython' or python_full_version > '3.7.10') and (platform_system == 'Darwin' or platform_system == 'Windows' or platform_system == 'Linux') and (platform_machine == 'x86_64' or platform_machine == 's390x' or platform_machine == 'aarch64' or platform_machine == 'armv7l' or platform_machine == 'ppc64le' or platform_machine == 'ppc64' or platform_machine == 'AMD64' or platform_machine == 'arm64' or platform_machine == 'ARM64') and (platform_python_implementation == 'CPython' or (platform_python_implementation == 'PyPy' and python_version < '3.11'))",
"h11>=0.11.0,<1.0.0",
"jh2>=5.0.3,<6.0.0",
]
[project.optional-dependencies]
brotli = [
"brotli>=1.0.9; platform_python_implementation == 'CPython'",
"brotlicffi>=0.8.0; platform_python_implementation != 'CPython'"
]
zstd = [
"zstandard>=0.18.0",
]
secure = []
socks = [
"python-socks>=2.0,<3.0",
]
qh3 = [
"qh3>=1.2.0,<2.0.0",
]
ws = [
"wsproto>=1.2,<2",
]
[project.urls]
"Changelog" = "https://github.com/jawah/urllib3.future/blob/main/CHANGES.rst"
"Documentation" = "https://urllib3future.readthedocs.io"
"Code" = "https://github.com/jawah/urllib3.future"
"Issue tracker" = "https://github.com/jawah/urllib3.future/issues"
[tool.hatch.version]
path = "src/urllib3/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/dummyserver",
"/src",
"/test",
"/dev-requirements.txt",
"/CHANGES.rst",
"/README.md",
"/LICENSE.txt",
"/hatch_build.py",
"/noxfile.py",
"/docker-compose.yaml",
"/docker-compose.win.yaml",
"/traefik/certificate.toml",
"/traefik/patched.Dockerfile",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/urllib3",
"src/urllib3_future",
]
[tool.hatch.build.hooks.custom]
[tool.pytest.ini_options]
xfail_strict = true
python_classes = ["Test", "*TestCase"]
markers = ["limit_memory"]
log_level = "DEBUG"
filterwarnings = [
"error",
'''default:ssl\.PROTOCOL_TLS is deprecated:DeprecationWarning''',
'''default:ssl\.PROTOCOL_TLSv1 is deprecated:DeprecationWarning''',
'''default:ssl\.TLSVersion\.TLSv1_1 is deprecated:DeprecationWarning''',
'''default:ssl\.PROTOCOL_TLSv1_1 is deprecated:DeprecationWarning''',
'''default:ssl\.PROTOCOL_TLSv1_2 is deprecated:DeprecationWarning''',
'''default:unclosed .*:ResourceWarning''',
'''ignore:No IPv6 support. Falling back to IPv4:urllib3.exceptions.HTTPWarning''',
'''ignore:No IPv6 support. skipping:urllib3.exceptions.HTTPWarning''',
'''ignore:ssl NPN is deprecated, use ALPN instead:DeprecationWarning''',
'''default:A conflicting charset has been set in Content-Type:UserWarning''',
'''ignore:util\.connection\.create_connection\(\) is deprecated and scheduled for removal:DeprecationWarning''',
'''ignore:RecentlyUsedContainer is deprecated and scheduled for removal:DeprecationWarning''',
'''ignore:The event_loop fixture provided by:DeprecationWarning''',
'''ignore:A plugin raised an exception during''',
'''ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning''',
'''ignore:Exception in thread:pytest.PytestUnhandledThreadExceptionWarning''',
'''ignore:function _SSLProtocolTransport\.__del__:pytest.PytestUnraisableExceptionWarning''',
'''ignore:The `hash` argument is deprecated in favor of `unsafe_hash`:DeprecationWarning''',
'''ignore:ssl\.TLSVersion\.TLSv1 is deprecated:DeprecationWarning''',
'''ignore:ssl\.TLSVersion\.TLSv1_1 is deprecated:DeprecationWarning''',
'''ignore:loop is closed:ResourceWarning''',
'''ignore:iscoroutinefunction:DeprecationWarning''',
]
[tool.isort]
profile = "black"
add_imports = "from __future__ import annotations"
[tool.mypy]
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true