editwheel 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,180 @@
1
+ # This file is autogenerated by maturin v1.11.5
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github --pytest
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ matrix:
26
+ platform:
27
+ - runner: ubuntu-22.04
28
+ target: x86_64
29
+ - runner: ubuntu-22.04
30
+ target: x86
31
+ steps:
32
+ - uses: actions/checkout@v6
33
+ - uses: actions/setup-python@v6
34
+ with:
35
+ python-version: 3.x
36
+ - name: Build wheels
37
+ uses: PyO3/maturin-action@v1
38
+ with:
39
+ target: ${{ matrix.platform.target }}
40
+ args: --release --out dist --find-interpreter
41
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
42
+ manylinux: auto
43
+ - name: Upload wheels
44
+ uses: actions/upload-artifact@v5
45
+ with:
46
+ name: wheels-linux-${{ matrix.platform.target }}
47
+ path: dist
48
+ - name: Install uv
49
+ if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
50
+ uses: astral-sh/setup-uv@v7
51
+ - name: pytest
52
+ if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
53
+ shell: bash
54
+ run: |
55
+ set -e
56
+ python3 -m venv .venv
57
+ source .venv/bin/activate
58
+ pip install editwheel --find-links dist --force-reinstall
59
+ pip install pytest
60
+ pytest
61
+
62
+ windows:
63
+ runs-on: ${{ matrix.platform.runner }}
64
+ strategy:
65
+ matrix:
66
+ platform:
67
+ - runner: windows-latest
68
+ target: x64
69
+ python_arch: x64
70
+ - runner: windows-latest
71
+ target: x86
72
+ python_arch: x86
73
+ - runner: windows-11-arm
74
+ target: aarch64
75
+ python_arch: arm64
76
+ steps:
77
+ - uses: actions/checkout@v6
78
+ - uses: actions/setup-python@v6
79
+ with:
80
+ python-version: 3.13
81
+ architecture: ${{ matrix.platform.python_arch }}
82
+ - name: Build wheels
83
+ uses: PyO3/maturin-action@v1
84
+ with:
85
+ target: ${{ matrix.platform.target }}
86
+ args: --release --out dist --find-interpreter
87
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
88
+ - name: Upload wheels
89
+ uses: actions/upload-artifact@v5
90
+ with:
91
+ name: wheels-windows-${{ matrix.platform.target }}
92
+ path: dist
93
+ - name: Install uv
94
+ uses: astral-sh/setup-uv@v7
95
+ - name: pytest
96
+ shell: bash
97
+ run: |
98
+ set -e
99
+ python3 -m venv .venv
100
+ source .venv/Scripts/activate
101
+ pip install editwheel --find-links dist --force-reinstall
102
+ pip install pytest
103
+ pytest
104
+
105
+ macos:
106
+ runs-on: ${{ matrix.platform.runner }}
107
+ strategy:
108
+ matrix:
109
+ platform:
110
+ - runner: macos-15-intel
111
+ target: x86_64
112
+ - runner: macos-latest
113
+ target: aarch64
114
+ steps:
115
+ - uses: actions/checkout@v6
116
+ - uses: actions/setup-python@v6
117
+ with:
118
+ python-version: 3.x
119
+ - name: Build wheels
120
+ uses: PyO3/maturin-action@v1
121
+ with:
122
+ target: ${{ matrix.platform.target }}
123
+ args: --release --out dist --find-interpreter
124
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
125
+ - name: Upload wheels
126
+ uses: actions/upload-artifact@v5
127
+ with:
128
+ name: wheels-macos-${{ matrix.platform.target }}
129
+ path: dist
130
+ - name: Install uv
131
+ uses: astral-sh/setup-uv@v7
132
+ - name: pytest
133
+ run: |
134
+ set -e
135
+ python3 -m venv .venv
136
+ source .venv/bin/activate
137
+ pip install editwheel --find-links dist --force-reinstall
138
+ pip install pytest
139
+ pytest
140
+
141
+ sdist:
142
+ runs-on: ubuntu-latest
143
+ steps:
144
+ - uses: actions/checkout@v6
145
+ - name: Build sdist
146
+ uses: PyO3/maturin-action@v1
147
+ with:
148
+ command: sdist
149
+ args: --out dist
150
+ - name: Upload sdist
151
+ uses: actions/upload-artifact@v5
152
+ with:
153
+ name: wheels-sdist
154
+ path: dist
155
+
156
+ release:
157
+ name: Release
158
+ runs-on: ubuntu-latest
159
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160
+ needs: [linux, windows, macos, sdist]
161
+ permissions:
162
+ # Use to sign the release artifacts
163
+ id-token: write
164
+ # Used to upload release artifacts
165
+ contents: write
166
+ # Used to generate artifact attestation
167
+ attestations: write
168
+ environment: pypi
169
+ steps:
170
+ - uses: actions/download-artifact@v6
171
+ - name: Generate artifact attestation
172
+ uses: actions/attest-build-provenance@v3
173
+ with:
174
+ subject-path: 'wheels-*/*'
175
+ - name: Install uv
176
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
177
+ uses: astral-sh/setup-uv@v7
178
+ - name: Publish to PyPI
179
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
180
+ run: uv publish 'wheels-*/*'
@@ -0,0 +1,72 @@
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