capawesome-cloud 0.2.2__tar.gz → 0.3.1__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.
Files changed (61) hide show
  1. capawesome_cloud-0.3.1/.github/dependabot.yml +10 -0
  2. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.github/workflows/ci.yml +8 -8
  3. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.github/workflows/release.yml +6 -6
  4. capawesome_cloud-0.3.1/.release-please-manifest.json +3 -0
  5. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/BREAKING.md +7 -0
  6. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/CHANGELOG.md +18 -0
  7. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/PKG-INFO +3 -4
  8. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/README.md +1 -1
  9. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/examples/README.md +1 -1
  10. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/pyproject.toml +3 -6
  11. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/_http.py +3 -2
  12. capawesome_cloud-0.3.1/src/capawesome_cloud/_version.py +1 -0
  13. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_client.py +4 -3
  14. capawesome_cloud-0.2.2/.release-please-manifest.json +0 -3
  15. capawesome_cloud-0.2.2/src/capawesome_cloud/_version.py +0 -1
  16. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  17. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  18. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  19. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/.gitignore +0 -0
  20. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/LICENSE +0 -0
  21. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/examples/error_handling.py +0 -0
  22. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/examples/list_apps.py +0 -0
  23. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/examples/manage_live_updates.py +0 -0
  24. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/examples/trigger_native_build.py +0 -0
  25. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/release-please-config.json +0 -0
  26. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/__init__.py +0 -0
  27. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/_types.py +0 -0
  28. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/client.py +0 -0
  29. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/exceptions.py +0 -0
  30. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/models.py +0 -0
  31. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/pagination.py +0 -0
  32. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/py.typed +0 -0
  33. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/__init__.py +0 -0
  34. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/_base.py +0 -0
  35. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/apps.py +0 -0
  36. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/automations.py +0 -0
  37. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/build_sources.py +0 -0
  38. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/builds.py +0 -0
  39. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/certificates.py +0 -0
  40. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/channels.py +0 -0
  41. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/configurations.py +0 -0
  42. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/deployments.py +0 -0
  43. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/destinations.py +0 -0
  44. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/devices.py +0 -0
  45. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/environments.py +0 -0
  46. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/git_connections.py +0 -0
  47. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/invitations.py +0 -0
  48. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/jobs.py +0 -0
  49. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/license_keys.py +0 -0
  50. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/members.py +0 -0
  51. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/organizations.py +0 -0
  52. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/repository.py +0 -0
  53. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/teams.py +0 -0
  54. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/users.py +0 -0
  55. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/src/capawesome_cloud/resources/webhooks.py +0 -0
  56. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/conftest.py +0 -0
  57. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_errors_and_retries.py +0 -0
  58. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_jobs.py +0 -0
  59. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_organizations.py +0 -0
  60. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_pagination.py +0 -0
  61. {capawesome_cloud-0.2.2 → capawesome_cloud-0.3.1}/tests/test_resources.py +0 -0
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: quarterly
7
+ groups:
8
+ github-actions:
9
+ patterns:
10
+ - "*"
@@ -20,9 +20,9 @@ jobs:
20
20
  runs-on: ubuntu-latest
21
21
  steps:
22
22
  - name: Checkout
23
- uses: actions/checkout@v6
23
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24
24
  - name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}
25
- uses: actions/setup-python@v6
25
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
26
26
  with:
27
27
  python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
28
28
  cache: pip
@@ -32,7 +32,7 @@ jobs:
32
32
  - name: Build
33
33
  run: python -m build
34
34
  - name: Upload artifacts
35
- uses: actions/upload-artifact@v7
35
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
36
36
  with:
37
37
  name: dist
38
38
  path: dist
@@ -43,12 +43,12 @@ jobs:
43
43
  strategy:
44
44
  fail-fast: false
45
45
  matrix:
46
- python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
46
+ python-version: ['3.10', '3.11', '3.12', '3.13']
47
47
  steps:
48
48
  - name: Checkout
49
- uses: actions/checkout@v6
49
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
50
50
  - name: Set up Python ${{ matrix.python-version }}
51
- uses: actions/setup-python@v6
51
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
52
52
  with:
53
53
  python-version: ${{ matrix.python-version }}
54
54
  cache: pip
@@ -65,9 +65,9 @@ jobs:
65
65
  runs-on: ubuntu-latest
66
66
  steps:
67
67
  - name: Checkout
68
- uses: actions/checkout@v6
68
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
69
69
  - name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}
70
- uses: actions/setup-python@v6
70
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
71
71
  with:
72
72
  python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
73
73
  cache: pip
@@ -25,7 +25,7 @@ jobs:
25
25
  steps:
