forked from psf/requests
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (155 loc) · 4.91 KB
/
Copy pathpyproject.toml
File metadata and controls
167 lines (155 loc) · 4.91 KB
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
[build-system]
requires = ["hatchling>=1.6.0,<2"]
build-backend = "hatchling.build"
[project]
name = "niquests"
description = "Niquests is a simple, yet elegant, HTTP library. It is a drop-in replacement for Requests, which is under feature freeze."
readme = "README.md"
license-files = { paths = ["LICENSE"] }
license = "Apache-2.0"
keywords = ["requests", "http2", "http3", "QUIC", "http", "https", "http client", "http/1.1", "ocsp", "crl", "revocation", "tls", "multiplexed", "dns-over-quic", "doq", "dns-over-tls", "dot", "dns-over-https", "doh", "dnssec", "websocket", "sse", "wasi", "wasmtime"]
authors = [
{name = "Kenneth Reitz", email = "me@kennethreitz.org"}
]
maintainers = [
{name = "Ahmed R. TAHRI", email="tahri.ahmed@proton.me"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"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.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: Free Threading :: 4 - Resilient",
"Environment :: WebAssembly",
"Environment :: WebAssembly :: WASI",
"Environment :: WebAssembly :: Emscripten",
]
requires-python = ">=3.7"
dynamic = ["version"]
dependencies = [
"charset_normalizer>=2,<4",
"urllib3.future>=2.13.903,<3",
"wassima>=1.0.1,<3; sys_platform != 'emscripten'",
]
[project.optional-dependencies]
socks = [
"urllib3.future[socks]",
]
http3 = [
"urllib3.future[qh3]",
]
ocsp = [
"urllib3.future[qh3]",
]
ws = [
"urllib3.future[ws]",
]
speedups = [
"orjson>=3,<4",
"urllib3.future[zstd,brotli]",
]
zstd = [
"urllib3.future[zstd]",
]
brotli = [
"urllib3.future[brotli]",
]
rtls = [
"urllib3.future[rtls]",
]
utls = [
"urllib3.future[utls]",
]
full = [
"orjson>=3,<4",
"urllib3.future[zstd,brotli,ws,socks,rtls]",
]
[project.urls]
"Changelog" = "https://github.com/jawah/niquests/blob/main/HISTORY.md"
"Documentation" = "https://niquests.readthedocs.io"
"Code" = "https://github.com/jawah/niquests"
"Issue tracker" = "https://github.com/jawah/niquests/issues"
[tool.hatch.version]
path = "src/niquests/__version__.py"
[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/src",
"/tests",
"/requirements-dev.txt",
"/requirements-wasi.txt",
"/requirements-wasm.txt",
"/HISTORY.md",
"/README.md",
"/SECURITY.md",
"/AUTHORS.rst",
"/LICENSE",
"/NOTICE",
"/Makefile",
"/docker-compose.yaml",
"/docker-compose.win.yaml",
"/traefik",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/niquests",
]
[tool.ruff]
line-length = 128
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"W", # pycodestyle
"I", # isort
"U", # pyupgrade
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[[tool.mypy.overrides]]
module = ["niquests.packages.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
minversion = "6.2"
testpaths = ["tests"]
markers = [
"pyodide: mark test to run in pyodide environment",
]
filterwarnings = [
"error",
'''ignore:'parse_authorization_header' is deprecated and will be removed:DeprecationWarning''',
'''ignore:The 'set_digest' method is deprecated and will be removed:UserWarning''',
'''ignore:Passing bytes as a header value is deprecated and will:DeprecationWarning''',
'''ignore:The 'JSONIFY_PRETTYPRINT_REGULAR' config key is deprecated and will:DeprecationWarning''',
'''ignore:unclosed .*:ResourceWarning''',
'''ignore:A plugin raised an exception during an old-style hookwrapper teardown''',
'''ignore:.*is required to prevent decompression bombs.*''',
'''ignore:.*:pytest.PytestUnraisableExceptionWarning''',
'''ignore:.*iscoroutinefunction.*:DeprecationWarning''',
'''ignore:.*get_event_loop.*:DeprecationWarning''',
'''ignore:.*set_event_loop.*:DeprecationWarning''',
'''ignore:.*EventLoopPolicy.*:DeprecationWarning''',
'''ignore:Module globals; __loader__ != __spec__\.loader:DeprecationWarning''',
]
[tool.codespell]
ignore-words-list = "fo,wit"