csv-validation 0.1.3__tar.gz → 0.1.4__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.
- csv_validation-0.1.4/.github/workflows/CI.yml +336 -0
- csv_validation-0.1.4/Cargo.lock +589 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/Cargo.toml +12 -12
- {csv_validation-0.1.3 → csv_validation-0.1.4}/PKG-INFO +2 -2
- {csv_validation-0.1.3 → csv_validation-0.1.4}/pyproject.toml +4 -1
- csv_validation-0.1.4/tests/test_smoke.py +51 -0
- csv_validation-0.1.3/.github/workflows/CI.yml +0 -184
- csv_validation-0.1.3/Cargo.lock +0 -906
- {csv_validation-0.1.3 → csv_validation-0.1.4}/.gitignore +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/LICENSE +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/MANIFEST.in +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/README.md +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/build.sh +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/csv_validation.pyi +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/src/lib.rs +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/test/duplicated_unique_keys.csv +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/test/empty_values.csv +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/test/test_file.csv +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/test/test_file.csv.gz +0 -0
- {csv_validation-0.1.3 → csv_validation-0.1.4}/test/test_validations.yml +0 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# Generated by maturin v1.16.0 with
|
|
2
|
+
#
|
|
3
|
+
# maturin generate-ci github --platform manylinux musllinux windows macos --pytest
|
|
4
|
+
#
|
|
5
|
+
# and then edited by hand. Regenerating overwrites these edits, so re-apply them:
|
|
6
|
+
# - the `test` job (cargo test), which `release` also needs
|
|
7
|
+
# - pytest of both the abi3 and the free-threaded wheels on Linux x86_64,
|
|
8
|
+
# Windows and macOS (the generated steps only test one of them)
|
|
9
|
+
# - `--check-url` on `uv publish`, so re-running a release skips files already on PyPI
|
|
10
|
+
#
|
|
11
|
+
name: CI
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
branches:
|
|
16
|
+
- main
|
|
17
|
+
- master
|
|
18
|
+
tags:
|
|
19
|
+
- '*'
|
|
20
|
+
pull_request:
|
|
21
|
+
workflow_dispatch:
|
|
22
|
+
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
test:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
- uses: actions/setup-python@v6
|
|
32
|
+
id: python
|
|
33
|
+
with:
|
|
34
|
+
python-version: "3.13"
|
|
35
|
+
- name: cargo test
|
|
36
|
+
run: cargo test
|
|
37
|
+
env:
|
|
38
|
+
# The test binary links against libpython, so point it at the setup-python install
|
|
39
|
+
PYO3_PYTHON: ${{ steps.python.outputs.python-path }}
|
|
40
|
+
LD_LIBRARY_PATH: ${{ env.pythonLocation }}/lib
|
|
41
|
+
|
|
42
|
+
linux:
|
|
43
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
44
|
+
strategy:
|
|
45
|
+
matrix:
|
|
46
|
+
platform:
|
|
47
|
+
- runner: ubuntu-22.04
|
|
48
|
+
target: x86_64
|
|
49
|
+
- runner: ubuntu-22.04
|
|
50
|
+
target: x86
|
|
51
|
+
- runner: ubuntu-22.04
|
|
52
|
+
target: aarch64
|
|
53
|
+
- runner: ubuntu-22.04
|
|
54
|
+
target: armv7
|
|
55
|
+
- runner: ubuntu-22.04
|
|
56
|
+
target: s390x
|
|
57
|
+
- runner: ubuntu-22.04
|
|
58
|
+
target: ppc64le
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v6
|
|
61
|
+
- uses: actions/setup-python@v6
|
|
62
|
+
with:
|
|
63
|
+
python-version: "3.10"
|
|
64
|
+
- name: Build wheels
|
|
65
|
+
uses: PyO3/maturin-action@v1
|
|
66
|
+
with:
|
|
67
|
+
target: ${{ matrix.platform.target }}
|
|
68
|
+
args: --release --out dist
|
|
69
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
70
|
+
manylinux: auto
|
|
71
|
+
- name: Build free-threaded wheels
|
|
72
|
+
uses: PyO3/maturin-action@v1
|
|
73
|
+
with:
|
|
74
|
+
target: ${{ matrix.platform.target }}
|
|
75
|
+
args: --release --out dist -i python3.14t
|
|
76
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
77
|
+
manylinux: auto
|
|
78
|
+
- uses: astral-sh/setup-uv@v7
|
|
79
|
+
if: ${{ matrix.platform.target == 'x86_64' }}
|
|
80
|
+
- name: pytest
|
|
81
|
+
if: ${{ matrix.platform.target == 'x86_64' }}
|
|
82
|
+
shell: bash
|
|
83
|
+
run: |
|
|
84
|
+
set -e
|
|
85
|
+
for py in 3.10 3.14t; do
|
|
86
|
+
uv venv --clear -p "$py" .venv
|
|
87
|
+
uv pip install -p .venv --no-index --no-deps --find-links dist --reinstall csv_validation
|
|
88
|
+
uv pip install -p .venv pytest
|
|
89
|
+
.venv/bin/python -m pytest
|
|
90
|
+
done
|
|
91
|
+
- name: pytest
|
|
92
|
+
if: ${{ !startsWith(matrix.platform.target, 'x86') }}
|
|
93
|
+
uses: uraimo/run-on-arch-action@v3
|
|
94
|
+
with:
|
|
95
|
+
arch: ${{ matrix.platform.target }}
|
|
96
|
+
distro: ubuntu24.04
|
|
97
|
+
githubToken: ${{ github.token }}
|
|
98
|
+
install: |
|
|
99
|
+
apt-get update
|
|
100
|
+
apt-get install -y --no-install-recommends python3 python3-venv
|
|
101
|
+
run: |
|
|
102
|
+
set -e
|
|
103
|
+
python3 -m venv .venv
|
|
104
|
+
. .venv/bin/activate
|
|
105
|
+
pip install --no-index --no-deps --find-links dist --force-reinstall csv_validation
|
|
106
|
+
pip install pytest
|
|
107
|
+
python -m pytest
|
|
108
|
+
- name: Upload wheels
|
|
109
|
+
uses: actions/upload-artifact@v6
|
|
110
|
+
with:
|
|
111
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
112
|
+
path: dist
|
|
113
|
+
|
|
114
|
+
musllinux:
|
|
115
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
116
|
+
strategy:
|
|
117
|
+
matrix:
|
|
118
|
+
platform:
|
|
119
|
+
- runner: ubuntu-22.04
|
|
120
|
+
target: x86_64
|
|
121
|
+
- runner: ubuntu-22.04
|
|
122
|
+
target: x86
|
|
123
|
+
- runner: ubuntu-22.04
|
|
124
|
+
target: aarch64
|
|
125
|
+
- runner: ubuntu-22.04
|
|
126
|
+
target: armv7
|
|
127
|
+
steps:
|
|
128
|
+
- uses: actions/checkout@v6
|
|
129
|
+
- uses: actions/setup-python@v6
|
|
130
|
+
with:
|
|
131
|
+
python-version: "3.10"
|
|
132
|
+
- name: Build wheels
|
|
133
|
+
uses: PyO3/maturin-action@v1
|
|
134
|
+
with:
|
|
135
|
+
target: ${{ matrix.platform.target }}
|
|
136
|
+
args: --release --out dist
|
|
137
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
138
|
+
manylinux: musllinux_1_2
|
|
139
|
+
- name: Build free-threaded wheels
|
|
140
|
+
uses: PyO3/maturin-action@v1
|
|
141
|
+
with:
|
|
142
|
+
target: ${{ matrix.platform.target }}
|
|
143
|
+
args: --release --out dist -i python3.14t
|
|
144
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
145
|
+
manylinux: musllinux_1_2
|
|
146
|
+
- name: pytest
|
|
147
|
+
if: ${{ matrix.platform.target == 'x86_64' }}
|
|
148
|
+
run: |
|
|
149
|
+
set -e
|
|
150
|
+
docker run --rm -v ${{ github.workspace }}:/io -w /io alpine:latest sh -c '
|
|
151
|
+
set -e
|
|
152
|
+
apk add python3
|
|
153
|
+
python3 -m venv .venv
|
|
154
|
+
. .venv/bin/activate
|
|
155
|
+
pip install --no-index --no-deps --find-links dist --force-reinstall csv_validation
|
|
156
|
+
pip install pytest
|
|
157
|
+
python -m pytest
|
|
158
|
+
'
|
|
159
|
+
- name: pytest
|
|
160
|
+
if: ${{ !startsWith(matrix.platform.target, 'x86') }}
|
|
161
|
+
uses: uraimo/run-on-arch-action@v3
|
|
162
|
+
with:
|
|
163
|
+
arch: ${{ matrix.platform.target }}
|
|
164
|
+
distro: alpine_latest
|
|
165
|
+
githubToken: ${{ github.token }}
|
|
166
|
+
install: |
|
|
167
|
+
apk add python3
|
|
168
|
+
run: |
|
|
169
|
+
set -e
|
|
170
|
+
python3 -m venv .venv
|
|
171
|
+
. .venv/bin/activate
|
|
172
|
+
pip install --no-index --no-deps --find-links dist --force-reinstall csv_validation
|
|
173
|
+
pip install pytest
|
|
174
|
+
python -m pytest
|
|
175
|
+
- name: Upload wheels
|
|
176
|
+
uses: actions/upload-artifact@v6
|
|
177
|
+
with:
|
|
178
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
179
|
+
path: dist
|
|
180
|
+
|
|
181
|
+
windows:
|
|
182
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
183
|
+
strategy:
|
|
184
|
+
matrix:
|
|
185
|
+
platform:
|
|
186
|
+
- runner: windows-latest
|
|
187
|
+
target: x64
|
|
188
|
+
python_arch: x64
|
|
189
|
+
- runner: windows-latest
|
|
190
|
+
target: x86
|
|
191
|
+
python_arch: x86
|
|
192
|
+
- runner: windows-11-arm
|
|
193
|
+
target: aarch64
|
|
194
|
+
python_arch: arm64
|
|
195
|
+
steps:
|
|
196
|
+
- uses: actions/checkout@v6
|
|
197
|
+
- uses: actions/setup-python@v6
|
|
198
|
+
id: python
|
|
199
|
+
with:
|
|
200
|
+
python-version: "3.13"
|
|
201
|
+
architecture: ${{ matrix.platform.python_arch }}
|
|
202
|
+
- name: Build wheels
|
|
203
|
+
uses: PyO3/maturin-action@v1
|
|
204
|
+
with:
|
|
205
|
+
target: ${{ matrix.platform.target }}
|
|
206
|
+
args: --release --out dist
|
|
207
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
208
|
+
- uses: astral-sh/setup-uv@v7
|
|
209
|
+
- name: pytest (abi3)
|
|
210
|
+
shell: bash
|
|
211
|
+
run: |
|
|
212
|
+
set -e
|
|
213
|
+
uv venv --clear -p '${{ steps.python.outputs.python-path }}' .venv
|
|
214
|
+
uv pip install -p .venv --no-index --no-deps --find-links dist --reinstall csv_validation
|
|
215
|
+
uv pip install -p .venv pytest
|
|
216
|
+
.venv/Scripts/python -m pytest
|
|
217
|
+
- uses: actions/setup-python@v6
|
|
218
|
+
id: python_ft
|
|
219
|
+
with:
|
|
220
|
+
python-version: "3.14t"
|
|
221
|
+
architecture: ${{ matrix.platform.python_arch }}
|
|
222
|
+
- name: Build free-threaded wheels
|
|
223
|
+
uses: PyO3/maturin-action@v1
|
|
224
|
+
with:
|
|
225
|
+
target: ${{ matrix.platform.target }}
|
|
226
|
+
args: --release --out dist -i python3.14t
|
|
227
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
228
|
+
- name: pytest (free-threaded)
|
|
229
|
+
shell: bash
|
|
230
|
+
run: |
|
|
231
|
+
set -e
|
|
232
|
+
uv venv --clear -p '${{ steps.python_ft.outputs.python-path }}' .venv
|
|
233
|
+
uv pip install -p .venv --no-index --no-deps --find-links dist --reinstall csv_validation
|
|
234
|
+
uv pip install -p .venv pytest
|
|
235
|
+
.venv/Scripts/python -m pytest
|
|
236
|
+
- name: Upload wheels
|
|
237
|
+
uses: actions/upload-artifact@v6
|
|
238
|
+
with:
|
|
239
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
240
|
+
path: dist
|
|
241
|
+
|
|
242
|
+
macos:
|
|
243
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
244
|
+
strategy:
|
|
245
|
+
matrix:
|
|
246
|
+
platform:
|
|
247
|
+
- runner: macos-15-intel
|
|
248
|
+
target: x86_64
|
|
249
|
+
- runner: macos-latest
|
|
250
|
+
target: aarch64
|
|
251
|
+
steps:
|
|
252
|
+
- uses: actions/checkout@v6
|
|
253
|
+
- uses: actions/setup-python@v6
|
|
254
|
+
id: python
|
|
255
|
+
with:
|
|
256
|
+
python-version: "3.10"
|
|
257
|
+
- name: Build wheels
|
|
258
|
+
uses: PyO3/maturin-action@v1
|
|
259
|
+
with:
|
|
260
|
+
target: ${{ matrix.platform.target }}
|
|
261
|
+
args: --release --out dist
|
|
262
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
263
|
+
- uses: astral-sh/setup-uv@v7
|
|
264
|
+
- name: pytest (abi3)
|
|
265
|
+
shell: bash
|
|
266
|
+
run: |
|
|
267
|
+
set -e
|
|
268
|
+
uv venv --clear -p '${{ steps.python.outputs.python-path }}' .venv
|
|
269
|
+
uv pip install -p .venv --no-index --no-deps --find-links dist --reinstall csv_validation
|
|
270
|
+
uv pip install -p .venv pytest
|
|
271
|
+
.venv/bin/python -m pytest
|
|
272
|
+
- uses: actions/setup-python@v6
|
|
273
|
+
id: python_ft
|
|
274
|
+
with:
|
|
275
|
+
python-version: "3.14t"
|
|
276
|
+
- name: Build free-threaded wheels
|
|
277
|
+
uses: PyO3/maturin-action@v1
|
|
278
|
+
with:
|
|
279
|
+
target: ${{ matrix.platform.target }}
|
|
280
|
+
args: --release --out dist -i python3.14t
|
|
281
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
282
|
+
- name: pytest (free-threaded)
|
|
283
|
+
shell: bash
|
|
284
|
+
run: |
|
|
285
|
+
set -e
|
|
286
|
+
uv venv --clear -p '${{ steps.python_ft.outputs.python-path }}' .venv
|
|
287
|
+
uv pip install -p .venv --no-index --no-deps --find-links dist --reinstall csv_validation
|
|
288
|
+
uv pip install -p .venv pytest
|
|
289
|
+
.venv/bin/python -m pytest
|
|
290
|
+
- name: Upload wheels
|
|
291
|
+
uses: actions/upload-artifact@v6
|
|
292
|
+
with:
|
|
293
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
294
|
+
path: dist
|
|
295
|
+
|
|
296
|
+
sdist:
|
|
297
|
+
runs-on: ubuntu-latest
|
|
298
|
+
steps:
|
|
299
|
+
- uses: actions/checkout@v6
|
|
300
|
+
- name: Build sdist
|
|
301
|
+
uses: PyO3/maturin-action@v1
|
|
302
|
+
with:
|
|
303
|
+
command: sdist
|
|
304
|
+
args: --out dist
|
|
305
|
+
- name: Upload sdist
|
|
306
|
+
uses: actions/upload-artifact@v6
|
|
307
|
+
with:
|
|
308
|
+
name: wheels-sdist
|
|
309
|
+
path: dist
|
|
310
|
+
|
|
311
|
+
release:
|
|
312
|
+
name: Release
|
|
313
|
+
runs-on: ubuntu-latest
|
|
314
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
315
|
+
needs: [test, linux, musllinux, windows, macos, sdist]
|
|
316
|
+
permissions:
|
|
317
|
+
# Use to sign the release artifacts
|
|
318
|
+
id-token: write
|
|
319
|
+
# Used to upload release artifacts
|
|
320
|
+
contents: write
|
|
321
|
+
# Used to generate artifact attestation
|
|
322
|
+
attestations: write
|
|
323
|
+
steps:
|
|
324
|
+
- uses: actions/download-artifact@v7
|
|
325
|
+
- name: Generate artifact attestation
|
|
326
|
+
uses: actions/attest@v4
|
|
327
|
+
with:
|
|
328
|
+
subject-path: 'wheels-*/*'
|
|
329
|
+
- name: Install uv
|
|
330
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
331
|
+
uses: astral-sh/setup-uv@v7
|
|
332
|
+
- name: Publish to PyPI
|
|
333
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
334
|
+
run: uv publish --check-url https://pypi.org/simple/ 'wheels-*/*'
|
|
335
|
+
env:
|
|
336
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|