urlpattern 0.1.2__tar.gz → 0.1.3__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.1.2 → urlpattern-0.1.3}/.github/workflows/CI.yml +101 -18
- urlpattern-0.1.3/Cargo.lock +597 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/Cargo.toml +4 -4
- {urlpattern-0.1.2 → urlpattern-0.1.3}/PKG-INFO +28 -14
- urlpattern-0.1.3/README.md +52 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/src/lib.rs +16 -17
- {urlpattern-0.1.2 → urlpattern-0.1.3}/tests/test_lib.py +5 -10
- {urlpattern-0.1.2 → urlpattern-0.1.3}/tests/urlpatterntestdata.json +106 -7
- urlpattern-0.1.2/Cargo.lock +0 -392
- urlpattern-0.1.2/README.md +0 -38
- {urlpattern-0.1.2 → urlpattern-0.1.3}/.devcontainer/devcontainer.json +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/.github/dependabot.yml +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/.gitignore +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/.vscode/extensions.json +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/.vscode/settings.json +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/LICENSE +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/pyproject.toml +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/tests/__init__.py +0 -0
- {urlpattern-0.1.2 → urlpattern-0.1.3}/urlpattern.pyi +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# This file is autogenerated by maturin v1.
|
|
1
|
+
# This file is autogenerated by maturin v1.8.3
|
|
2
2
|
# To update, run
|
|
3
3
|
#
|
|
4
|
-
# maturin generate-ci github
|
|
4
|
+
# maturin generate-ci --pytest github
|
|
5
5
|
#
|
|
6
6
|
name: CI
|
|
7
7
|
|
|
@@ -24,17 +24,17 @@ jobs:
|
|
|
24
24
|
strategy:
|
|
25
25
|
matrix:
|
|
26
26
|
platform:
|
|
27
|
-
- runner: ubuntu-
|
|
27
|
+
- runner: ubuntu-22.04
|
|
28
28
|
target: x86_64
|
|
29
|
-
- runner: ubuntu-
|
|
29
|
+
- runner: ubuntu-22.04
|
|
30
30
|
target: x86
|
|
31
|
-
- runner: ubuntu-
|
|
31
|
+
- runner: ubuntu-22.04
|
|
32
32
|
target: aarch64
|
|
33
|
-
- runner: ubuntu-
|
|
33
|
+
- runner: ubuntu-22.04
|
|
34
34
|
target: armv7
|
|
35
|
-
- runner: ubuntu-
|
|
35
|
+
- runner: ubuntu-22.04
|
|
36
36
|
target: s390x
|
|
37
|
-
- runner: ubuntu-
|
|
37
|
+
- runner: ubuntu-22.04
|
|
38
38
|
target: ppc64le
|
|
39
39
|
steps:
|
|
40
40
|
- uses: actions/checkout@v4
|
|
@@ -46,26 +46,51 @@ jobs:
|
|
|
46
46
|
with:
|
|
47
47
|
target: ${{ matrix.platform.target }}
|
|
48
48
|
args: --release --out dist --find-interpreter
|
|
49
|
-
sccache: '
|
|
49
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
50
50
|
manylinux: auto
|
|
51
51
|
- name: Upload wheels
|
|
52
52
|
uses: actions/upload-artifact@v4
|
|
53
53
|
with:
|
|
54
54
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
55
55
|
path: dist
|
|
56
|
+
- name: pytest
|
|
57
|
+
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
|
|
58
|
+
shell: bash
|
|
59
|
+
run: |
|
|
60
|
+
set -e
|
|
61
|
+
python3 -m venv .venv
|
|
62
|
+
source .venv/bin/activate
|
|
63
|
+
pip install urlpattern --find-links dist --force-reinstall
|
|
64
|
+
pip install pytest
|
|
65
|
+
pytest
|
|
66
|
+
- name: pytest
|
|
67
|
+
if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
|
|
68
|
+
uses: uraimo/run-on-arch-action@v2
|
|
69
|
+
with:
|
|
70
|
+
arch: ${{ matrix.platform.target }}
|
|
71
|
+
distro: ubuntu22.04
|
|
72
|
+
githubToken: ${{ github.token }}
|
|
73
|
+
install: |
|
|
74
|
+
apt-get update
|
|
75
|
+
apt-get install -y --no-install-recommends python3 python3-pip
|
|
76
|
+
pip3 install -U pip pytest
|
|
77
|
+
run: |
|
|
78
|
+
set -e
|
|
79
|
+
pip3 install urlpattern --find-links dist --force-reinstall
|
|
80
|
+
pytest
|
|
56
81
|
|
|
57
82
|
musllinux:
|
|
58
83
|
runs-on: ${{ matrix.platform.runner }}
|
|
59
84
|
strategy:
|
|
60
85
|
matrix:
|
|
61
86
|
platform:
|
|
62
|
-
- runner: ubuntu-
|
|
87
|
+
- runner: ubuntu-22.04
|
|
63
88
|
target: x86_64
|
|
64
|
-
- runner: ubuntu-
|
|
89
|
+
- runner: ubuntu-22.04
|
|
65
90
|
target: x86
|
|
66
|
-
- runner: ubuntu-
|
|
91
|
+
- runner: ubuntu-22.04
|
|
67
92
|
target: aarch64
|
|
68
|
-
- runner: ubuntu-
|
|
93
|
+
- runner: ubuntu-22.04
|
|
69
94
|
target: armv7
|
|
70
95
|
steps:
|
|
71
96
|
- uses: actions/checkout@v4
|
|
@@ -77,13 +102,43 @@ jobs:
|
|
|
77
102
|
with:
|
|
78
103
|
target: ${{ matrix.platform.target }}
|
|
79
104
|
args: --release --out dist --find-interpreter
|
|
80
|
-
sccache: '
|
|
105
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
81
106
|
manylinux: musllinux_1_2
|
|
82
107
|
- name: Upload wheels
|
|
83
108
|
uses: actions/upload-artifact@v4
|
|
84
109
|
with:
|
|
85
110
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
86
111
|
path: dist
|
|
112
|
+
- name: pytest
|
|
113
|
+
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
|
|
114
|
+
uses: addnab/docker-run-action@v3
|
|
115
|
+
with:
|
|
116
|
+
image: alpine:latest
|
|
117
|
+
options: -v ${{ github.workspace }}:/io -w /io
|
|
118
|
+
run: |
|
|
119
|
+
set -e
|
|
120
|
+
apk add py3-pip py3-virtualenv
|
|
121
|
+
python3 -m virtualenv .venv
|
|
122
|
+
source .venv/bin/activate
|
|
123
|
+
pip install urlpattern --no-index --find-links dist --force-reinstall
|
|
124
|
+
pip install pytest
|
|
125
|
+
pytest
|
|
126
|
+
- name: pytest
|
|
127
|
+
if: ${{ !startsWith(matrix.platform.target, 'x86') }}
|
|
128
|
+
uses: uraimo/run-on-arch-action@v2
|
|
129
|
+
with:
|
|
130
|
+
arch: ${{ matrix.platform.target }}
|
|
131
|
+
distro: alpine_latest
|
|
132
|
+
githubToken: ${{ github.token }}
|
|
133
|
+
install: |
|
|
134
|
+
apk add py3-virtualenv
|
|
135
|
+
run: |
|
|
136
|
+
set -e
|
|
137
|
+
python3 -m virtualenv .venv
|
|
138
|
+
source .venv/bin/activate
|
|
139
|
+
pip install pytest
|
|
140
|
+
pip install urlpattern --find-links dist --force-reinstall
|
|
141
|
+
pytest
|
|
87
142
|
|
|
88
143
|
windows:
|
|
89
144
|
runs-on: ${{ matrix.platform.runner }}
|
|
@@ -105,19 +160,29 @@ jobs:
|
|
|
105
160
|
with:
|
|
106
161
|
target: ${{ matrix.platform.target }}
|
|
107
162
|
args: --release --out dist --find-interpreter
|
|
108
|
-
sccache: '
|
|
163
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
109
164
|
- name: Upload wheels
|
|
110
165
|
uses: actions/upload-artifact@v4
|
|
111
166
|
with:
|
|
112
167
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
113
168
|
path: dist
|
|
169
|
+
- name: pytest
|
|
170
|
+
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
|
|
171
|
+
shell: bash
|
|
172
|
+
run: |
|
|
173
|
+
set -e
|
|
174
|
+
python3 -m venv .venv
|
|
175
|
+
source .venv/Scripts/activate
|
|
176
|
+
pip install urlpattern --find-links dist --force-reinstall
|
|
177
|
+
pip install pytest
|
|
178
|
+
pytest
|
|
114
179
|
|
|
115
180
|
macos:
|
|
116
181
|
runs-on: ${{ matrix.platform.runner }}
|
|
117
182
|
strategy:
|
|
118
183
|
matrix:
|
|
119
184
|
platform:
|
|
120
|
-
- runner: macos-
|
|
185
|
+
- runner: macos-13
|
|
121
186
|
target: x86_64
|
|
122
187
|
- runner: macos-14
|
|
123
188
|
target: aarch64
|
|
@@ -131,12 +196,20 @@ jobs:
|
|
|
131
196
|
with:
|
|
132
197
|
target: ${{ matrix.platform.target }}
|
|
133
198
|
args: --release --out dist --find-interpreter
|
|
134
|
-
sccache: '
|
|
199
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
135
200
|
- name: Upload wheels
|
|
136
201
|
uses: actions/upload-artifact@v4
|
|
137
202
|
with:
|
|
138
203
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
139
204
|
path: dist
|
|
205
|
+
- name: pytest
|
|
206
|
+
run: |
|
|
207
|
+
set -e
|
|
208
|
+
python3 -m venv .venv
|
|
209
|
+
source .venv/bin/activate
|
|
210
|
+
pip install urlpattern --find-links dist --force-reinstall
|
|
211
|
+
pip install pytest
|
|
212
|
+
pytest
|
|
140
213
|
|
|
141
214
|
sdist:
|
|
142
215
|
runs-on: ubuntu-latest
|
|
@@ -156,14 +229,24 @@ jobs:
|
|
|
156
229
|
release:
|
|
157
230
|
name: Release
|
|
158
231
|
runs-on: ubuntu-latest
|
|
159
|
-
if:
|
|
232
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
160
233
|
needs: [linux, musllinux, windows, macos, sdist]
|
|
161
234
|
environment: release
|
|
162
235
|
permissions:
|
|
236
|
+
# Use to sign the release artifacts
|
|
163
237
|
id-token: write
|
|
238
|
+
# Used to upload release artifacts
|
|
239
|
+
contents: write
|
|
240
|
+
# Used to generate artifact attestation
|
|
241
|
+
attestations: write
|
|
164
242
|
steps:
|
|
165
243
|
- uses: actions/download-artifact@v4
|
|
244
|
+
- name: Generate artifact attestation
|
|
245
|
+
uses: actions/attest-build-provenance@v2
|
|
246
|
+
with:
|
|
247
|
+
subject-path: 'wheels-*/*'
|
|
166
248
|
- name: Publish to PyPI
|
|
249
|
+
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
167
250
|
uses: PyO3/maturin-action@v1
|
|
168
251
|
with:
|
|
169
252
|
command: upload
|