iri-client 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,195 @@
1
+ # This file is autogenerated by maturin v1.12.4
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: Publish Python Package
7
+
8
+ on:
9
+ release:
10
+ types: [published]
11
+ workflow_dispatch:
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ permissions:
18
+ contents: read
19
+
20
+ jobs:
21
+ linux:
22
+ runs-on: ${{ matrix.platform.runner }}
23
+ strategy:
24
+ matrix:
25
+ platform:
26
+ - runner: ubuntu-22.04
27
+ target: x86_64
28
+ manylinux: 2_28
29
+ - runner: ubuntu-22.04
30
+ target: x86
31
+ manylinux: 2_28
32
+ - runner: ubuntu-22.04
33
+ target: aarch64
34
+ manylinux: 2_28
35
+ - runner: ubuntu-22.04
36
+ target: armv7
37
+ manylinux: 2_28
38
+ - runner: ubuntu-22.04
39
+ target: s390x
40
+ manylinux: 2_28
41
+ - runner: ubuntu-22.04
42
+ target: ppc64le
43
+ manylinux: 2_28
44
+ steps:
45
+ - uses: actions/checkout@v6
46
+ - uses: actions/setup-python@v6
47
+ with:
48
+ python-version: 3.x
49
+ - name: Build wheels
50
+ uses: PyO3/maturin-action@b1bd829e37fef14c63f19162034228a2f3dc1021 # v1.50.0
51
+ with:
52
+ maturin-version: v1.12.4
53
+ target: ${{ matrix.platform.target }}
54
+ args: --release --locked --compatibility pypi --out dist
55
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
56
+ manylinux: ${{ matrix.platform.manylinux }}
57
+ - name: Upload wheels
58
+ uses: actions/upload-artifact@v5
59
+ with:
60
+ name: wheels-linux-${{ matrix.platform.target }}
61
+ path: dist
62
+
63
+ musllinux:
64
+ runs-on: ${{ matrix.platform.runner }}
65
+ strategy:
66
+ matrix:
67
+ platform:
68
+ - runner: ubuntu-22.04
69
+ target: x86_64
70
+ manylinux: musllinux_1_2
71
+ - runner: ubuntu-22.04
72
+ target: x86
73
+ manylinux: musllinux_1_2
74
+ - runner: ubuntu-22.04
75
+ target: aarch64
76
+ manylinux: musllinux_1_2
77
+ - runner: ubuntu-22.04
78
+ target: armv7
79
+ manylinux: musllinux_1_2
80
+ steps:
81
+ - uses: actions/checkout@v6
82
+ - uses: actions/setup-python@v6
83
+ with:
84
+ python-version: 3.x
85
+ - name: Build wheels
86
+ uses: PyO3/maturin-action@b1bd829e37fef14c63f19162034228a2f3dc1021 # v1.50.0
87
+ with:
88
+ maturin-version: v1.12.4
89
+ target: ${{ matrix.platform.target }}
90
+ args: --release --locked --compatibility pypi --out dist
91
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
92
+ manylinux: ${{ matrix.platform.manylinux }}
93
+ - name: Upload wheels
94
+ uses: actions/upload-artifact@v5
95
+ with:
96
+ name: wheels-musllinux-${{ matrix.platform.target }}
97
+ path: dist
98
+
99
+ windows:
100
+ runs-on: ${{ matrix.platform.runner }}
101
+ strategy:
102
+ matrix:
103
+ platform:
104
+ - runner: windows-latest
105
+ target: x64
106
+ python_arch: x64
107
+ - runner: windows-latest
108
+ target: x86
109
+ python_arch: x86
110
+ - runner: windows-11-arm
111
+ target: aarch64
112
+ python_arch: arm64
113
+ steps:
114
+ - uses: actions/checkout@v6
115
+ - uses: actions/setup-python@v6
116
+ with:
117
+ python-version: 3.13
118
+ architecture: ${{ matrix.platform.python_arch }}
119
+ - name: Build wheels
120
+ uses: PyO3/maturin-action@b1bd829e37fef14c63f19162034228a2f3dc1021 # v1.50.0
121
+ with:
122
+ maturin-version: v1.12.4
123
+ target: ${{ matrix.platform.target }}
124
+ args: --release --locked --compatibility pypi --out dist
125
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
126
+ - name: Upload wheels
127
+ uses: actions/upload-artifact@v5
128
+ with:
129
+ name: wheels-windows-${{ matrix.platform.target }}
130
+ path: dist
131
+
132
+ macos:
133
+ runs-on: ${{ matrix.platform.runner }}
134
+ strategy:
135
+ matrix:
136
+ platform:
137
+ - runner: macos-15-intel
138
+ target: x86_64
139
+ - runner: macos-latest
140
+ target: aarch64
141
+ steps:
142
+ - uses: actions/checkout@v6
143
+ - uses: actions/setup-python@v6
144
+ with:
145
+ python-version: 3.x
146
+ - name: Build wheels
147
+ uses: PyO3/maturin-action@b1bd829e37fef14c63f19162034228a2f3dc1021 # v1.50.0
148
+ with:
149
+ maturin-version: v1.12.4
150
+ target: ${{ matrix.platform.target }}
151
+ args: --release --locked --compatibility pypi --out dist
152
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
153
+ - name: Upload wheels
154
+ uses: actions/upload-artifact@v5
155
+ with:
156
+ name: wheels-macos-${{ matrix.platform.target }}
157
+ path: dist
158
+
159
+ sdist:
160
+ runs-on: ubuntu-latest
161
+ steps:
162
+ - uses: actions/checkout@v6
163
+ - name: Build sdist
164
+ uses: PyO3/maturin-action@b1bd829e37fef14c63f19162034228a2f3dc1021 # v1.50.0
165
+ with:
166
+ maturin-version: v1.12.4
167
+ command: sdist
168
+ args: --out dist
169
+ - name: Upload sdist
170
+ uses: actions/upload-artifact@v5
171
+ with:
172
+ name: wheels-sdist
173
+ path: dist
174
+
175
+ release:
176
+ name: Release
177
+ runs-on: ubuntu-latest
178
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
179
+ needs: [linux, musllinux, windows, macos, sdist]
180
+ environment: pypi
181
+ permissions:
182
+ id-token: write
183
+ attestations: write
184
+ steps:
185
+ - uses: actions/download-artifact@v6
186
+ - name: Generate artifact attestation
187
+ uses: actions/attest-build-provenance@v3
188
+ with:
189
+ subject-path: 'wheels-*/*'
190
+ - name: Install uv
191
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
192
+ uses: astral-sh/setup-uv@v7
193
+ - name: Publish to PyPI
194
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
195
+ run: uv publish 'wheels-*/*'
@@ -0,0 +1,33 @@
1
+ name: Rust
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ env:
10
+ CARGO_TERM_COLOR: always
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/cache@v5
20
+ with:
21
+ path: |
22
+ ~/.cargo/bin/
23
+ ~/.cargo/registry/index/
24
+ ~/.cargo/registry/cache/
25
+ ~/.cargo/git/db/
26
+ target/
27
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28
+ - name: Build CLI
29
+ run: cargo build --verbose --features python,cli --bin iri-cli
30
+ - name: Check examples
31
+ run: cargo check --verbose --examples
32
+ - name: Run tests
33
+ run: cargo test --verbose
@@ -0,0 +1,11 @@
1
+ /target
2
+ /.auth
3
+ /.env
4
+ /.dist-env
5
+ /.venv
6
+ __pycache__/
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
10
+ dist/
11
+ build/
@@ -0,0 +1,5 @@
1
+ {
2
+ "rust-analyzer.cargo.features": [
3
+ "python", "cli"
4
+ ]
5
+ }