aihist 0.1.2__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,79 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ['v*']
7
+ pull_request:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v7
17
+ - uses: dtolnay/rust-toolchain@stable
18
+ - uses: actions/setup-python@v7
19
+ with:
20
+ python-version: '3.12'
21
+ - run: cargo test
22
+ - run: pip install -e '.[dev]'
23
+ - run: pytest -q
24
+
25
+ build:
26
+ needs: test
27
+ strategy:
28
+ matrix:
29
+ os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
30
+ runs-on: ${{ matrix.os }}
31
+ steps:
32
+ - uses: actions/checkout@v7
33
+ - uses: PyO3/maturin-action@v1
34
+ with:
35
+ args: --profile dist --out dist -i python3.10 -i python3.11 -i python3.12 -i python3.13
36
+ manylinux: auto
37
+ - uses: actions/upload-artifact@v7
38
+ with:
39
+ name: wheels-${{ matrix.os }}
40
+ path: dist
41
+
42
+ sdist:
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - uses: actions/checkout@v7
46
+ - uses: PyO3/maturin-action@v1
47
+ with:
48
+ command: sdist
49
+ args: -o dist
50
+ - uses: actions/upload-artifact@v7
51
+ with:
52
+ name: wheels-sdist
53
+ path: dist
54
+
55
+ publish:
56
+ if: startsWith(github.ref, 'refs/tags/v')
57
+ needs: [build, sdist]
58
+ runs-on: ubuntu-latest
59
+ permissions:
60
+ contents: write
61
+ id-token: write
62
+ steps:
63
+ - uses: actions/checkout@v7
64
+ - uses: dtolnay/rust-toolchain@stable
65
+ - id: auth
66
+ uses: rust-lang/crates-io-auth-action@v1
67
+ - run: cargo publish -p aihist
68
+ env:
69
+ CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
70
+ - uses: actions/download-artifact@v8
71
+ with:
72
+ pattern: wheels-*
73
+ path: dist
74
+ merge-multiple: true
75
+ - uses: softprops/action-gh-release@v3
76
+ with:
77
+ files: dist/*
78
+ generate_release_notes: true
79
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,14 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.so
4
+ *.egg-info/
5
+ tags
6
+ target/
7
+ dist/
8
+ build/
9
+ .venv/
10
+ venv/
11
+ .env
12
+ .DS_Store
13
+ .ipynb_checkpoints/
14
+ Cargo.lock