capawesome-cloud 0.2.1__tar.gz → 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.
Files changed (61) hide show
  1. capawesome_cloud-0.3.0/.github/dependabot.yml +10 -0
  2. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.github/workflows/ci.yml +8 -8
  3. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.github/workflows/release.yml +6 -6
  4. capawesome_cloud-0.3.0/.release-please-manifest.json +3 -0
  5. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/BREAKING.md +7 -0
  6. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/CHANGELOG.md +18 -0
  7. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/PKG-INFO +3 -4
  8. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/README.md +1 -1
  9. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/examples/README.md +1 -1
  10. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/pyproject.toml +3 -6
  11. capawesome_cloud-0.3.0/src/capawesome_cloud/_version.py +1 -0
  12. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/models.py +1 -0
  13. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/automations.py +12 -3
  14. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_resources.py +23 -0
  15. capawesome_cloud-0.2.1/.release-please-manifest.json +0 -3
  16. capawesome_cloud-0.2.1/src/capawesome_cloud/_version.py +0 -1
  17. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  18. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  19. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  20. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/.gitignore +0 -0
  21. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/LICENSE +0 -0
  22. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/examples/error_handling.py +0 -0
  23. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/examples/list_apps.py +0 -0
  24. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/examples/manage_live_updates.py +0 -0
  25. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/examples/trigger_native_build.py +0 -0
  26. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/release-please-config.json +0 -0
  27. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/__init__.py +0 -0
  28. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/_http.py +0 -0
  29. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/_types.py +0 -0
  30. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/client.py +0 -0
  31. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/exceptions.py +0 -0
  32. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/pagination.py +0 -0
  33. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/py.typed +0 -0
  34. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/__init__.py +0 -0
  35. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/_base.py +0 -0
  36. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/apps.py +0 -0
  37. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/build_sources.py +0 -0
  38. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/builds.py +0 -0
  39. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/certificates.py +0 -0
  40. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/channels.py +0 -0
  41. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/configurations.py +0 -0
  42. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/deployments.py +0 -0
  43. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/destinations.py +0 -0
  44. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/devices.py +0 -0
  45. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/environments.py +0 -0
  46. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/git_connections.py +0 -0
  47. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/invitations.py +0 -0
  48. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/jobs.py +0 -0
  49. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/license_keys.py +0 -0
  50. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/members.py +0 -0
  51. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/organizations.py +0 -0
  52. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/repository.py +0 -0
  53. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/teams.py +0 -0
  54. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/users.py +0 -0
  55. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/src/capawesome_cloud/resources/webhooks.py +0 -0
  56. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/conftest.py +0 -0
  57. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_client.py +0 -0
  58. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_errors_and_retries.py +0 -0
  59. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_jobs.py +0 -0
  60. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_organizations.py +0 -0
  61. {capawesome_cloud-0.2.1 → capawesome_cloud-0.3.0}/tests/test_pagination.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.0"
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.0](https://github.com/capawesome-team/cloud-python/compare/v0.2.2...v0.3.0) (2026-10-23)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * drop support for Python 3.9 ([#13](https://github.com/capawesome-team/cloud-python/issues/13))
9
+
10
+ ### Miscellaneous Chores
11
+
12
+ * 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))
13
+
14
+ ## [0.2.2](https://github.com/capawesome-team/cloud-python/compare/v0.2.1...v0.2.2) (2026-10-04)
15
+
16
+
17
+ ### Features
18
+
19
+ * **automations:** support multiple channels ([#10](https://github.com/capawesome-team/cloud-python/issues/10)) ([2448cea](https://github.com/capawesome-team/cloud-python/commit/2448cea1ad1fd74a7cab8aaf83cfdd95da11a297))
20
+
3
21
  ## [0.2.1](https://github.com/capawesome-team/cloud-python/compare/v0.2.0...v0.2.1) (2026-10-01)
4
22
 
5
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: capawesome-cloud
3
- Version: 0.2.1
3
+ Version: 0.3.0
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
@@ -0,0 +1 @@
1
+ __version__ = "0.3.0" # x-release-please-version
@@ -195,6 +195,7 @@ class AppAutomation(CapawesomeModel):
195
195
  platform: Optional[str] = None
196
196
  trigger_type: Optional[str] = None
197
197
  enabled: Optional[bool] = None
198
+ app_channel_ids: Optional[list[str]] = None
198
199
  app_id: Optional[str] = None
199
200
  created_at: Optional[datetime] = None
200
201
  updated_at: Optional[datetime] = None
@@ -21,7 +21,9 @@ _WRITE_FIELDS = {
21
21
  "app_certificate_id": "appCertificateId",
22
22
  "app_certificate_name": "appCertificateName",
23
23
  "app_channel_id": "appChannelId",
24
+ "app_channel_ids": "appChannelIds",
24
25
  "app_channel_name": "appChannelName",
26
+ "app_channel_names": "appChannelNames",
25
27
  "app_configuration_id": "appConfigurationId",
26
28
  "app_configuration_name": "appConfigurationName",
27
29
  "app_destination_id": "appDestinationId",
@@ -42,8 +44,12 @@ class AutomationsResource(BaseResource):
42
44
 
43
45
  ``name`` and ``trigger_type`` (``branch`` or ``tag``) are required. Provide
44
46
  further fields by their snake_case names (e.g. ``platform``,
45
- ``trigger_pattern``, ``app_channel_id``). Resources can also be referenced
46
- by name (e.g. ``app_channel_name``); ids take precedence.
47
+ ``trigger_pattern``, ``app_channel_ids``). Resources can also be referenced
48
+ by name (e.g. ``app_channel_names``); ids take precedence.
49
+
50
+ Web builds are deployed to the channels in ``app_channel_ids`` (or
51
+ ``app_channel_names``) after they succeed; ``app_channel_id`` and
52
+ ``app_channel_name`` are deprecated.
47
53
  """
48
54
  body = _map_write_fields({"name": name, "trigger_type": trigger_type, **fields})
49
55
  return self._request_model("POST", self._base(app_id), AppAutomation, json=body)
@@ -98,7 +104,10 @@ class AutomationsResource(BaseResource):
98
104
  )
99
105
 
100
106
  def update(self, app_id: str, automation_id: str, **fields: object) -> AppAutomation:
101
- """Update an automation. Provide fields by their snake_case names."""
107
+ """Update an automation. Provide fields by their snake_case names.
108
+
109
+ Omitted fields stay unchanged; pass ``app_channel_ids=[]`` to remove all channels.
110
+ """
102
111
  body = _map_write_fields(fields)
103
112
  return self._request_model(
104
113
  "PATCH", f"{self._base(app_id)}/{automation_id}", AppAutomation, json=body
@@ -126,6 +126,29 @@ def test_build_sends_channel_ids_as_list(client: CapawesomeCloud) -> None:
126
126
  assert route.calls.last.request.read() == b'{"appChannelIds":["ch1","ch2"]}'
127
127
 
128
128
 
129
+ @respx.mock
130
+ def test_automation_create_sends_channel_ids_and_parses(client: CapawesomeCloud) -> None:
131
+ route = respx.post(f"{BASE_URL}/v1/apps/app1/automations").mock(
132
+ return_value=httpx.Response(201, json={"id": "a1", "appChannelIds": ["ch1", "ch2"]})
133
+ )
134
+ automation = client.apps.automations.create(
135
+ "app1", name="Web", trigger_type="branch", app_channel_ids=["ch1", "ch2"]
136
+ )
137
+ assert route.calls.last.request.read() == (
138
+ b'{"name":"Web","triggerType":"branch","appChannelIds":["ch1","ch2"]}'
139
+ )
140
+ assert automation.app_channel_ids == ["ch1", "ch2"]
141
+
142
+
143
+ @respx.mock
144
+ def test_automation_update_clears_channels_with_empty_list(client: CapawesomeCloud) -> None:
145
+ route = respx.patch(f"{BASE_URL}/v1/apps/app1/automations/a1").mock(
146
+ return_value=httpx.Response(200, json={"id": "a1", "appChannelIds": []})
147
+ )
148
+ client.apps.automations.update("app1", "a1", app_channel_ids=[])
149
+ assert route.calls.last.request.read() == b'{"appChannelIds":[]}'
150
+
151
+
129
152
  @respx.mock
130
153
  def test_destination_create_sends_type_and_new_fields(client: CapawesomeCloud) -> None:
131
154
  route = respx.post(f"{BASE_URL}/v1/apps/app1/destinations").mock(
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.2.1"
3
- }
@@ -1 +0,0 @@
1
- __version__ = "0.2.1" # x-release-please-version