urlpattern 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.github/workflows/CI.yml +13 -13
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.gitignore +2 -2
- {urlpattern-0.3.1 → urlpattern-0.3.2}/Cargo.lock +89 -79
- {urlpattern-0.3.1 → urlpattern-0.3.2}/Cargo.toml +4 -4
- {urlpattern-0.3.1 → urlpattern-0.3.2}/PKG-INFO +9 -9
- {urlpattern-0.3.1 → urlpattern-0.3.2}/README.md +3 -3
- {urlpattern-0.3.1 → urlpattern-0.3.2}/pyproject.toml +6 -6
- {urlpattern-0.3.1 → urlpattern-0.3.2}/tests/urlpatterntestdata.json +23 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.devcontainer/devcontainer.json +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.github/dependabot.yml +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.vscode/extensions.json +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/.vscode/settings.json +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/LICENSE +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/src/lib.rs +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/tests/__init__.py +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/tests/test_lib.py +0 -0
- {urlpattern-0.3.1 → urlpattern-0.3.2}/urlpattern.pyi +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# This file is autogenerated by maturin v1.
|
|
1
|
+
# This file is autogenerated by maturin v1.16.0
|
|
2
2
|
# To update, run
|
|
3
3
|
#
|
|
4
|
-
# maturin generate-ci github
|
|
4
|
+
# maturin generate-ci github --output .github/workflows/CI.yml
|
|
5
5
|
#
|
|
6
6
|
name: CI
|
|
7
7
|
|
|
@@ -40,7 +40,7 @@ jobs:
|
|
|
40
40
|
- uses: actions/checkout@v6
|
|
41
41
|
- uses: actions/setup-python@v6
|
|
42
42
|
with:
|
|
43
|
-
python-version: 3.
|
|
43
|
+
python-version: "3.9"
|
|
44
44
|
- name: Build wheels
|
|
45
45
|
uses: PyO3/maturin-action@v1
|
|
46
46
|
with:
|
|
@@ -49,7 +49,7 @@ jobs:
|
|
|
49
49
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
50
50
|
manylinux: auto
|
|
51
51
|
- name: Upload wheels
|
|
52
|
-
uses: actions/upload-artifact@
|
|
52
|
+
uses: actions/upload-artifact@v6
|
|
53
53
|
with:
|
|
54
54
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
55
55
|
path: dist
|
|
@@ -71,7 +71,7 @@ jobs:
|
|
|
71
71
|
- uses: actions/checkout@v6
|
|
72
72
|
- uses: actions/setup-python@v6
|
|
73
73
|
with:
|
|
74
|
-
python-version: 3.
|
|
74
|
+
python-version: "3.9"
|
|
75
75
|
- name: Build wheels
|
|
76
76
|
uses: PyO3/maturin-action@v1
|
|
77
77
|
with:
|
|
@@ -80,7 +80,7 @@ jobs:
|
|
|
80
80
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
81
81
|
manylinux: musllinux_1_2
|
|
82
82
|
- name: Upload wheels
|
|
83
|
-
uses: actions/upload-artifact@
|
|
83
|
+
uses: actions/upload-artifact@v6
|
|
84
84
|
with:
|
|
85
85
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
86
86
|
path: dist
|
|
@@ -103,7 +103,7 @@ jobs:
|
|
|
103
103
|
- uses: actions/checkout@v6
|
|
104
104
|
- uses: actions/setup-python@v6
|
|
105
105
|
with:
|
|
106
|
-
python-version: 3.13
|
|
106
|
+
python-version: "3.13"
|
|
107
107
|
architecture: ${{ matrix.platform.python_arch }}
|
|
108
108
|
- name: Build wheels
|
|
109
109
|
uses: PyO3/maturin-action@v1
|
|
@@ -112,7 +112,7 @@ jobs:
|
|
|
112
112
|
args: --release --out dist --find-interpreter
|
|
113
113
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
114
114
|
- name: Upload wheels
|
|
115
|
-
uses: actions/upload-artifact@
|
|
115
|
+
uses: actions/upload-artifact@v6
|
|
116
116
|
with:
|
|
117
117
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
118
118
|
path: dist
|
|
@@ -130,7 +130,7 @@ jobs:
|
|
|
130
130
|
- uses: actions/checkout@v6
|
|
131
131
|
- uses: actions/setup-python@v6
|
|
132
132
|
with:
|
|
133
|
-
python-version: 3.
|
|
133
|
+
python-version: "3.9"
|
|
134
134
|
- name: Build wheels
|
|
135
135
|
uses: PyO3/maturin-action@v1
|
|
136
136
|
with:
|
|
@@ -138,7 +138,7 @@ jobs:
|
|
|
138
138
|
args: --release --out dist --find-interpreter
|
|
139
139
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
140
140
|
- name: Upload wheels
|
|
141
|
-
uses: actions/upload-artifact@
|
|
141
|
+
uses: actions/upload-artifact@v6
|
|
142
142
|
with:
|
|
143
143
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
144
144
|
path: dist
|
|
@@ -153,7 +153,7 @@ jobs:
|
|
|
153
153
|
command: sdist
|
|
154
154
|
args: --out dist
|
|
155
155
|
- name: Upload sdist
|
|
156
|
-
uses: actions/upload-artifact@
|
|
156
|
+
uses: actions/upload-artifact@v6
|
|
157
157
|
with:
|
|
158
158
|
name: wheels-sdist
|
|
159
159
|
path: dist
|
|
@@ -172,9 +172,9 @@ jobs:
|
|
|
172
172
|
# Used to generate artifact attestation
|
|
173
173
|
attestations: write
|
|
174
174
|
steps:
|
|
175
|
-
- uses: actions/download-artifact@
|
|
175
|
+
- uses: actions/download-artifact@v7
|
|
176
176
|
- name: Generate artifact attestation
|
|
177
|
-
uses: actions/attest
|
|
177
|
+
uses: actions/attest@v4
|
|
178
178
|
with:
|
|
179
179
|
subject-path: 'wheels-*/*'
|
|
180
180
|
- name: Install uv
|
|
@@ -4,18 +4,18 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "aho-corasick"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.5"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"memchr",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[[package]]
|
|
15
15
|
name = "displaydoc"
|
|
16
|
-
version = "0.2.
|
|
16
|
+
version = "0.2.7"
|
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
-
checksum = "
|
|
18
|
+
checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
|
|
19
19
|
dependencies = [
|
|
20
20
|
"proc-macro2",
|
|
21
21
|
"quote",
|
|
@@ -39,9 +39,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
39
39
|
|
|
40
40
|
[[package]]
|
|
41
41
|
name = "icu_collections"
|
|
42
|
-
version = "2.
|
|
42
|
+
version = "2.4.0"
|
|
43
43
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
-
checksum = "
|
|
44
|
+
checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
|
|
45
45
|
dependencies = [
|
|
46
46
|
"displaydoc",
|
|
47
47
|
"potential_utf",
|
|
@@ -53,9 +53,9 @@ dependencies = [
|
|
|
53
53
|
|
|
54
54
|
[[package]]
|
|
55
55
|
name = "icu_locale_core"
|
|
56
|
-
version = "2.
|
|
56
|
+
version = "2.4.0"
|
|
57
57
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
-
checksum = "
|
|
58
|
+
checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
|
|
59
59
|
dependencies = [
|
|
60
60
|
"displaydoc",
|
|
61
61
|
"litemap",
|
|
@@ -66,9 +66,9 @@ dependencies = [
|
|
|
66
66
|
|
|
67
67
|
[[package]]
|
|
68
68
|
name = "icu_normalizer"
|
|
69
|
-
version = "2.
|
|
69
|
+
version = "2.4.0"
|
|
70
70
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
-
checksum = "
|
|
71
|
+
checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
|
|
72
72
|
dependencies = [
|
|
73
73
|
"icu_collections",
|
|
74
74
|
"icu_normalizer_data",
|
|
@@ -80,16 +80,17 @@ dependencies = [
|
|
|
80
80
|
|
|
81
81
|
[[package]]
|
|
82
82
|
name = "icu_normalizer_data"
|
|
83
|
-
version = "2.
|
|
83
|
+
version = "2.4.0"
|
|
84
84
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
85
|
-
checksum = "
|
|
85
|
+
checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
|
|
86
86
|
|
|
87
87
|
[[package]]
|
|
88
88
|
name = "icu_properties"
|
|
89
|
-
version = "2.
|
|
89
|
+
version = "2.4.0"
|
|
90
90
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
-
checksum = "
|
|
91
|
+
checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
|
|
92
92
|
dependencies = [
|
|
93
|
+
"displaydoc",
|
|
93
94
|
"icu_collections",
|
|
94
95
|
"icu_locale_core",
|
|
95
96
|
"icu_properties_data",
|
|
@@ -100,15 +101,15 @@ dependencies = [
|
|
|
100
101
|
|
|
101
102
|
[[package]]
|
|
102
103
|
name = "icu_properties_data"
|
|
103
|
-
version = "2.
|
|
104
|
+
version = "2.4.0"
|
|
104
105
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
105
|
-
checksum = "
|
|
106
|
+
checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
|
|
106
107
|
|
|
107
108
|
[[package]]
|
|
108
109
|
name = "icu_provider"
|
|
109
|
-
version = "2.
|
|
110
|
+
version = "2.4.0"
|
|
110
111
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
-
checksum = "
|
|
112
|
+
checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
|
|
112
113
|
dependencies = [
|
|
113
114
|
"displaydoc",
|
|
114
115
|
"icu_locale_core",
|
|
@@ -142,21 +143,21 @@ dependencies = [
|
|
|
142
143
|
|
|
143
144
|
[[package]]
|
|
144
145
|
name = "libc"
|
|
145
|
-
version = "0.2.
|
|
146
|
+
version = "0.2.191"
|
|
146
147
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
-
checksum = "
|
|
148
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
148
149
|
|
|
149
150
|
[[package]]
|
|
150
151
|
name = "litemap"
|
|
151
|
-
version = "0.8.
|
|
152
|
+
version = "0.8.3"
|
|
152
153
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
-
checksum = "
|
|
154
|
+
checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
154
155
|
|
|
155
156
|
[[package]]
|
|
156
157
|
name = "memchr"
|
|
157
|
-
version = "2.8.
|
|
158
|
+
version = "2.8.3"
|
|
158
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
159
|
-
checksum = "
|
|
160
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
160
161
|
|
|
161
162
|
[[package]]
|
|
162
163
|
name = "once_cell"
|
|
@@ -172,33 +173,33 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
|
172
173
|
|
|
173
174
|
[[package]]
|
|
174
175
|
name = "portable-atomic"
|
|
175
|
-
version = "1.
|
|
176
|
+
version = "1.15.0"
|
|
176
177
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
177
|
-
checksum = "
|
|
178
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
178
179
|
|
|
179
180
|
[[package]]
|
|
180
181
|
name = "potential_utf"
|
|
181
|
-
version = "0.1.
|
|
182
|
+
version = "0.1.6"
|
|
182
183
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
-
checksum = "
|
|
184
|
+
checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
|
|
184
185
|
dependencies = [
|
|
185
186
|
"zerovec",
|
|
186
187
|
]
|
|
187
188
|
|
|
188
189
|
[[package]]
|
|
189
190
|
name = "proc-macro2"
|
|
190
|
-
version = "1.0.
|
|
191
|
+
version = "1.0.107"
|
|
191
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
192
|
-
checksum = "
|
|
193
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
193
194
|
dependencies = [
|
|
194
195
|
"unicode-ident",
|
|
195
196
|
]
|
|
196
197
|
|
|
197
198
|
[[package]]
|
|
198
199
|
name = "pyo3"
|
|
199
|
-
version = "0.
|
|
200
|
+
version = "0.30.1"
|
|
200
201
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
-
checksum = "
|
|
202
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
202
203
|
dependencies = [
|
|
203
204
|
"libc",
|
|
204
205
|
"once_cell",
|
|
@@ -210,18 +211,18 @@ dependencies = [
|
|
|
210
211
|
|
|
211
212
|
[[package]]
|
|
212
213
|
name = "pyo3-build-config"
|
|
213
|
-
version = "0.
|
|
214
|
+
version = "0.30.1"
|
|
214
215
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
-
checksum = "
|
|
216
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
216
217
|
dependencies = [
|
|
217
218
|
"target-lexicon",
|
|
218
219
|
]
|
|
219
220
|
|
|
220
221
|
[[package]]
|
|
221
222
|
name = "pyo3-ffi"
|
|
222
|
-
version = "0.
|
|
223
|
+
version = "0.30.1"
|
|
223
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
-
checksum = "
|
|
225
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
225
226
|
dependencies = [
|
|
226
227
|
"libc",
|
|
227
228
|
"pyo3-build-config",
|
|
@@ -229,9 +230,9 @@ dependencies = [
|
|
|
229
230
|
|
|
230
231
|
[[package]]
|
|
231
232
|
name = "pyo3-macros"
|
|
232
|
-
version = "0.
|
|
233
|
+
version = "0.30.1"
|
|
233
234
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
-
checksum = "
|
|
235
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
235
236
|
dependencies = [
|
|
236
237
|
"proc-macro2",
|
|
237
238
|
"pyo3-macros-backend",
|
|
@@ -241,9 +242,9 @@ dependencies = [
|
|
|
241
242
|
|
|
242
243
|
[[package]]
|
|
243
244
|
name = "pyo3-macros-backend"
|
|
244
|
-
version = "0.
|
|
245
|
+
version = "0.30.1"
|
|
245
246
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
-
checksum = "
|
|
247
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
247
248
|
dependencies = [
|
|
248
249
|
"heck",
|
|
249
250
|
"proc-macro2",
|
|
@@ -253,18 +254,18 @@ dependencies = [
|
|
|
253
254
|
|
|
254
255
|
[[package]]
|
|
255
256
|
name = "quote"
|
|
256
|
-
version = "1.0.
|
|
257
|
+
version = "1.0.47"
|
|
257
258
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
258
|
-
checksum = "
|
|
259
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
259
260
|
dependencies = [
|
|
260
261
|
"proc-macro2",
|
|
261
262
|
]
|
|
262
263
|
|
|
263
264
|
[[package]]
|
|
264
265
|
name = "regex"
|
|
265
|
-
version = "1.
|
|
266
|
+
version = "1.13.1"
|
|
266
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
-
checksum = "
|
|
268
|
+
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
|
|
268
269
|
dependencies = [
|
|
269
270
|
"aho-corasick",
|
|
270
271
|
"memchr",
|
|
@@ -274,9 +275,9 @@ dependencies = [
|
|
|
274
275
|
|
|
275
276
|
[[package]]
|
|
276
277
|
name = "regex-automata"
|
|
277
|
-
version = "0.4.
|
|
278
|
+
version = "0.4.18"
|
|
278
279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
-
checksum = "
|
|
280
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
280
281
|
dependencies = [
|
|
281
282
|
"aho-corasick",
|
|
282
283
|
"memchr",
|
|
@@ -291,9 +292,9 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
|
291
292
|
|
|
292
293
|
[[package]]
|
|
293
294
|
name = "serde"
|
|
294
|
-
version = "1.0.
|
|
295
|
+
version = "1.0.229"
|
|
295
296
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
-
checksum = "
|
|
297
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
297
298
|
dependencies = [
|
|
298
299
|
"serde_core",
|
|
299
300
|
"serde_derive",
|
|
@@ -301,18 +302,18 @@ dependencies = [
|
|
|
301
302
|
|
|
302
303
|
[[package]]
|
|
303
304
|
name = "serde_core"
|
|
304
|
-
version = "1.0.
|
|
305
|
+
version = "1.0.229"
|
|
305
306
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
306
|
-
checksum = "
|
|
307
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
307
308
|
dependencies = [
|
|
308
309
|
"serde_derive",
|
|
309
310
|
]
|
|
310
311
|
|
|
311
312
|
[[package]]
|
|
312
313
|
name = "serde_derive"
|
|
313
|
-
version = "1.0.
|
|
314
|
+
version = "1.0.229"
|
|
314
315
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
315
|
-
checksum = "
|
|
316
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
316
317
|
dependencies = [
|
|
317
318
|
"proc-macro2",
|
|
318
319
|
"quote",
|
|
@@ -321,9 +322,9 @@ dependencies = [
|
|
|
321
322
|
|
|
322
323
|
[[package]]
|
|
323
324
|
name = "smallvec"
|
|
324
|
-
version = "1.
|
|
325
|
+
version = "1.16.4"
|
|
325
326
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
326
|
-
checksum = "
|
|
327
|
+
checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
|
|
327
328
|
|
|
328
329
|
[[package]]
|
|
329
330
|
name = "stable_deref_trait"
|
|
@@ -333,9 +334,9 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
|
|
333
334
|
|
|
334
335
|
[[package]]
|
|
335
336
|
name = "syn"
|
|
336
|
-
version = "
|
|
337
|
+
version = "3.0.9"
|
|
337
338
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
338
|
-
checksum = "
|
|
339
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
339
340
|
dependencies = [
|
|
340
341
|
"proc-macro2",
|
|
341
342
|
"quote",
|
|
@@ -344,9 +345,9 @@ dependencies = [
|
|
|
344
345
|
|
|
345
346
|
[[package]]
|
|
346
347
|
name = "synstructure"
|
|
347
|
-
version = "0.
|
|
348
|
+
version = "0.14.0"
|
|
348
349
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
-
checksum = "
|
|
350
|
+
checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
|
|
350
351
|
dependencies = [
|
|
351
352
|
"proc-macro2",
|
|
352
353
|
"quote",
|
|
@@ -361,9 +362,9 @@ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
|
361
362
|
|
|
362
363
|
[[package]]
|
|
363
364
|
name = "tinystr"
|
|
364
|
-
version = "0.8.
|
|
365
|
+
version = "0.8.5"
|
|
365
366
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
366
|
-
checksum = "
|
|
367
|
+
checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
|
|
367
368
|
dependencies = [
|
|
368
369
|
"displaydoc",
|
|
369
370
|
"zerovec",
|
|
@@ -371,9 +372,9 @@ dependencies = [
|
|
|
371
372
|
|
|
372
373
|
[[package]]
|
|
373
374
|
name = "unicode-ident"
|
|
374
|
-
version = "1.0.
|
|
375
|
+
version = "1.0.27"
|
|
375
376
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
376
|
-
checksum = "
|
|
377
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
377
378
|
|
|
378
379
|
[[package]]
|
|
379
380
|
name = "url"
|
|
@@ -389,7 +390,7 @@ dependencies = [
|
|
|
389
390
|
|
|
390
391
|
[[package]]
|
|
391
392
|
name = "urlpattern"
|
|
392
|
-
version = "0.3.
|
|
393
|
+
version = "0.3.2"
|
|
393
394
|
dependencies = [
|
|
394
395
|
"pyo3",
|
|
395
396
|
"regex",
|
|
@@ -411,21 +412,30 @@ dependencies = [
|
|
|
411
412
|
|
|
412
413
|
[[package]]
|
|
413
414
|
name = "utf8_iter"
|
|
414
|
-
version = "1.0
|
|
415
|
+
version = "1.1.0"
|
|
415
416
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
-
checksum = "
|
|
417
|
+
checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"utf_types",
|
|
420
|
+
]
|
|
421
|
+
|
|
422
|
+
[[package]]
|
|
423
|
+
name = "utf_types"
|
|
424
|
+
version = "1.0.0"
|
|
425
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
426
|
+
checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
|
|
417
427
|
|
|
418
428
|
[[package]]
|
|
419
429
|
name = "writeable"
|
|
420
|
-
version = "0.6.
|
|
430
|
+
version = "0.6.4"
|
|
421
431
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
422
|
-
checksum = "
|
|
432
|
+
checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
423
433
|
|
|
424
434
|
[[package]]
|
|
425
435
|
name = "yoke"
|
|
426
|
-
version = "0.8.
|
|
436
|
+
version = "0.8.4"
|
|
427
437
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
-
checksum = "
|
|
438
|
+
checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
|
|
429
439
|
dependencies = [
|
|
430
440
|
"stable_deref_trait",
|
|
431
441
|
"yoke-derive",
|
|
@@ -434,9 +444,9 @@ dependencies = [
|
|
|
434
444
|
|
|
435
445
|
[[package]]
|
|
436
446
|
name = "yoke-derive"
|
|
437
|
-
version = "0.8.
|
|
447
|
+
version = "0.8.4"
|
|
438
448
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
-
checksum = "
|
|
449
|
+
checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
|
|
440
450
|
dependencies = [
|
|
441
451
|
"proc-macro2",
|
|
442
452
|
"quote",
|
|
@@ -455,9 +465,9 @@ dependencies = [
|
|
|
455
465
|
|
|
456
466
|
[[package]]
|
|
457
467
|
name = "zerofrom-derive"
|
|
458
|
-
version = "0.1.
|
|
468
|
+
version = "0.1.8"
|
|
459
469
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
460
|
-
checksum = "
|
|
470
|
+
checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
|
|
461
471
|
dependencies = [
|
|
462
472
|
"proc-macro2",
|
|
463
473
|
"quote",
|
|
@@ -467,9 +477,9 @@ dependencies = [
|
|
|
467
477
|
|
|
468
478
|
[[package]]
|
|
469
479
|
name = "zerotrie"
|
|
470
|
-
version = "0.2.
|
|
480
|
+
version = "0.2.5"
|
|
471
481
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
472
|
-
checksum = "
|
|
482
|
+
checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
|
|
473
483
|
dependencies = [
|
|
474
484
|
"displaydoc",
|
|
475
485
|
"yoke",
|
|
@@ -478,9 +488,9 @@ dependencies = [
|
|
|
478
488
|
|
|
479
489
|
[[package]]
|
|
480
490
|
name = "zerovec"
|
|
481
|
-
version = "0.11.
|
|
491
|
+
version = "0.11.9"
|
|
482
492
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
-
checksum = "
|
|
493
|
+
checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
|
|
484
494
|
dependencies = [
|
|
485
495
|
"yoke",
|
|
486
496
|
"zerofrom",
|
|
@@ -489,9 +499,9 @@ dependencies = [
|
|
|
489
499
|
|
|
490
500
|
[[package]]
|
|
491
501
|
name = "zerovec-derive"
|
|
492
|
-
version = "0.11.
|
|
502
|
+
version = "0.11.7"
|
|
493
503
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
494
|
-
checksum = "
|
|
504
|
+
checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
|
|
495
505
|
dependencies = [
|
|
496
506
|
"proc-macro2",
|
|
497
507
|
"quote",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "urlpattern"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.2"
|
|
4
4
|
authors = ["방성범 (Bang Seongbeom) <bangseongbeom@gmail.com>"]
|
|
5
5
|
edition = "2024"
|
|
6
6
|
description = "An implementation of the URL Pattern Standard for Python written in Rust."
|
|
7
|
-
repository = "https://github.com/
|
|
7
|
+
repository = "https://github.com/bangseongbeom/python-urlpattern"
|
|
8
8
|
license = "MIT"
|
|
9
9
|
keywords = ["urlpattern"]
|
|
10
10
|
categories = ["web-programming"]
|
|
@@ -16,7 +16,7 @@ name = "urlpattern"
|
|
|
16
16
|
crate-type = ["cdylib"]
|
|
17
17
|
|
|
18
18
|
[dependencies]
|
|
19
|
-
pyo3 = "0.
|
|
20
|
-
regex = "1.
|
|
19
|
+
pyo3 = "0.30.1"
|
|
20
|
+
regex = "1.13.1"
|
|
21
21
|
url = "2.5.8"
|
|
22
22
|
urlpattern = "0.6.0"
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: urlpattern
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
7
7
|
Classifier: Operating System :: OS Independent
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
17
17
|
Classifier: Programming Language :: Python :: Free Threading
|
|
18
18
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
19
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -24,18 +24,18 @@ License-File: LICENSE
|
|
|
24
24
|
Summary: An implementation of the URL Pattern Standard for Python written in Rust.
|
|
25
25
|
Keywords: urlpattern
|
|
26
26
|
Author-email: "방성범 (Bang Seongbeom)" <bangseongbeom@gmail.com>
|
|
27
|
-
Requires-Python: >=3.
|
|
27
|
+
Requires-Python: >=3.9
|
|
28
28
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
29
|
-
Project-URL: Homepage, https://github.com/
|
|
30
|
-
Project-URL: Issues, https://github.com/
|
|
31
|
-
Project-URL: Repository, https://github.com/
|
|
29
|
+
Project-URL: Homepage, https://github.com/bangseongbeom/python-urlpattern
|
|
30
|
+
Project-URL: Issues, https://github.com/bangseongbeom/python-urlpattern/issues
|
|
31
|
+
Project-URL: Repository, https://github.com/bangseongbeom/python-urlpattern.git
|
|
32
32
|
|
|
33
33
|
# urlpattern
|
|
34
34
|
|
|
35
35
|
[](https://pypi.org/project/urlpattern/)
|
|
36
36
|
[](https://pypi.org/project/urlpattern/)
|
|
37
37
|
[](https://github.com/astral-sh/ruff)
|
|
38
|
-
[](https://github.com/bangseongbeom/python-urlpattern/actions/workflows/CI.yml)
|
|
39
39
|
|
|
40
40
|
An implementation of [the URL Pattern Standard](https://urlpattern.spec.whatwg.org/) for Python written in Rust.
|
|
41
41
|
|
|
@@ -61,7 +61,7 @@ py -m pip install urlpattern
|
|
|
61
61
|
|
|
62
62
|
## Usage
|
|
63
63
|
|
|
64
|
-
This library aims to expose an interface as close as possible to the URL Pattern Standard, but some differences are unavoidable because it is designed for Python, not JavaScript. For the exact details, please refer to [urlpattern.pyi](https://github.com/
|
|
64
|
+
This library aims to expose an interface as close as possible to the URL Pattern Standard, but some differences are unavoidable because it is designed for Python, not JavaScript. For the exact details, please refer to [urlpattern.pyi](https://github.com/bangseongbeom/python-urlpattern/blob/main/urlpattern.pyi).
|
|
65
65
|
|
|
66
66
|
Most JavaScript examples from [Chrome for Developers](https://developer.chrome.com/docs/web-platform/urlpattern) and [MDN](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API) can be adapted to Python without much difficulty.
|
|
67
67
|
|
|
@@ -182,7 +182,7 @@ with make_server("", 8000, app) as httpd:
|
|
|
182
182
|
|
|
183
183
|
Due to limitations in the dependency [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern), it may not support all features specified in [the standard](https://urlpattern.spec.whatwg.org/).
|
|
184
184
|
|
|
185
|
-
Check `pytest.skip` in [`tests/test_lib.py`](https://github.com/
|
|
185
|
+
Check `pytest.skip` in [`tests/test_lib.py`](https://github.com/bangseongbeom/python-urlpattern/blob/main/tests/test_lib.py).
|
|
186
186
|
|
|
187
187
|
## Why camelCase?
|
|
188
188
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://pypi.org/project/urlpattern/)
|
|
4
4
|
[](https://pypi.org/project/urlpattern/)
|
|
5
5
|
[](https://github.com/astral-sh/ruff)
|
|
6
|
-
[](https://github.com/bangseongbeom/python-urlpattern/actions/workflows/CI.yml)
|
|
7
7
|
|
|
8
8
|
An implementation of [the URL Pattern Standard](https://urlpattern.spec.whatwg.org/) for Python written in Rust.
|
|
9
9
|
|
|
@@ -29,7 +29,7 @@ py -m pip install urlpattern
|
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
|
|
32
|
-
This library aims to expose an interface as close as possible to the URL Pattern Standard, but some differences are unavoidable because it is designed for Python, not JavaScript. For the exact details, please refer to [urlpattern.pyi](https://github.com/
|
|
32
|
+
This library aims to expose an interface as close as possible to the URL Pattern Standard, but some differences are unavoidable because it is designed for Python, not JavaScript. For the exact details, please refer to [urlpattern.pyi](https://github.com/bangseongbeom/python-urlpattern/blob/main/urlpattern.pyi).
|
|
33
33
|
|
|
34
34
|
Most JavaScript examples from [Chrome for Developers](https://developer.chrome.com/docs/web-platform/urlpattern) and [MDN](https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API) can be adapted to Python without much difficulty.
|
|
35
35
|
|
|
@@ -150,7 +150,7 @@ with make_server("", 8000, app) as httpd:
|
|
|
150
150
|
|
|
151
151
|
Due to limitations in the dependency [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern), it may not support all features specified in [the standard](https://urlpattern.spec.whatwg.org/).
|
|
152
152
|
|
|
153
|
-
Check `pytest.skip` in [`tests/test_lib.py`](https://github.com/
|
|
153
|
+
Check `pytest.skip` in [`tests/test_lib.py`](https://github.com/bangseongbeom/python-urlpattern/blob/main/tests/test_lib.py).
|
|
154
154
|
|
|
155
155
|
## Why camelCase?
|
|
156
156
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["maturin>=1.
|
|
2
|
+
requires = ["maturin>=1.15,<2.0"]
|
|
3
3
|
build-backend = "maturin"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "urlpattern"
|
|
7
7
|
description = "An implementation of the URL Pattern Standard for Python written in Rust."
|
|
8
8
|
readme = "README.md"
|
|
9
|
-
requires-python = ">=3.
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
10
|
authors = [{ name = "방성범 (Bang Seongbeom)", email = "bangseongbeom@gmail.com" }]
|
|
11
11
|
keywords = ["urlpattern"]
|
|
12
12
|
classifiers = [
|
|
@@ -16,13 +16,13 @@ classifiers = [
|
|
|
16
16
|
"Operating System :: OS Independent",
|
|
17
17
|
"Programming Language :: Python :: 3",
|
|
18
18
|
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
-
"Programming Language :: Python :: 3.8",
|
|
20
19
|
"Programming Language :: Python :: 3.9",
|
|
21
20
|
"Programming Language :: Python :: 3.10",
|
|
22
21
|
"Programming Language :: Python :: 3.11",
|
|
23
22
|
"Programming Language :: Python :: 3.12",
|
|
24
23
|
"Programming Language :: Python :: 3.13",
|
|
25
24
|
"Programming Language :: Python :: 3.14",
|
|
25
|
+
"Programming Language :: Python :: 3.15",
|
|
26
26
|
"Programming Language :: Python :: Free Threading",
|
|
27
27
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
28
28
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
@@ -33,6 +33,6 @@ classifiers = [
|
|
|
33
33
|
dynamic = ["version"]
|
|
34
34
|
|
|
35
35
|
[project.urls]
|
|
36
|
-
Homepage = "https://github.com/
|
|
37
|
-
Repository = "https://github.com/
|
|
38
|
-
Issues = "https://github.com/
|
|
36
|
+
Homepage = "https://github.com/bangseongbeom/python-urlpattern"
|
|
37
|
+
Repository = "https://github.com/bangseongbeom/python-urlpattern.git"
|
|
38
|
+
Issues = "https://github.com/bangseongbeom/python-urlpattern/issues"
|
|
@@ -1266,6 +1266,22 @@
|
|
|
1266
1266
|
},
|
|
1267
1267
|
"expected_match": null
|
|
1268
1268
|
},
|
|
1269
|
+
{
|
|
1270
|
+
"pattern": [{ "protocol": "https", "port": "443*" }],
|
|
1271
|
+
"inputs": [{ "protocol": "https", "port": "4430" }],
|
|
1272
|
+
"expected_match": {
|
|
1273
|
+
"protocol": { "input": "https", "groups": {} },
|
|
1274
|
+
"port": { "input": "4430", "groups": { "0": "0" }}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"pattern": [{ "protocol": "https", "port": "*443" }],
|
|
1279
|
+
"inputs": [{ "protocol": "https", "port": "1443" }],
|
|
1280
|
+
"expected_match": {
|
|
1281
|
+
"protocol": { "input": "https", "groups": {} },
|
|
1282
|
+
"port": { "input": "1443", "groups": { "0": "1" }}
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1269
1285
|
{
|
|
1270
1286
|
"pattern": [{ "pathname": "/foo/bar" }],
|
|
1271
1287
|
"inputs": [{ "pathname": "/foo/./bar" }],
|
|
@@ -3154,5 +3170,12 @@
|
|
|
3154
3170
|
"groups": {"0": "barbaz"}
|
|
3155
3171
|
}
|
|
3156
3172
|
}
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"pattern": [{ "pathname": "/:𠀀" }],
|
|
3176
|
+
"inputs": [{ "pathname": "/foo" }],
|
|
3177
|
+
"expected_match": {
|
|
3178
|
+
"pathname": { "input": "/foo", "groups": { "𠀀": "foo" } }
|
|
3179
|
+
}
|
|
3157
3180
|
}
|
|
3158
3181
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|