anot 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,34 @@
1
+ name: Rust CI
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
+ test:
14
+ name: Test
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install Rust toolchain
20
+ uses: dtolnay/rust-toolchain@stable
21
+ with:
22
+ components: rustfmt, clippy
23
+
24
+ - name: Install just
25
+ uses: taiki-e/install-action@just
26
+
27
+ - name: Run tests
28
+ run: just test
29
+
30
+ - name: Run clippy
31
+ run: just clippy
32
+
33
+ - name: Check formatting
34
+ run: just fmt-check
@@ -0,0 +1,173 @@
1
+ # This file is autogenerated by maturin v1.7.8
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: "Publish"
7
+
8
+ on:
9
+ release:
10
+ types: ["published"]
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@v4
35
+ - uses: actions/setup-python@v5
36
+ with:
37
+ python-version: 3.x
38
+ - name: Build wheels
39
+ uses: PyO3/maturin-action@v1
40
+ with:
41
+ target: ${{ matrix.platform.target }}
42
+ args: --release --out dist --find-interpreter
43
+ sccache: 'true'
44
+ manylinux: auto
45
+ - name: Upload wheels
46
+ uses: actions/upload-artifact@v4
47
+ with:
48
+ name: wheels-linux-${{ matrix.platform.target }}
49
+ path: dist
50
+
51
+ musllinux:
52
+ runs-on: ${{ matrix.platform.runner }}
53
+ strategy:
54
+ matrix:
55
+ platform:
56
+ - runner: ubuntu-22.04
57
+ target: x86_64
58
+ - runner: ubuntu-22.04
59
+ target: x86
60
+ - runner: ubuntu-22.04
61
+ target: aarch64
62
+ - runner: ubuntu-22.04
63
+ target: armv7
64
+ steps:
65
+ - uses: actions/checkout@v4
66
+ - uses: actions/setup-python@v5
67
+ with:
68
+ python-version: 3.x
69
+ - name: Build wheels
70
+ uses: PyO3/maturin-action@v1
71
+ with:
72
+ target: ${{ matrix.platform.target }}
73
+ args: --release --out dist --find-interpreter
74
+ sccache: 'true'
75
+ manylinux: musllinux_1_2
76
+ - name: Upload wheels
77
+ uses: actions/upload-artifact@v4
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
+ - runner: windows-latest
90
+ target: x86
91
+ steps:
92
+ - uses: actions/checkout@v4
93
+ - uses: actions/setup-python@v5
94
+ with:
95
+ python-version: 3.x
96
+ architecture: ${{ matrix.platform.target }}
97
+ - name: Build wheels
98
+ uses: PyO3/maturin-action@v1
99
+ with:
100
+ target: ${{ matrix.platform.target }}
101
+ args: --release --out dist --find-interpreter
102
+ sccache: 'true'
103
+ - name: Upload wheels
104
+ uses: actions/upload-artifact@v4
105
+ with:
106
+ name: wheels-windows-${{ matrix.platform.target }}
107
+ path: dist
108
+
109
+ macos:
110
+ runs-on: ${{ matrix.platform.runner }}
111
+ strategy:
112
+ matrix:
113
+ platform:
114
+ - runner: macos-13
115
+ target: x86_64
116
+ - runner: macos-14
117
+ target: aarch64
118
+ steps:
119
+ - uses: actions/checkout@v4
120
+ - uses: actions/setup-python@v5
121
+ with:
122
+ python-version: 3.x
123
+ - name: Build wheels
124
+ uses: PyO3/maturin-action@v1
125
+ with:
126
+ target: ${{ matrix.platform.target }}
127
+ args: --release --out dist --find-interpreter
128
+ sccache: 'true'
129
+ - name: Upload wheels
130
+ uses: actions/upload-artifact@v4
131
+ with:
132
+ name: wheels-macos-${{ matrix.platform.target }}
133
+ path: dist
134
+
135
+ sdist:
136
+ runs-on: ubuntu-latest
137
+ steps:
138
+ - uses: actions/checkout@v4
139
+ - name: Build sdist
140
+ uses: PyO3/maturin-action@v1
141
+ with:
142
+ command: sdist
143
+ args: --out dist
144
+ - name: Upload sdist
145
+ uses: actions/upload-artifact@v4
146
+ with:
147
+ name: wheels-sdist
148
+ path: dist
149
+
150
+ release:
151
+ name: Release
152
+ runs-on: ubuntu-latest
153
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
154
+ needs: [linux, musllinux, windows, macos, sdist]
155
+ permissions:
156
+ # Use to sign the release artifacts
157
+ id-token: write
158
+ # Used to upload release artifacts
159
+ contents: write
160
+ # Used to generate artifact attestation
161
+ attestations: write
162
+ steps:
163
+ - uses: actions/download-artifact@v4
164
+ - name: Generate artifact attestation
165
+ uses: actions/attest-build-provenance@v1
166
+ with:
167
+ subject-path: 'wheels-*/*'
168
+ - name: Publish to PyPI
169
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
170
+ uses: PyO3/maturin-action@v1
171
+ with:
172
+ command: upload
173
+ args: --non-interactive --skip-existing wheels-*/*
anot-0.0.1/.gitignore ADDED
@@ -0,0 +1,29 @@
1
+ # Generated by Cargo
2
+ # will have compiled files and executables
3
+ debug/
4
+ target/
5
+
6
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8
+ Cargo.lock
9
+
10
+ # These are backup files generated by rustfmt
11
+ **/*.rs.bk
12
+
13
+ # MSVC Windows builds of rustc generate these, which store debugging information
14
+ *.pdb
15
+
16
+ # RustRover
17
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
18
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
19
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
20
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
21
+ #.idea/
22
+
23
+ # Added by cargo
24
+
25
+ /target
26
+ .env
27
+
28
+ /python/**/*.so
29
+ /python/**/__pycache__/