ops library 2.8.0 released: Unit.reboot, RelationMeta.optional, and type-checked tests

The Charm Tech team has just released version 2.8.0 of ops.

In addition to smaller improvements to docs, and tests, there’s one new feature in ops.Unit:

  • We’ve added a new reboot() method that allows rebooting a machine (not applicable for K8s charms). Implemented in PR 1041.

We’ve also fixed a couple of small bugs:

  • push_path and pull_path now include empty directories - PR 1024
  • collected statuses are reset in Harness.evaluate_status - PR 1048

It’s available from PyPI by using pip install ops, which should pick up the latest version (pin with ops==2.8.0 if you want to pin to a specific version).

Read more in the full release notes on GitHub.