codex-pal 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,152 @@
1
+ # This file is autogenerated by maturin v1.14.1
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ pull_request:
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ env:
20
+ CARGO_NET_RETRY: 10
21
+ CARGO_HTTP_MULTIPLEXING: "false"
22
+
23
+ jobs:
24
+ linux:
25
+ runs-on: ${{ matrix.platform.runner }}
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ platform:
30
+ - runner: ubuntu-22.04
31
+ target: x86_64
32
+ - runner: ubuntu-22.04
33
+ target: x86
34
+ - runner: ubuntu-22.04
35
+ target: aarch64
36
+ - runner: ubuntu-22.04
37
+ target: armv7
38
+ - runner: ubuntu-22.04
39
+ target: s390x
40
+ - runner: ubuntu-22.04
41
+ target: ppc64le
42
+ steps:
43
+ - uses: actions/checkout@v6
44
+ - name: Build wheels
45
+ uses: PyO3/maturin-action@v1
46
+ with:
47
+ target: ${{ matrix.platform.target }}
48
+ args: --release --out dist
49
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
50
+ manylinux: auto
51
+ - name: Upload wheels
52
+ uses: actions/upload-artifact@v6
53
+ with:
54
+ name: wheels-linux-${{ matrix.platform.target }}
55
+ path: dist
56
+
57
+ musllinux:
58
+ runs-on: ${{ matrix.platform.runner }}
59
+ strategy:
60
+ fail-fast: false
61
+ matrix:
62
+ platform:
63
+ - runner: ubuntu-22.04
64
+ target: x86_64
65
+ - runner: ubuntu-22.04
66
+ target: x86
67
+ - runner: ubuntu-22.04
68
+ target: aarch64
69
+ - runner: ubuntu-22.04
70
+ target: armv7
71
+ steps:
72
+ - uses: actions/checkout@v6
73
+ - name: Build wheels
74
+ uses: PyO3/maturin-action@v1
75
+ with:
76
+ target: ${{ matrix.platform.target }}
77
+ args: --release --out dist
78
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
79
+ manylinux: musllinux_1_2
80
+ - name: Upload wheels
81
+ uses: actions/upload-artifact@v6
82
+ with:
83
+ name: wheels-musllinux-${{ matrix.platform.target }}
84
+ path: dist
85
+
86
+ windows:
87
+ runs-on: ${{ matrix.platform.runner }}
88
+ strategy:
89
+ fail-fast: false
90
+ matrix:
91
+ platform:
92
+ - runner: windows-latest
93
+ target: x64
94
+ python_arch: x64
95
+ - runner: windows-latest
96
+ target: x86
97
+ python_arch: x86
98
+ - runner: windows-11-arm
99
+ target: aarch64
100
+ python_arch: arm64
101
+ steps:
102
+ - uses: actions/checkout@v6
103
+ - name: Build wheels
104
+ uses: PyO3/maturin-action@v1
105
+ with:
106
+ target: ${{ matrix.platform.target }}
107
+ args: --release --out dist
108
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
109
+ - name: Upload wheels
110
+ uses: actions/upload-artifact@v6
111
+ with:
112
+ name: wheels-windows-${{ matrix.platform.target }}
113
+ path: dist
114
+
115
+ macos:
116
+ runs-on: ${{ matrix.platform.runner }}
117
+ strategy:
118
+ fail-fast: false
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
+ - name: Build wheels
128
+ uses: PyO3/maturin-action@v1
129
+ with:
130
+ target: ${{ matrix.platform.target }}
131
+ args: --release --out dist
132
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
133
+ - name: Upload wheels
134
+ uses: actions/upload-artifact@v6
135
+ with:
136
+ name: wheels-macos-${{ matrix.platform.target }}
137
+ path: dist
138
+
139
+ sdist:
140
+ runs-on: ubuntu-latest
141
+ steps:
142
+ - uses: actions/checkout@v6
143
+ - name: Build sdist
144
+ uses: PyO3/maturin-action@v1
145
+ with:
146
+ command: sdist
147
+ args: --out dist
148
+ - name: Upload sdist
149
+ uses: actions/upload-artifact@v6
150
+ with:
151
+ name: wheels-sdist
152
+ path: dist
@@ -0,0 +1,189 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ env:
12
+ CARGO_NET_RETRY: 10
13
+ CARGO_HTTP_MULTIPLEXING: "false"
14
+
15
+ jobs:
16
+ linux:
17
+ runs-on: ${{ matrix.platform.runner }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ platform:
22
+ - runner: ubuntu-22.04
23
+ target: x86_64
24
+ - runner: ubuntu-22.04
25
+ target: x86
26
+ - runner: ubuntu-22.04
27
+ target: aarch64
28
+ - runner: ubuntu-22.04
29
+ target: armv7
30
+ - runner: ubuntu-22.04
31
+ target: s390x
32
+ - runner: ubuntu-22.04
33
+ target: ppc64le
34
+ steps:
35
+ - uses: actions/checkout@v6
36
+ - name: Build wheels
37
+ uses: PyO3/maturin-action@v1
38
+ with:
39
+ target: ${{ matrix.platform.target }}
40
+ args: --release --out dist
41
+ sccache: false
42
+ manylinux: auto
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
+ fail-fast: false
53
+ matrix:
54
+ platform:
55
+ - runner: ubuntu-22.04
56
+ target: x86_64
57
+ - runner: ubuntu-22.04
58
+ target: x86
59
+ - runner: ubuntu-22.04
60
+ target: aarch64
61
+ - runner: ubuntu-22.04
62
+ target: armv7
63
+ steps:
64
+ - uses: actions/checkout@v6
65
+ - name: Build wheels
66
+ uses: PyO3/maturin-action@v1
67
+ with:
68
+ target: ${{ matrix.platform.target }}
69
+ args: --release --out dist
70
+ sccache: false
71
+ manylinux: musllinux_1_2
72
+ - name: Upload wheels
73
+ uses: actions/upload-artifact@v6
74
+ with:
75
+ name: wheels-musllinux-${{ matrix.platform.target }}
76
+ path: dist
77
+
78
+ windows:
79
+ runs-on: ${{ matrix.platform.runner }}
80
+ strategy:
81
+ fail-fast: false
82
+ matrix:
83
+ platform:
84
+ - runner: windows-latest
85
+ target: x64
86
+ python_arch: x64
87
+ - runner: windows-latest
88
+ target: x86
89
+ python_arch: x86
90
+ - runner: windows-11-arm
91
+ target: aarch64
92
+ python_arch: arm64
93
+ steps:
94
+ - uses: actions/checkout@v6
95
+ - name: Build wheels
96
+ uses: PyO3/maturin-action@v1
97
+ with:
98
+ target: ${{ matrix.platform.target }}
99
+ args: --release --out dist
100
+ sccache: false
101
+ - name: Upload wheels
102
+ uses: actions/upload-artifact@v6
103
+ with:
104
+ name: wheels-windows-${{ matrix.platform.target }}
105
+ path: dist
106
+
107
+ macos:
108
+ runs-on: ${{ matrix.platform.runner }}
109
+ strategy:
110
+ fail-fast: false
111
+ matrix:
112
+ platform:
113
+ - runner: macos-15-intel
114
+ target: x86_64
115
+ - runner: macos-latest
116
+ target: aarch64
117
+ steps:
118
+ - uses: actions/checkout@v6
119
+ - name: Build wheels
120
+ uses: PyO3/maturin-action@v1
121
+ with:
122
+ target: ${{ matrix.platform.target }}
123
+ args: --release --out dist
124
+ sccache: false
125
+ - name: Upload wheels
126
+ uses: actions/upload-artifact@v6
127
+ with:
128
+ name: wheels-macos-${{ matrix.platform.target }}
129
+ path: dist
130
+
131
+ sdist:
132
+ runs-on: ubuntu-latest
133
+ steps:
134
+ - uses: actions/checkout@v6
135
+ - name: Build sdist
136
+ uses: PyO3/maturin-action@v1
137
+ with:
138
+ command: sdist
139
+ args: --out dist
140
+ - name: Upload sdist
141
+ uses: actions/upload-artifact@v6
142
+ with:
143
+ name: wheels-sdist
144
+ path: dist
145
+
146
+ publish:
147
+ name: Publish
148
+ runs-on: ubuntu-latest
149
+ needs: [linux, musllinux, windows, macos, sdist]
150
+ environment: release
151
+ permissions:
152
+ contents: write
153
+ id-token: write
154
+ attestations: write
155
+ steps:
156
+ - uses: actions/checkout@v6
157
+ - name: Validate release inputs
158
+ env:
159
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
160
+ run: |
161
+ test -n "$CARGO_REGISTRY_TOKEN" || {
162
+ echo "CARGO_REGISTRY_TOKEN is required in the release environment" >&2
163
+ exit 1
164
+ }
165
+ tag_version="${GITHUB_REF_NAME#v}"
166
+ cargo_version="$(cargo metadata --no-deps --format-version 1 | python3 -c 'import json, sys; print(json.load(sys.stdin)["packages"][0]["version"])')"
167
+ if [ "$tag_version" != "$cargo_version" ]; then
168
+ echo "Tag $GITHUB_REF_NAME does not match Cargo version $cargo_version" >&2
169
+ exit 1
170
+ fi
171
+ - name: Verify crates.io package
172
+ run: cargo publish --locked --dry-run
173
+ - uses: actions/download-artifact@v7
174
+ - name: Generate artifact attestation
175
+ uses: actions/attest@v4
176
+ with:
177
+ subject-path: 'wheels-*/*'
178
+ - name: Install uv
179
+ uses: astral-sh/setup-uv@v7
180
+ - name: Publish to PyPI
181
+ run: uv publish --trusted-publishing always 'wheels-*/*'
182
+ - name: Publish to crates.io
183
+ run: cargo publish --locked
184
+ env:
185
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
186
+ - name: Create GitHub release
187
+ env:
188
+ GH_TOKEN: ${{ github.token }}
189
+ run: gh release create "$GITHUB_REF_NAME" wheels-*/* --generate-notes
@@ -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