natsrpy 0.0.1__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,200 @@
1
+ # This file is autogenerated by maturin v1.12.6
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ release:
10
+ types: [released]
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
+ - runner: ubuntu-22.04
30
+ target: s390x
31
+ - runner: ubuntu-22.04
32
+ target: ppc64le
33
+ steps:
34
+ - uses: actions/checkout@v6
35
+ - uses: actions/setup-python@v6
36
+ with:
37
+ python-version: 3.x
38
+ - name: Setting correct version
39
+ run: |
40
+ python scripts/bump_version.py "${{ github.ref_name }}"
41
+ - name: Build wheels
42
+ uses: PyO3/maturin-action@v1
43
+ with:
44
+ target: ${{ matrix.platform.target }}
45
+ args: --release --out dist --find-interpreter
46
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
47
+ manylinux: auto
48
+ env:
49
+ CFLAGS_aarch64_unknown_linux_gnu: ${{ matrix.platform.target == 'aarch64' && '-D__ARM_ARCH=8' || '' }}
50
+ - name: Upload wheels
51
+ uses: actions/upload-artifact@v6
52
+ with:
53
+ name: wheels-linux-${{ matrix.platform.target }}
54
+ path: dist
55
+
56
+ musllinux:
57
+ runs-on: ${{ matrix.platform.runner }}
58
+ strategy:
59
+ matrix:
60
+ platform:
61
+ - runner: ubuntu-22.04
62
+ target: x86_64
63
+ - runner: ubuntu-22.04
64
+ target: x86
65
+ - runner: ubuntu-22.04
66
+ target: aarch64
67
+ - runner: ubuntu-22.04
68
+ target: armv7
69
+ steps:
70
+ - uses: actions/checkout@v6
71
+ - uses: actions/setup-python@v6
72
+ with:
73
+ python-version: 3.x
74
+ - name: Setting correct version
75
+ run: |
76
+ python scripts/bump_version.py "${{ github.ref_name }}"
77
+ - name: Build wheels
78
+ uses: PyO3/maturin-action@v1
79
+ with:
80
+ target: ${{ matrix.platform.target }}
81
+ args: --release --out dist --find-interpreter
82
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
83
+ manylinux: musllinux_1_2
84
+ env:
85
+ CFLAGS_aarch64_unknown_linux_musl: ${{ matrix.platform.target == 'aarch64' && '-D__ARM_ARCH=8' || '' }}
86
+ CFLAGS_armv7_unknown_linux_musleabihf: ${{ matrix.platform.target == 'armv7' && '-D__ARM_ARCH=7' || '' }}
87
+ - name: Upload wheels
88
+ uses: actions/upload-artifact@v6
89
+ with:
90
+ name: wheels-musllinux-${{ matrix.platform.target }}
91
+ path: dist
92
+
93
+ windows:
94
+ runs-on: ${{ matrix.platform.runner }}
95
+ strategy:
96
+ matrix:
97
+ platform:
98
+ - runner: windows-latest
99
+ target: x64
100
+ python_arch: x64
101
+ - runner: windows-latest
102
+ target: x86
103
+ python_arch: x86
104
+ - runner: windows-11-arm
105
+ target: aarch64
106
+ python_arch: arm64
107
+ steps:
108
+ - uses: actions/checkout@v6
109
+ - uses: actions/setup-python@v6
110
+ with:
111
+ python-version: 3.13
112
+ architecture: ${{ matrix.platform.python_arch }}
113
+ - name: Setting correct version
114
+ run: |
115
+ python scripts/bump_version.py "${{ github.ref_name }}"
116
+ - name: Build wheels
117
+ uses: PyO3/maturin-action@v1
118
+ with:
119
+ target: ${{ matrix.platform.target }}
120
+ args: --release --out dist --find-interpreter
121
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
122
+ - name: Upload wheels
123
+ uses: actions/upload-artifact@v6
124
+ with:
125
+ name: wheels-windows-${{ matrix.platform.target }}
126
+ path: dist
127
+
128
+ macos:
129
+ runs-on: ${{ matrix.platform.runner }}
130
+ strategy:
131
+ matrix:
132
+ platform:
133
+ - runner: macos-15-intel
134
+ target: x86_64
135
+ - runner: macos-latest
136
+ target: aarch64
137
+ steps:
138
+ - uses: actions/checkout@v6
139
+ - uses: actions/setup-python@v6
140
+ with:
141
+ python-version: 3.x
142
+ - name: Setting correct version
143
+ run: |
144
+ python scripts/bump_version.py "${{ github.ref_name }}"
145
+ - name: Build wheels
146
+ uses: PyO3/maturin-action@v1
147
+ with:
148
+ target: ${{ matrix.platform.target }}
149
+ args: --release --out dist --find-interpreter
150
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
151
+ - name: Upload wheels
152
+ uses: actions/upload-artifact@v6
153
+ with:
154
+ name: wheels-macos-${{ matrix.platform.target }}
155
+ path: dist
156
+
157
+ sdist:
158
+ runs-on: ubuntu-latest
159
+ steps:
160
+ - uses: actions/checkout@v6
161
+ - uses: actions/setup-python@v6
162
+ with:
163
+ python-version: 3.x
164
+ - name: Setting correct version
165
+ run: |
166
+ python scripts/bump_version.py "${{ github.ref_name }}"
167
+ - name: Build sdist
168
+ uses: PyO3/maturin-action@v1
169
+ with:
170
+ command: sdist
171
+ args: --out dist
172
+ - name: Upload sdist
173
+ uses: actions/upload-artifact@v6
174
+ with:
175
+ name: wheels-sdist
176
+ path: dist
177
+
178
+ release:
179
+ name: Release
180
+ runs-on: ubuntu-latest
181
+ needs: [linux, musllinux, windows, macos, sdist]
182
+ permissions:
183
+ # Use to sign the release artifacts
184
+ id-token: write
185
+ # Used to upload release artifacts
186
+ contents: write
187
+ # Used to generate artifact attestation
188
+ attestations: write
189
+ steps:
190
+ - uses: actions/download-artifact@v7
191
+ - name: Generate artifact attestation
192
+ uses: actions/attest-build-provenance@v3
193
+ with:
194
+ subject-path: "wheels-*/*"
195
+ - name: Install uv
196
+ uses: astral-sh/setup-uv@v7
197
+ - name: Publish to PyPI
198
+ run: uv publish 'wheels-*/*'
199
+ env:
200
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
@@ -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