urlpattern 0.1.6__tar.gz → 0.1.7__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.
@@ -1,4 +1,4 @@
1
- # This file is autogenerated by maturin v1.10.2
1
+ # This file is autogenerated by maturin v1.11.5
2
2
  # To update, run
3
3
  #
4
4
  # maturin generate-ci --pytest github
@@ -37,8 +37,8 @@ jobs:
37
37
  - runner: ubuntu-22.04
38
38
  target: ppc64le
39
39
  steps:
40
- - uses: actions/checkout@v4
41
- - uses: actions/setup-python@v5
40
+ - uses: actions/checkout@v6
41
+ - uses: actions/setup-python@v6
42
42
  with:
43
43
  python-version: 3.x
44
44
  - name: Build wheels
@@ -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@v4
52
+ uses: actions/upload-artifact@v5
53
53
  with:
54
54
  name: wheels-linux-${{ matrix.platform.target }}
55
55
  path: dist
@@ -93,8 +93,8 @@ jobs:
93
93
  - runner: ubuntu-22.04
94
94
  target: armv7
95
95
  steps:
96
- - uses: actions/checkout@v4
97
- - uses: actions/setup-python@v5
96
+ - uses: actions/checkout@v6
97
+ - uses: actions/setup-python@v6
98
98
  with:
99
99
  python-version: 3.x
100
100
  - name: Build wheels
@@ -105,7 +105,7 @@ jobs:
105
105
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
106
106
  manylinux: musllinux_1_2
107
107
  - name: Upload wheels
108
- uses: actions/upload-artifact@v4
108
+ uses: actions/upload-artifact@v5
109
109
  with:
110
110
  name: wheels-musllinux-${{ matrix.platform.target }}
111
111
  path: dist
@@ -147,14 +147,19 @@ jobs:
147
147
  platform:
148
148
  - runner: windows-latest
149
149
  target: x64
150
+ python_arch: x64
150
151
  - runner: windows-latest
151
152
  target: x86
153
+ python_arch: x86
154
+ - runner: windows-11-arm
155
+ target: aarch64
156
+ python_arch: arm64
152
157
  steps:
153
- - uses: actions/checkout@v4
154
- - uses: actions/setup-python@v5
158
+ - uses: actions/checkout@v6
159
+ - uses: actions/setup-python@v6
155
160
  with:
156
- python-version: 3.x
157
- architecture: ${{ matrix.platform.target }}
161
+ python-version: 3.13
162
+ architecture: ${{ matrix.platform.python_arch }}
158
163
  - name: Build wheels
159
164
  uses: PyO3/maturin-action@v1
160
165
  with:
@@ -162,12 +167,11 @@ jobs:
162
167
  args: --release --out dist --find-interpreter
163
168
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
164
169
  - name: Upload wheels
165
- uses: actions/upload-artifact@v4
170
+ uses: actions/upload-artifact@v5
166
171
  with:
167
172
  name: wheels-windows-${{ matrix.platform.target }}
168
173
  path: dist
169
174
  - name: pytest
170
- if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
171
175
  shell: bash
172
176
  run: |
173
177
  set -e
@@ -187,8 +191,8 @@ jobs:
187
191
  - runner: macos-latest
188
192
  target: aarch64
189
193
  steps:
190
- - uses: actions/checkout@v4
191
- - uses: actions/setup-python@v5
194
+ - uses: actions/checkout@v6
195
+ - uses: actions/setup-python@v6
192
196
  with:
193
197
  python-version: 3.x
194
198
  - name: Build wheels
@@ -198,7 +202,7 @@ jobs:
198
202
  args: --release --out dist --find-interpreter
199
203
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
200
204
  - name: Upload wheels
201
- uses: actions/upload-artifact@v4
205
+ uses: actions/upload-artifact@v5
202
206
  with:
203
207
  name: wheels-macos-${{ matrix.platform.target }}
204
208
  path: dist
@@ -214,14 +218,14 @@ jobs:
214
218
  sdist:
215
219
  runs-on: ubuntu-latest
216
220
  steps:
217
- - uses: actions/checkout@v4
221
+ - uses: actions/checkout@v6
218
222
  - name: Build sdist
219
223
  uses: PyO3/maturin-action@v1
220
224
  with:
221
225
  command: sdist
222
226
  args: --out dist
223
227
  - name: Upload sdist
224
- uses: actions/upload-artifact@v4
228
+ uses: actions/upload-artifact@v5
225
229
  with:
226
230
  name: wheels-sdist
227
231
  path: dist
@@ -240,14 +244,14 @@ jobs:
240
244
  # Used to generate artifact attestation
241
245
  attestations: write
242
246
  steps:
243
- - uses: actions/download-artifact@v4
247
+ - uses: actions/download-artifact@v6
244
248
  - name: Generate artifact attestation
245
- uses: actions/attest-build-provenance@v2
249
+ uses: actions/attest-build-provenance@v3
246
250
  with:
247
251
  subject-path: 'wheels-*/*'
252
+ - name: Install uv
253
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
254
+ uses: astral-sh/setup-uv@v7
248
255
  - name: Publish to PyPI
