buzzkit 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,39 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ci-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+
22
+ - uses: dtolnay/rust-toolchain@stable
23
+ with:
24
+ components: rustfmt, clippy
25
+
26
+ - name: Rust formatting
27
+ run: cargo fmt --check
28
+
29
+ - name: Clippy
30
+ run: cargo clippy --all-targets -- -D warnings
31
+
32
+ - name: Install (editable) with dev deps
33
+ run: pip install -e '.[dev]'
34
+
35
+ - name: Ruff
36
+ run: ruff check python tests examples
37
+
38
+ - name: Pytest
39
+ run: pytest
@@ -0,0 +1,71 @@
1
+ name: Release
2
+
3
+ # Cut a release by pushing a tag, e.g. `git tag v0.1.0 && git push origin v0.1.0`.
4
+ # Publishing uses PyPI Trusted Publishing (OIDC) — no API token needed. Configure
5
+ # the trusted publisher for this repo on PyPI and create a `pypi` environment.
6
+ on:
7
+ push:
8
+ tags: ["v*"]
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ wheels:
16
+ name: wheels (${{ matrix.platform.os }} / ${{ matrix.platform.target }})
17
+ runs-on: ${{ matrix.platform.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ platform:
22
+ - { os: ubuntu-latest, target: x86_64 }
23
+ - { os: ubuntu-latest, target: aarch64 }
24
+ - { os: macos-13, target: x86_64 }
25
+ - { os: macos-14, target: aarch64 }
26
+ - { os: windows-latest, target: x64 }
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-python@v5
30
+ with:
31
+ python-version: "3.12"
32
+ - name: Build wheels
33
+ uses: PyO3/maturin-action@v1
34
+ with:
35
+ target: ${{ matrix.platform.target }}
36
+ args: --release --out dist
37
+ manylinux: auto
38
+ - uses: actions/upload-artifact@v4
39
+ with:
40
+ name: wheels-${{ matrix.platform.os }}-${{ matrix.platform.target }}
41
+ path: dist
42
+
43
+ sdist:
44
+ runs-on: ubuntu-latest
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - name: Build sdist
48
+ uses: PyO3/maturin-action@v1
49
+ with:
50
+ command: sdist
51
+ args: --out dist
52
+ - uses: actions/upload-artifact@v4
53
+ with:
54
+ name: wheels-sdist
55
+ path: dist
56
+
57
+ publish:
58
+ name: Publish to PyPI
59
+ needs: [wheels, sdist]
60
+ runs-on: ubuntu-latest
61
+ if: startsWith(github.ref, 'refs/tags/')
62
+ environment: pypi
63
+ permissions:
64
+ id-token: write # trusted publishing (OIDC)
65
+ steps:
66
+ - uses: actions/download-artifact@v4
67
+ with:
68
+ pattern: wheels-*
69
+ merge-multiple: true
70
+ path: dist
71
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,8 @@
1
+ /target
2
+ /.venv
3
+ *.so
4
+ *.pyd
5
+ __pycache__/
6
+ *.egg-info/
7
+ .python-version
8
+ agent.secret