devhelm 0.4.0__tar.gz → 0.6.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.
- {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/spec-check.yml +27 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/PKG-INFO +1 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/docs/openapi/monitoring-api.json +1220 -93
- {devhelm-0.4.0 → devhelm-0.6.0}/pyproject.toml +1 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/scripts/typegen.sh +2 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/__init__.py +12 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_generated.py +418 -58
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_http.py +61 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/client.py +15 -1
- devhelm-0.6.0/src/devhelm/resources/forensics.py +146 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/types.py +10 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_client.py +9 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_http.py +56 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/uv.lock +1 -1
- {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/ci.yml +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/release.yml +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/.gitignore +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/LICENSE +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/Makefile +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/README.md +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/scripts/inject_strict_config.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/scripts/regen-from.sh +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/scripts/release.sh +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_errors.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_pagination.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_validation.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/py.typed +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/__init__.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/alert_channels.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/api_keys.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/dependencies.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/deploy_lock.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/environments.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/incidents.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/monitors.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/notification_policies.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/resource_groups.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/secrets.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/status.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/status_pages.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/tags.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/webhooks.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/__init__.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/run_sdk.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_errors.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_negative_validation.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_schemas.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_spec_parity.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_typing.py +0 -0
- {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_validation_helpers.py +0 -0
|
@@ -20,19 +20,45 @@ jobs:
|
|
|
20
20
|
- uses: actions/setup-python@v5
|
|
21
21
|
with:
|
|
22
22
|
python-version: '3.13'
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: '20'
|
|
23
26
|
|
|
24
27
|
- name: Download latest OpenAPI spec from monorepo
|
|
25
28
|
run: |
|
|
26
29
|
gh api repos/devhelmhq/mono/contents/docs/openapi/monitoring-api.json \
|
|
27
30
|
-H "Accept: application/vnd.github.raw+json" \
|
|
28
|
-
|
|
31
|
+
> docs/openapi/monitoring-api.json
|
|
29
32
|
env:
|
|
30
33
|
GH_TOKEN: ${{ secrets.MONOREPO_DISPATCH_TOKEN }}
|
|
31
34
|
|
|
35
|
+
# Sparse-checkout the shared OpenAPI preprocessor from mono.
|
|
36
|
+
# typegen.sh prefers $OPENAPI_TOOLS → local sibling → npx; without this
|
|
37
|
+
# step, CI falls through to `npx @devhelm/openapi-tools` which is
|
|
38
|
+
# intentionally unpublished (internal-only package).
|
|
39
|
+
- name: Checkout @devhelm/openapi-tools from mono
|
|
40
|
+
uses: actions/checkout@v4
|
|
41
|
+
with:
|
|
42
|
+
repository: devhelmhq/mono
|
|
43
|
+
token: ${{ secrets.MONOREPO_DISPATCH_TOKEN }}
|
|
44
|
+
path: .mono
|
|
45
|
+
sparse-checkout: packages/openapi-tools
|
|
46
|
+
sparse-checkout-cone-mode: false
|
|
47
|
+
|
|
48
|
+
- name: Build @devhelm/openapi-tools
|
|
49
|
+
working-directory: .mono/packages/openapi-tools
|
|
50
|
+
# mono uses pnpm workspaces; we only need this one package's deps here,
|
|
51
|
+
# so install standalone with npm (no lockfile in this subdir).
|
|
52
|
+
run: |
|
|
53
|
+
npm install --no-package-lock --no-audit --no-fund
|
|
54
|
+
npm run build
|
|
55
|
+
|
|
32
56
|
- run: uv sync
|
|
33
57
|
- run: uv run pytest -v
|
|
34
58
|
|
|
35
59
|
- name: Regenerate types from spec
|
|
60
|
+
env:
|
|
61
|
+
OPENAPI_TOOLS: node ${{ github.workspace }}/.mono/packages/openapi-tools/dist/cli.js
|
|
36
62
|
run: ./scripts/typegen.sh
|
|
37
63
|
|
|
38
64
|
- name: Check for type changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devhelm
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: DevHelm SDK for Python — typed client for monitors, incidents, alerting, and more
|
|
5
5
|
Project-URL: Homepage, https://github.com/devhelmhq/sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/devhelmhq/sdk-python.git
|