ops library 2.7.0 released: Unit.set_ports, and minor doc, test, and CI improvements

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

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

  • We’ve added a new set_ports() method that allows you to manage which ports are open in a more declarative style than the older open_port() and close_port() methods. We recommend that you use set_ports() for port management going forward. Implemented in PR 1005.

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

Read more in the full release notes on GitHub.