ops 2.20.0 and ops-scenario 7.20.0 released: remove_revision, remote_model, config metadata, custom events in testing, pebble layer merging fixes in testing, and docs improvements

The Charm Tech team has just released version 2.20.0 of ops and 7.20.0 of ops-scenario!

It’s available from PyPI by using pip install ops, and pip install ops[testing], which will pick up the latest version. Upgrade by running pip install --upgrade ops.

This release of ops features a new remove_revision() convenience method to avoid working directly with revision numbers in secret-remove and secret-expired events. A new remote_model property has been added for Relation. The config metadata is now exposed in CharmMeta.

This ops-scenario release features the ability to emit custom events.

The Kubernetes charm tutorial is also now much more streamlined!

Read more in the full release notes on GitHub.

1 Like