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.
- buzzkit-0.1.0/.github/workflows/CI.yml +39 -0
- buzzkit-0.1.0/.github/workflows/release.yml +71 -0
- buzzkit-0.1.0/.gitignore +8 -0
- buzzkit-0.1.0/Cargo.lock +1486 -0
- buzzkit-0.1.0/Cargo.toml +26 -0
- buzzkit-0.1.0/LICENSE +21 -0
- buzzkit-0.1.0/LICENSE-APACHE +201 -0
- buzzkit-0.1.0/NOTICE +20 -0
- buzzkit-0.1.0/PKG-INFO +136 -0
- buzzkit-0.1.0/README.md +102 -0
- buzzkit-0.1.0/examples/_shared.py +24 -0
- buzzkit-0.1.0/examples/claim_invite.py +24 -0
- buzzkit-0.1.0/examples/list_channels.py +23 -0
- buzzkit-0.1.0/examples/offline_sign.py +33 -0
- buzzkit-0.1.0/examples/send_message.py +26 -0
- buzzkit-0.1.0/examples/set_profile.py +23 -0
- buzzkit-0.1.0/examples/subscribe.py +27 -0
- buzzkit-0.1.0/pyproject.toml +59 -0
- buzzkit-0.1.0/python/buzzkit/__init__.py +46 -0
- buzzkit-0.1.0/python/buzzkit/_native.pyi +38 -0
- buzzkit-0.1.0/python/buzzkit/client.py +291 -0
- buzzkit-0.1.0/python/buzzkit/py.typed +0 -0
- buzzkit-0.1.0/src/lib.rs +161 -0
- buzzkit-0.1.0/tests/test_signing.py +66 -0
|
@@ -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
|