Skip to main content

(deprecated) Temporary compatibility wrapper to use ST124 shorthand notation with older versions of charmcraft 3 that don't support ST124

Project description

charmcraftst124

[!CAUTION] This project is deprecated. Use charmcraft >=3.3.0 instead

Pack multi-base charms (that include base Ubuntu 24.04) with a single charmcraft.yaml and git branch using the upcoming ST124 - Multi-base platforms in craft tools "shorthand notation" charmcraft.yaml syntax

Installation

Install pipx: https://pipx.pypa.io/stable/installation/

pipx install charmcraftst124

Usage

Step 1: Update charmcraft.yaml to supported syntax

Only ST124 "shorthand notation" syntax is supported

Example

platforms:
  ubuntu@22.04:amd64:
  ubuntu@22.04:arm64:
  ubuntu@24.04:amd64:
  ubuntu@24.04:arm64:

Under the platforms key, build-on and build-for syntax are not supported

The base and bases keys are not supported

Step 2: Pack platform

charmcraftst124 pack --platform ubuntu@22.04:amd64

See charmcraftst124 pack --help for more information

To pack multiple platforms, run charmcraftst124 pack once for each platform

Why is only "shorthand notation" syntax supported?

"Shorthand notation" is used when build-on is identical to build-for. (For example, "ubuntu@22.04:amd64" means build on Ubuntu 22.04 amd64 and build for Ubuntu 22.04 amd64.)

For charms that depend (directly or indirectly) on Python packages with C extensions (e.g. pyyaml), charmcraft will build wheels where the C extensions only work on build-on.

For example, if a charm is built with

platforms:
  foo:
    build-on: ubuntu@22.04:amd64
    build-for:
      - ubuntu@22.04:amd64
      - ubuntu@22.04:arm64

the wheels in the *.charm file will contain C extensions that only work on amd64, not arm64.

The vast majority of charms have at least one Python dependency with C extensions, so the vast majority of charms should use "shorthand notation".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charmcraftst124-0.1.10.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

charmcraftst124-0.1.10-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file charmcraftst124-0.1.10.tar.gz.

File metadata

  • Download URL: charmcraftst124-0.1.10.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for charmcraftst124-0.1.10.tar.gz
Algorithm Hash digest
SHA256 98ef2ae21f3df816a934cf1004d521fa0227299d7db36d78bbac8e0e43dbc59e
MD5 9c8b8638399797daa94115287507e51a
BLAKE2b-256 e1ceca60888818330015b0e83c2b49c41e3638c3911e533d1cd17e7daf5275b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for charmcraftst124-0.1.10.tar.gz:

Publisher: publish.yaml on canonical/charmcraftst124

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file charmcraftst124-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for charmcraftst124-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 11587211e2033496a1e941a9f8dd02662a412f58d99075240351afcfdc2cf913
MD5 fec216e4bb8d5c080a74ee0d8530bd5a
BLAKE2b-256 95a61d5801d1c05d27a75b4ba25f9c2c8cf23c62830a16d7dc45c05a5eb51576

See more details on using hashes here.

Provenance

The following attestation bundles were made for charmcraftst124-0.1.10-py3-none-any.whl:

Publisher: publish.yaml on canonical/charmcraftst124

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page