26
26
  - name: Create release pull request or GitHub release
27
27
  id: release-please
28
- uses: googleapis/release-please-action@v4
28
+ uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
29
29
 
30
30
  build:
31
31
  name: Build
@@ -36,9 +36,9 @@ jobs:
36
36
  contents: read
37
37
  steps:
38
38
  - name: Checkout
39
- uses: actions/checkout@v6
39
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40
40
  - name: Set up Python ${{ env.PYTHON_VERSION }}
41
- uses: actions/setup-python@v6
41
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
42
42
  with:
43
43
  python-version: ${{ env.PYTHON_VERSION }}
44
44
  - name: Build distributions
@@ -47,7 +47,7 @@ jobs:
47
47
  python -m build
48
48
  python -m twine check dist/*
49
49
  - name: Upload distributions
50
- uses: actions/upload-artifact@v7
50
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
51
51
  with:
52
52
  name: dist
53
53
  path: dist/
@@ -61,9 +61,9 @@ jobs:
61
61
  id-token: write # Required for PyPI trusted publishing
62
62
  steps:
63
63
  - name: Download distributions
64
- uses: actions/download-artifact@v8
64
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
65
65
  with:
66
66
  name: dist
67
67
  path: dist/
68
68
  - name: Publish
69
- uses: pypa/gh-action-pypi-publish@release/v1
69
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.3.1"
3
+ }
@@ -4,8 +4,15 @@ This is a comprehensive list of the breaking changes introduced in the major ver
4
4
 
5
5
  ## Versions
6
6
 
7
+ - [Version 0.3.x](#version-03x)
7
8
  - [Version 0.2.x](#version-02x)
8
9
 
10
+ ## Version 0.3.x
11
+
12
+ ### Python 3.10 Required
13
+
14
+ Support for Python 3.9 has been removed, as it reached end of life in October 2025. Python 3.10 or later is now required.
15
+
9
16
  ## Version 0.2.x
10
17
 
11
18
  ### Job Logs
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1](https://github.com/capawesome-team/cloud-python/compare/v0.3.0...v0.3.1) (2026-11-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * send the X-Capawesome-Client header ([#16](https://github.com/capawesome-team/cloud-python/issues/16)) ([e0fbfc4](https://github.com/capawesome-team/cloud-python/commit/e0fbfc416322614850ee5fc1ec9f9f40ee005165))
9
+
10
+ ## [0.3.0](https://github.com/capawesome-team/cloud-python/compare/v0.2.2...v0.3.0) (2026-10-23)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * drop support for Python 3.9 ([#13](https://github.com/capawesome-team/cloud-python/issues/13))
16
+
17
+ ### Miscellaneous Chores
18
+
19
+ * drop support for Python 3.9 ([#13](https://github.com/capawesome-team/cloud-python/issues/13)) ([8268978](https://github.com/capawesome-team/cloud-python/commit/826897867a9c4a270cebb6c1352a8550f6da5db7))
20
+
3
21
  ## [0.2.2](https://github.com/capawesome-team/cloud-python/compare/v0.2.1...v0.2.2) (2026-10-04)
4
22
 
5
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: capawesome-cloud
3
- Version: 0.2.2
3
+ Version: 0.3.1
4
4
  Summary: Python SDK for the Capawesome Cloud API
5
5
  Project-URL: Homepage, https://capawesome.io/cloud
6
6
  Project-URL: Documentation, https://cloud.capawesome.io/docs
@@ -16,13 +16,12 @@ Classifier: License :: OSI Approved :: MIT License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.9
20
19
  Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Typing :: Typed
25
- Requires-Python: >=3.9
24
+ Requires-Python: >=3.10
26
25
  Requires-Dist: httpx<1,>=0.27
27
26
  Requires-Dist: pydantic<3,>=2.7
28
27
  Provides-Extra: dev
@@ -60,7 +59,7 @@ Official SDKs for the Capawesome Cloud API:
60
59
  pip install capawesome-cloud
61
60
  ```
62
61
 
63
- **Requirements:** Python 3.9 or later.
62
+ **Requirements:** Python 3.10 or later.
64
63
 
65
64
  ## Getting started
66
65
 
@@ -25,7 +25,7 @@ Official SDKs for the Capawesome Cloud API:
25
25
  pip install capawesome-cloud
26
26
  ```
27
27
 
28
- **Requirements:** Python 3.9 or later.
28
+ **Requirements:** Python 3.10 or later.
29
29
 
30
30
  ## Getting started
31
31
 
@@ -4,7 +4,7 @@ Runnable scripts to try the SDK against the live Capawesome Cloud API.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - Python 3.9 or later
7
+ - Python 3.10 or later
8
8
  - The SDK installed — from the repository root run `pip install -e .` (or `pip install capawesome-cloud`)
9
9
  - An API token from the [Capawesome Cloud Console](https://console.cloud.capawesome.io/settings/tokens)
10
10
 
@@ -7,7 +7,7 @@ name = "capawesome-cloud"
7
7
  dynamic = ["version"]
8
8
  description = "Python SDK for the Capawesome Cloud API"
9
9
  readme = "README.md"
10
- requires-python = ">=3.9"
10
+ requires-python = ">=3.10"
11
11
  license = "MIT"
12
12
  authors = [{ name = "Capawesome Team", email = "support@capawesome.io" }]
13
13
  keywords = ["capawesome", "capacitor", "live-updates", "sdk", "api"]
@@ -18,7 +18,6 @@ classifiers = [
18
18
  "Operating System :: OS Independent",
19
19
  "Programming Language :: Python",
20
20
  "Programming Language :: Python :: 3",
21
- "Programming Language :: Python :: 3.9",
22
21
  "Programming Language :: Python :: 3.10",
23
22
  "Programming Language :: Python :: 3.11",
24
23
  "Programming Language :: Python :: 3.12",
@@ -53,20 +52,18 @@ packages = ["src/capawesome_cloud"]
53
52
 
54
53
  [tool.ruff]
55
54
  line-length = 100
56
- target-version = "py39"
55
+ target-version = "py310"
57
56
  src = ["src", "tests"]
58
57
 
59
58
  [tool.ruff.lint]
60
59
  select = ["E", "F", "I", "UP", "B", "W", "N", "C4", "SIM"]
61
- # UP007/UP035/UP045 push 3.10+ syntax (X | None, collections.abc generics) that
62
- # breaks pydantic annotation evaluation on Python 3.9, which we still support.
60
+ # TODO: Enable UP006/UP007/UP035/UP045 (PEP 585/604 syntax) now that Python 3.9 is no longer supported.
63
61
  ignore = ["E501", "UP006", "UP007", "UP035", "UP045"]
64
62
 
65
63
  [tool.ruff.lint.isort]
66
64
  known-first-party = ["capawesome_cloud"]
67
65
 
68
66
  [tool.mypy]
69
- # Analysis target; the runtime code remains compatible down to Python 3.9.
70
67
  python_version = "3.10"
71
68
  strict = true
72
69
  warn_unused_ignores = true
@@ -62,9 +62,10 @@ class HttpClient:
62
62
  base_url=base_url.rstrip("/"),
63
63
  timeout=timeout,
64
64
  )
65
- # The token must always apply; identify ourselves on clients we create
66
- # without clobbering a caller-supplied client's User-Agent.
65
+ # The token and the client header must always apply. The User-Agent is
66
+ # set only on clients we create, so a caller-supplied one keeps its own.
67
67
  self._client.headers["Authorization"] = f"Bearer {token}"
68
+ self._client.headers["X-Capawesome-Client"] = f"cloud-python/{__version__}"
68
69
  self._client.headers.setdefault("Accept", "application/json")
69
70
  if self._owns_client:
70
71
  self._client.headers["User-Agent"] = f"capawesome-cloud-python/{__version__}"
@@ -0,0 +1 @@
1
+ __version__ = "0.3.1" # x-release-please-version
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import httpx
4
4
  import pytest
5
5
 
6
- from capawesome_cloud import CapawesomeCloud, CapawesomeCloudError
6
+ from capawesome_cloud import CapawesomeCloud, CapawesomeCloudError, __version__
7
7
 
8
8
 
9
9
  def test_token_from_env(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -41,11 +41,12 @@ def test_missing_token_raises(monkeypatch: pytest.MonkeyPatch) -> None:
41
41
  CapawesomeCloud(token=" ")
42
42
 
43
43
 
44
- def test_sets_auth_and_user_agent_headers() -> None:
44
+ def test_sets_auth_and_client_headers() -> None:
45
45
  client = CapawesomeCloud(token="abc")
46
46
  headers = client._http._client.headers
47
47
  assert headers["Authorization"] == "Bearer abc"
48
- assert headers["User-Agent"].startswith("capawesome-cloud-python/")
48
+ assert headers["User-Agent"] == f"capawesome-cloud-python/{__version__}"
49
+ assert headers["X-Capawesome-Client"] == f"cloud-python/{__version__}"
49
50
 
50
51
 
51
52
  def test_context_manager_closes() -> None:
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.2.2"
3
- }
@@ -1 +0,0 @@
1
- __version__ = "0.2.2" # x-release-please-version