Skip to content

Commit 70f1a80

Browse files
authored
chore: fix build with constraints (#406)
* chore: fix build with constraints * fix: disable cache
1 parent 7b0cc5a commit 70f1a80

File tree

5 files changed

+418
-421
lines changed

5 files changed

+418
-421
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ jobs:
155155
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
156156
with:
157157
path-to-charm-directory: ${{ matrix.path }}
158+
cache: false
158159

159160
integration-test:
160161
name: Integration test charm

charmcraft.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ parts:
5151
after:
5252
- poetry-deps
5353
poetry-export-extra-args: ['--only', 'main,charm-libs']
54+
build-environment:
55+
- PIP_CONSTRAINT: constraints.txt # Workaround for typing-extensions / pydantic-core incompatibility
5456
build-packages:
5557
- libffi-dev # Needed to build Python dependencies with Rust from source
5658
- libssl-dev # Needed to build Python dependencies with Rust from source

constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typing-extensions < 4.14; python_version >= "3.10"

0 commit comments

Comments
 (0)