r4pm-full 0.6.1a3__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.
@@ -0,0 +1,236 @@
1
+ # Base regenerated via `maturin generate-ci github`.
2
+ # abi3-py39: one wheel per platform covers CPython 3.9+. Free-threaded has no stable ABI.
3
+ # Publishes `r4pm` (default) and `r4pm-full` (bundled DuckDB); they share the `r4pm` import
4
+ # package, so only one can be installed at a time.
5
+ name: CI
6
+
7
+ on:
8
+ push:
9
+ tags:
10
+ - '*'
11
+ pull_request:
12
+ workflow_dispatch:
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ env:
18
+ # Any interpreter >= 3.9 produces the same cp39-abi3 wheel.
19
+ BUILD_PYTHON_VERSION: "3.11"
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ variant: [default, full]
28
+ platform:
29
+ - runner: ubuntu-22.04
30
+ target: x86_64
31
+ - runner: ubuntu-22.04-arm
32
+ target: aarch64
33
+ steps:
34
+ - uses: actions/checkout@v7
35
+ - uses: actions/setup-python@v7
36
+ with:
37
+ python-version: ${{ env.BUILD_PYTHON_VERSION }}
38
+ - name: Configure variant
39
+ shell: bash
40
+ run: |
41
+ if [ "${{ matrix.variant }}" = "full" ]; then
42
+ sed -i.bak -e 's/^name = "r4pm"$/name = "r4pm-full"/' \
43
+ -e 's|^features = \["pyo3/extension-module"\]$|features = ["pyo3/extension-module", "full"]|' \
44
+ pyproject.toml && rm pyproject.toml.bak
45
+ grep -E '^name|^features' pyproject.toml
46
+ fi
47
+ - name: Build wheels
48
+ uses: PyO3/maturin-action@v1
49
+ with:
50
+ target: ${{ matrix.platform.target }}
51
+ args: --release --out dist -i python${{ env.BUILD_PYTHON_VERSION }}
52
+ sccache: 'true'
53
+ # 2_28: bundled DuckDB needs a newer toolchain than manylinux2014 provides
54
+ manylinux: '2_28'
55
+ - name: Upload wheels
56
+ uses: actions/upload-artifact@v7
57
+ with:
58
+ name: wheels-linux-${{ matrix.variant }}-${{ matrix.platform.target }}
59
+ path: dist
60
+
61
+ # Best-effort: bundled DuckDB on musl is untested upstream, so this does not block the release.
62
+ musllinux:
63
+ runs-on: ${{ matrix.platform.runner }}
64
+ continue-on-error: true
65
+ strategy:
66
+ fail-fast: false
67
+ matrix:
68
+ variant: [default, full]
69
+ platform:
70
+ - runner: ubuntu-22.04
71
+ target: x86_64
72
+ steps:
73
+ - uses: actions/checkout@v7
74
+ - uses: actions/setup-python@v7
75
+ with:
76
+ python-version: ${{ env.BUILD_PYTHON_VERSION }}
77
+ - name: Configure variant
78
+ shell: bash
79
+ run: |
80
+ if [ "${{ matrix.variant }}" = "full" ]; then
81
+ sed -i.bak -e 's/^name = "r4pm"$/name = "r4pm-full"/' \
82
+ -e 's|^features = \["pyo3/extension-module"\]$|features = ["pyo3/extension-module", "full"]|' \
83
+ pyproject.toml && rm pyproject.toml.bak
84
+ grep -E '^name|^features' pyproject.toml
85
+ fi
86
+ - name: Build wheels
87
+ uses: PyO3/maturin-action@v1
88
+ with:
89
+ target: ${{ matrix.platform.target }}
90
+ args: --release --out dist -i python${{ env.BUILD_PYTHON_VERSION }}
91
+ sccache: 'true'
92
+ manylinux: musllinux_1_2
93
+ - name: Upload wheels
94
+ uses: actions/upload-artifact@v7
95
+ with:
96
+ name: wheels-musllinux-${{ matrix.variant }}-${{ matrix.platform.target }}
97
+ path: dist
98
+
99
+ windows:
100
+ runs-on: ${{ matrix.platform.runner }}
101
+ strategy:
102
+ fail-fast: false
103
+ matrix:
104
+ variant: [default, full]
105
+ platform:
106
+ # Not windows-latest: VS 2026 (MSVC 14.51) removed stdext::checked_array_iterator,
107
+ # which the fmt vendored in bundled DuckDB still uses.
108
+ - runner: windows-2022
109
+ target: x64
110
+ steps:
111
+ - uses: actions/checkout@v7
112
+ - uses: actions/setup-python@v7
113
+ with:
114
+ python-version: ${{ env.BUILD_PYTHON_VERSION }}
115
+ architecture: ${{ matrix.platform.target }}
116
+ - name: Configure variant
117
+ shell: bash
118
+ run: |
119
+ if [ "${{ matrix.variant }}" = "full" ]; then
120
+ sed -i.bak -e 's/^name = "r4pm"$/name = "r4pm-full"/' \
121
+ -e 's|^features = \["pyo3/extension-module"\]$|features = ["pyo3/extension-module", "full"]|' \
122
+ pyproject.toml && rm pyproject.toml.bak
123
+ grep -E '^name|^features' pyproject.toml
124
+ fi
125
+ - name: Build wheels
126
+ uses: PyO3/maturin-action@v1
127
+ # libduckdb-sys only passes -std=c++11, which MSVC ignores
128
+ env:
129
+ CXXFLAGS: /std:c++17
130
+ with:
131
+ target: ${{ matrix.platform.target }}
132
+ args: --release --out dist -i python${{ env.BUILD_PYTHON_VERSION }}
133
+ sccache: 'true'
134
+ - name: Upload wheels
135
+ uses: actions/upload-artifact@v7
136
+ with:
137
+ name: wheels-windows-${{ matrix.variant }}-${{ matrix.platform.target }}
138
+ path: dist
139
+
140
+ macos:
141
+ runs-on: ${{ matrix.platform.runner }}
142
+ strategy:
143
+ fail-fast: false
144
+ matrix:
145
+ variant: [default, full]
146
+ platform:
147
+ - runner: macos-15-intel
148
+ target: x86_64
149
+ - runner: macos-latest
150
+ target: aarch64
151
+ steps:
152
+ - uses: actions/checkout@v7
153
+ - uses: actions/setup-python@v7
154
+ with:
155
+ python-version: ${{ env.BUILD_PYTHON_VERSION }}
156
+ - name: Configure variant
157
+ shell: bash
158
+ run: |
159
+ if [ "${{ matrix.variant }}" = "full" ]; then
160
+ sed -i.bak -e 's/^name = "r4pm"$/name = "r4pm-full"/' \
161
+ -e 's|^features = \["pyo3/extension-module"\]$|features = ["pyo3/extension-module", "full"]|' \
162
+ pyproject.toml && rm pyproject.toml.bak
163
+ grep -E '^name|^features' pyproject.toml
164
+ fi
165
+ - name: Build wheels
166
+ uses: PyO3/maturin-action@v1
167
+ with:
168
+ target: ${{ matrix.platform.target }}
169
+ args: --release --out dist -i python${{ env.BUILD_PYTHON_VERSION }}
170
+ sccache: 'true'
171
+ - name: Upload wheels
172
+ uses: actions/upload-artifact@v7
173
+ with:
174
+ name: wheels-macos-${{ matrix.variant }}-${{ matrix.platform.target }}
175
+ path: dist
176
+
177
+ sdist:
178
+ runs-on: ubuntu-latest
179
+ strategy:
180
+ fail-fast: false
181
+ matrix:
182
+ variant: [default, full]
183
+ steps:
184
+ - uses: actions/checkout@v7
185
+ - name: Configure variant
186
+ shell: bash
187
+ run: |
188
+ if [ "${{ matrix.variant }}" = "full" ]; then
189
+ sed -i.bak -e 's/^name = "r4pm"$/name = "r4pm-full"/' \
190
+ -e 's|^features = \["pyo3/extension-module"\]$|features = ["pyo3/extension-module", "full"]|' \
191
+ pyproject.toml && rm pyproject.toml.bak
192
+ grep -E '^name|^features' pyproject.toml
193
+ fi
194
+ - name: Build sdist
195
+ uses: PyO3/maturin-action@v1
196
+ with:
197
+ command: sdist
198
+ args: --out dist
199
+ - name: Upload sdist
200
+ uses: actions/upload-artifact@v7
201
+ with:
202
+ name: wheels-sdist-${{ matrix.variant }}
203
+ path: dist
204
+
205
+ release:
206
+ name: Release
207
+ runs-on: ubuntu-latest
208
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
209
+ needs: [linux, musllinux, windows, macos, sdist]
210
+ # Must match the environment in both PyPI trusted publishers
211
+ environment:
212
+ name: ci
213
+ url: https://pypi.org/p/r4pm
214
+ permissions:
215
+ # Mints the OIDC token PyPI exchanges for an upload token
216
+ id-token: write
217
+ # Used to upload release artifacts
218
+ contents: write
219
+ # Used to generate artifact attestation
220
+ attestations: write
221
+ steps:
222
+ - uses: actions/download-artifact@v8
223
+ - name: Generate artifact attestation
224
+ uses: actions/attest-build-provenance@v4
225
+ with:
226
+ subject-path: 'wheels-*/*'
227
+ # Trusted publishing (OIDC), no API token. Both projects trust the same publisher, and
228
+ # PyPI routes each file by the project name in its metadata.
229
+ - name: Collect distributions
230
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
231
+ run: mkdir -p dist && cp wheels-*/* dist/ && ls -la dist
232
+ - name: Publish to PyPI
233
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
234
+ uses: pypa/gh-action-pypi-publish@release/v1
235
+ with:
236
+ skip-existing: true
@@ -0,0 +1,85 @@
1
+ /target
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ .pytest_cache/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ .venv/
14
+ env/
15
+ bin/
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ include/
26
+ man/
27
+ venv/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+
32
+ # Installer logs
33
+ pip-log.txt
34
+ pip-delete-this-directory.txt
35
+ pip-selfcheck.json
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+
45
+ # Translations
46
+ *.mo
47
+
48
+ # Mr Developer
49
+ .mr.developer.cfg
50
+ .project
51
+ .pydevproject
52
+
53
+ # Rope
54
+ .ropeproject
55
+
56
+ # Django stuff:
57
+ *.log
58
+ *.pot
59
+
60
+ .DS_Store
61
+
62
+ # Sphinx documentation
63
+ docs/_build/
64
+
65
+ # PyCharm
66
+ .idea/
67
+
68
+ # VSCode
69
+ .vscode/
70
+
71
+ # Pyenv
72
+ .python-version
73
+
74
+ # Auto-generated files (created by build.rs during cargo build)
75
+ r4pm/bindings/
76
+
77
+ # Rust extension modules and stubs (built by maturin)
78
+ r4pm/*.so
79
+ r4pm/r4pm.pyi
80
+
81
+ # uv lock file
82
+ uv.lock
83
+
84
+ # Test data (large files)
85
+ test_data/