Skip to content

2.1.0

Compare
Choose a tag to compare
@benhoyt benhoyt released this 28 Feb 23:23
· 163 commits to main since this release
34e5dfb

This is version 2.1.0 of ops, which includes the following changes:

Open-port support

We added Pythonic APIs to interface to the open-port, close-port, and opened-ports hook tools in PR #905. This allows charms to ask Juju to open ports in VM charms and in K8s sidecar charms (with some issues in the latter being fixed in juju/juju#15225). See the Unit.open_port() API reference.

Other minor changes

  • Use f-strings (almost) everywhere (#889)
  • Un-vendor websocket library (#891) -- thanks @tinvaan
  • A few minor tweaks now that we're on Python 3.8 (#890)
  • Define all dependences in requirements files (#894) -- thanks @tinvaan
  • Make testing pull() raise pebble.PathError and improve docs (#897)
  • Don't call secret-info-get with both ID and label (#900)
  • Add ops.lib deprecation notice (#901)
  • Add debug logging for custom events (#843) -- thanks @PietroPasotti
  • Replace "# type: T" comments with proper variable type annotations (#904)

View the full list of commits between 2.0.0 and 2.1.0.