h3_bound_cells 0.1.0__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,184 @@
1
+ name: Build and Release Maturin Python Package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - '*'
9
+ pull_request:
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ linux:
17
+ runs-on: ${{ matrix.platform.runner }}
18
+ strategy:
19
+ matrix:
20
+ platform:
21
+ - runner: ubuntu-22.04
22
+ target: x86_64
23
+ - runner: ubuntu-22.04
24
+ target: x86
25
+ - runner: ubuntu-22.04
26
+ target: aarch64
27
+ - runner: ubuntu-22.04
28
+ target: armv7
29
+ steps:
30
+ - uses: actions/checkout@v6
31
+ - uses: actions/setup-python@v6
32
+ with:
33
+ python-version: "3.x"
34
+
35
+ - name: Build wheels
36
+ uses: PyO3/maturin-action@v1
37
+ with:
38
+ target: ${{ matrix.platform.target }}
39
+ args: --release --out dist --find-interpreter
40
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
41
+ manylinux: auto
42
+
43
+ - name: Upload wheels
44
+ uses: actions/upload-artifact@v6
45
+ with:
46
+ name: wheels-linux-${{ matrix.platform.target }}
47
+ path: dist
48
+
49
+ musllinux:
50
+ runs-on: ${{ matrix.platform.runner }}
51
+ strategy:
52
+ matrix:
53
+ platform:
54
+ - runner: ubuntu-22.04
55
+ target: x86_64
56
+ - runner: ubuntu-22.04
57
+ target: x86
58
+ - runner: ubuntu-22.04
59
+ target: aarch64
60
+ - runner: ubuntu-22.04
61
+ target: armv7
62
+ steps:
63
+ - uses: actions/checkout@v6
64
+ - uses: actions/setup-python@v6
65
+ with:
66
+ python-version: "3.x"
67
+
68
+ - name: Build wheels
69
+ uses: PyO3/maturin-action@v1
70
+ with:
71
+ target: ${{ matrix.platform.target }}
72
+ args: --release --out dist --find-interpreter
73
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
74
+ manylinux: musllinux_1_2
75
+
76
+ - name: Upload wheels
77
+ uses: actions/upload-artifact@v6
78
+ with:
79
+ name: wheels-musllinux-${{ matrix.platform.target }}
80
+ path: dist
81
+
82
+ windows:
83
+ runs-on: ${{ matrix.platform.runner }}
84
+ strategy:
85
+ matrix:
86
+ platform:
87
+ - runner: windows-latest
88
+ target: x64
89
+ python_arch: x64
90
+ - runner: windows-latest
91
+ target: x86
92
+ python_arch: x86
93
+ - runner: windows-11-arm
94
+ target: aarch64
95
+ python_arch: arm64
96
+ steps:
97
+ - uses: actions/checkout@v6
98
+ - uses: actions/setup-python@v6
99
+ with:
100
+ python-version: "3.13"
101
+ architecture: ${{ matrix.platform.python_arch }}
102
+
103
+ - name: Build wheels
104
+ uses: PyO3/maturin-action@v1
105
+ with:
106
+ target: ${{ matrix.platform.target }}
107
+ args: --release --out dist --find-interpreter
108
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
109
+
110
+ - name: Upload wheels
111
+ uses: actions/upload-artifact@v6
112
+ with:
113
+ name: wheels-windows-${{ matrix.platform.target }}
114
+ path: dist
115
+
116
+ macos:
117
+ runs-on: ${{ matrix.platform.runner }}
118
+ strategy:
119
+ matrix:
120
+ platform:
121
+ - runner: macos-15-intel
122
+ target: x86_64
123
+ - runner: macos-latest
124
+ target: aarch64
125
+ steps:
126
+ - uses: actions/checkout@v6
127
+ - uses: actions/setup-python@v6
128
+ with:
129
+ python-version: "3.x"
130
+
131
+ - name: Build wheels
132
+ uses: PyO3/maturin-action@v1
133
+ with:
134
+ target: ${{ matrix.platform.target }}
135
+ args: --release --out dist --find-interpreter
136
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
137
+
138
+ - name: Upload wheels
139
+ uses: actions/upload-artifact@v6
140
+ with:
141
+ name: wheels-macos-${{ matrix.platform.target }}
142
+ path: dist
143
+
144
+ sdist:
145
+ runs-on: ubuntu-latest
146
+ steps:
147
+ - uses: actions/checkout@v6
148
+
149
+ - name: Build sdist
150
+ uses: PyO3/maturin-action@v1
151
+ with:
152
+ command: sdist
153
+ args: --out dist
154
+
155
+ - name: Upload sdist
156
+ uses: actions/upload-artifact@v6
157
+ with:
158
+ name: wheels-sdist
159
+ path: dist
160
+
161
+ release:
162
+ name: Release
163
+ runs-on: ubuntu-latest
164
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
165
+ needs: [linux, musllinux, windows, macos, sdist]
166
+ permissions:
167
+ id-token: write
168
+ contents: write
169
+ attestations: write
170
+ steps:
171
+ - uses: actions/download-artifact@v7
172
+
173
+ - name: Generate artifact attestation
174
+ uses: actions/attest@v4
175
+ with:
176
+ subject-path: 'wheels-*/*'
177
+
178
+ - name: Install uv
179
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
180
+ uses: astral-sh/setup-uv@v7
181
+
182
+ - name: Publish to PyPI
183
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
184
+ run: uv publish 'wheels-*/*'
@@ -0,0 +1,73 @@
1
+ /target
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ .pytest_cache/
6
+ *.py[cod]
7
+ *.pdb
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ .venv/
15
+ env/
16
+ bin/
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ include/
27
+ man/
28
+ venv/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+ pip-selfcheck.json
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+
46
+ # Translations
47
+ *.mo
48
+
49
+ # Mr Developer
50
+ .mr.developer.cfg
51
+ .project
52
+ .pydevproject
53
+
54
+ # Rope
55
+ .ropeproject
56
+
57
+ # Django stuff:
58
+ *.log
59
+ *.pot
60
+
61
+ .DS_Store
62
+
63
+ # Sphinx documentation
64
+ docs/_build/
65
+
66
+ # PyCharm
67
+ .idea/
68
+
69
+ # VSCode
70
+ .vscode/
71
+
72
+ # Pyenv
73
+ .python-version