249
256
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
250
- uses: PyO3/maturin-action@v1
251
- with:
252
- command: upload
253
- args: --non-interactive --skip-existing wheels-*/*
257
+ run: uv publish 'wheels-*/*'
@@ -156,9 +156,9 @@ dependencies = [
156
156
 
157
157
  [[package]]
158
158
  name = "libc"
159
- version = "0.2.178"
159
+ version = "0.2.180"
160
160
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
- checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
161
+ checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
162
162
 
163
163
  [[package]]
164
164
  name = "litemap"
@@ -210,9 +210,9 @@ dependencies = [
210
210
 
211
211
  [[package]]
212
212
  name = "proc-macro2"
213
- version = "1.0.104"
213
+ version = "1.0.106"
214
214
  source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0"
215
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
216
216
  dependencies = [
217
217
  "unicode-ident",
218
218
  ]
@@ -280,7 +280,7 @@ dependencies = [
280
280
 
281
281
  [[package]]
282
282
  name = "python-urlpattern"
283
- version = "0.1.6"
283
+ version = "0.1.7"
284
284
  dependencies = [
285
285
  "pyo3",
286
286
  "urlpattern",
@@ -288,9 +288,9 @@ dependencies = [
288
288
 
289
289
  [[package]]
290
290
  name = "quote"
291
- version = "1.0.42"
291
+ version = "1.0.44"
292
292
  source = "registry+https://github.com/rust-lang/crates.io-index"
293
- checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
293
+ checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
294
294
  dependencies = [
295
295
  "proc-macro2",
296
296
  ]
@@ -374,9 +374,9 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
374
374
 
375
375
  [[package]]
376
376
  name = "syn"
377
- version = "2.0.111"
377
+ version = "2.0.114"
378
378
  source = "registry+https://github.com/rust-lang/crates.io-index"
379
- checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
379
+ checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
380
380
  dependencies = [
381
381
  "proc-macro2",
382
382
  "quote",
@@ -424,9 +424,9 @@ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
424
424
 
425
425
  [[package]]
426
426
  name = "url"
427
- version = "2.5.7"
427
+ version = "2.5.8"
428
428
  source = "registry+https://github.com/rust-lang/crates.io-index"
429
- checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
429
+ checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
430
430
  dependencies = [
431
431
  "form_urlencoded",
432
432
  "idna",
@@ -436,9 +436,9 @@ dependencies = [
436
436
 
437
437
  [[package]]
438
438
  name = "urlpattern"
439
- version = "0.4.2"
439
+ version = "0.5.2"
440
440
  source = "registry+https://github.com/rust-lang/crates.io-index"
441
- checksum = "0f805818f843b548bacc19609eb3619dd2850e54746f5cada37927393c2ef4ec"
441
+ checksum = "37ffe0983283c841b6c6e9f116833a0061cc690c0eb67994d65bbdfa5cd3f24e"
442
442
  dependencies = [
443
443
  "icu_properties",
444
444
  "regex",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "python-urlpattern"
3
- version = "0.1.6"
3
+ version = "0.1.7"
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."
@@ -16,4 +16,4 @@ crate-type = ["cdylib"]
16
16
 
17
17
  [dependencies]
18
18
  pyo3 = "0.27.2"
19
- deno_urlpattern = { package = "urlpattern", version = "0.4.2" }
19
+ deno_urlpattern = { package = "urlpattern", version = "0.5.2" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urlpattern
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -26,8 +26,8 @@ Author-email: "방성범 (Bang Seongbeom)" <bangseongbeom@gmail.com>
26
26
  Requires-Python: >=3.8
27
27
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
28
28
  Project-URL: Homepage, https://github.com/urlpattern/python-urlpattern
29
- Project-URL: Repository, https://github.com/urlpattern/python-urlpattern.git
30
29
  Project-URL: Issues, https://github.com/urlpattern/python-urlpattern/issues
30
+ Project-URL: Repository, https://github.com/urlpattern/python-urlpattern.git
31
31
 
32
32
  # URL Pattern
33
33
 
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["maturin>=1.10,<2.0"]
2
+ requires = ["maturin>=1.11,<2.0"]
3
3
  build-backend = "maturin"
4
4
 
5
5
  [project]
@@ -353,7 +353,7 @@ impl From<deno_urlpattern::Error> for Error {
353
353
  }
354
354
 
355
355
  /// A Python module implemented in Rust.
356
- #[pymodule]
356
+ #[pymodule(gil_used = false)]
357
357
  mod urlpattern {
358
358
  #[pymodule_export]
359
359
  use super::UrlPattern;
@@ -46,14 +46,17 @@ def test(entry):
46
46
 
47
47
  if isinstance(entry.get("expected_match"), dict):
48
48
  result = pattern.exec(*entry["inputs"])
49
- assert result
50
49
 
51
50
  for key in entry["expected_match"]:
52
51
  assert result[key] == entry["expected_match"][key]
53
52
 
53
+ else:
54
+ result = pattern.exec(*entry["inputs"])
55
+ assert result is None
56
+
54
57
  if "exactly_empty_components" in entry:
55
58
  result = pattern.exec(*entry["inputs"])
56
59
 
57
60
  for component in entry["exactly_empty_components"]:
58
61
  if result:
59
- assert result[component]["groups"] == {}
62
+ assert result[component]["groups"] == {}
@@ -3108,5 +3108,15 @@
3108
3108
  "hostname": { "input": "www.example.com", "groups": {} },
3109
3109
  "pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
3110
3110
  }
3111
+ },
3112
+ {
3113
+ "pattern": [{ "hostname": ":domain(.*)" }],
3114
+ "inputs": [{ "hostname": "localhost" }],
3115
+ "expected_obj": {
3116
+ "hostname": ":domain(.*)"
3117
+ },
3118
+ "expected_match": {
3119
+ "hostname": { "input": "localhost", "groups": { "domain" : "localhost"} }
3120
+ }
3111
3121
  }
3112
3122
  ]
File without changes
File without changes
File without changes
File without changes
File without changes