Files
sunbeam-charms/charms/sunbeam-clusterd/charmcraft.yaml
Lucian Petrut d8094c2a11 Update dependencies
"cryptography" and "pydantic" depend on "maturin",
which fails to install from source.

"cryptography" was already added to the "charm-binary-python-packages"
list, allowing prebuilt packages to be used. However, our uv.lock
files contain a slightly older version so charmcraft attempts to
install it from source and fails:

  ModuleNotFoundError: No module named 'puccinialin'

This patch will fix the build failures by:

* updating the uv.lock files (tox -e lock)
* adding pydantic to the list of binary packages

Cryptography 44.0.2 currently fails to install:
https://pastebin.canonical.com/p/Z4ZZhqWwtV/plain/

Change-Id: Ibfe555df7f72b867ad92c3bb00bb6fa576d7b0fc
2025-06-10 13:52:25 +00:00

58 lines
1.1 KiB
YAML

type: charm
title: Sunbeam Clusterd
name: sunbeam-clusterd
summary: A juju charm to run sunbeam clusterd
description: |
Manage sunbeam clusterd deployment
base: ubuntu@24.04
platforms:
amd64:
config:
options:
snap-channel:
default: 2025.1/edge
type: string
debug:
default: false
type: boolean
actions:
get-credentials:
description: |
Return information necessary to connect to clusterd.
requires:
certificates:
interface: tls-certificates
optional: true
tracing:
interface: tracing
optional: true
limit: 1
peers:
peers:
interface: clusterd-peer
parts:
charm:
build-packages:
- git
- libffi-dev
- libssl-dev
- pkg-config
- rustc-1.80
- cargo-1.80
charm-binary-python-packages:
- cryptography
- jsonschema
- jinja2
- pydantic
build-snaps: [astral-uv]
override-build: |
uv export --frozen --no-hashes --format=requirements-txt -o requirements.txt
craftctl default
charm-requirements: [requirements.txt]