rigsby-core 0.3.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.
- rigsby_core-0.3.0/.github/workflows/ci.yml +64 -0
- rigsby_core-0.3.0/.gitignore +6 -0
- rigsby_core-0.3.0/LICENSE +661 -0
- rigsby_core-0.3.0/PKG-INFO +38 -0
- rigsby_core-0.3.0/README.md +11 -0
- rigsby_core-0.3.0/docs/design.md +98 -0
- rigsby_core-0.3.0/pyproject.toml +42 -0
- rigsby_core-0.3.0/rigsby_core/__init__.py +0 -0
- rigsby_core-0.3.0/rigsby_core/apps.py +69 -0
- rigsby_core-0.3.0/rigsby_core/channel.py +207 -0
- rigsby_core-0.3.0/rigsby_core/config.py +25 -0
- rigsby_core-0.3.0/rigsby_core/connection.py +112 -0
- rigsby_core-0.3.0/rigsby_core/connectors.py +46 -0
- rigsby_core-0.3.0/rigsby_core/crypto.py +102 -0
- rigsby_core-0.3.0/rigsby_core/enroll.py +139 -0
- rigsby_core-0.3.0/rigsby_core/handshake.py +72 -0
- rigsby_core-0.3.0/rigsby_core/models/__init__.py +0 -0
- rigsby_core-0.3.0/rigsby_core/models/action.py +305 -0
- rigsby_core-0.3.0/rigsby_core/models/decision.py +35 -0
- rigsby_core-0.3.0/rigsby_core/models/job.py +123 -0
- rigsby_core-0.3.0/rigsby_core/models/observation.py +186 -0
- rigsby_core-0.3.0/rigsby_core/models/task.py +120 -0
- rigsby_core-0.3.0/rigsby_core/notes.py +64 -0
- rigsby_core-0.3.0/rigsby_core/phone.py +78 -0
- rigsby_core-0.3.0/tests/__init__.py +0 -0
- rigsby_core-0.3.0/tests/conftest.py +7 -0
- rigsby_core-0.3.0/tests/test_connection.py +80 -0
- rigsby_core-0.3.0/tests/test_crypto.py +60 -0
- rigsby_core-0.3.0/tests/test_enroll.py +49 -0
- rigsby_core-0.3.0/tests/test_notes.py +17 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Tests on every pull request and push to main; on a version tag (v0.3.0), builds the package and
|
|
2
|
+
# publishes it to PyPI. It publishes with PYPI_API_TOKEN, a secret of the `pypi` environment (which needs
|
|
3
|
+
# a reviewer's approval): trusted publishing doesn't match this organization's OIDC subject format
|
|
4
|
+
# (repo:owner@id/repo@id) yet.
|
|
5
|
+
name: CI
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
pull_request:
|
|
9
|
+
push:
|
|
10
|
+
branches: [main]
|
|
11
|
+
tags: ["v*"]
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
test:
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
os: [ubuntu-latest, macos-latest]
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: astral-sh/setup-uv@v6
|
|
27
|
+
- run: uv sync --python 3.12
|
|
28
|
+
- run: uv run pytest -q
|
|
29
|
+
|
|
30
|
+
build:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
|
+
- uses: astral-sh/setup-uv@v6
|
|
35
|
+
- name: The tag matches the package version
|
|
36
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
37
|
+
run: |
|
|
38
|
+
want="${GITHUB_REF_NAME#v}"
|
|
39
|
+
got=$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)
|
|
40
|
+
[ "$got" = "$want" ] || { echo "pyproject.toml is $got, the tag is $want"; exit 1; }
|
|
41
|
+
- name: Build and check
|
|
42
|
+
run: |
|
|
43
|
+
uv build --no-sources --out-dir dist
|
|
44
|
+
uvx twine check --strict dist/*
|
|
45
|
+
- uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: dist
|
|
48
|
+
path: dist/
|
|
49
|
+
|
|
50
|
+
publish:
|
|
51
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
52
|
+
needs: [test, build]
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
environment:
|
|
55
|
+
name: pypi
|
|
56
|
+
url: https://pypi.org/project/rigsby-core/
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/download-artifact@v4
|
|
59
|
+
with:
|
|
60
|
+
name: dist
|
|
61
|
+
path: dist/
|
|
62
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
63
|
+
with:
|
|
64
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|