ops library 2.16.0 released: parsing all `JUJU_*` env vars in one place and other improvements

Hi there! The Charm Tech team has just released version 2.16.0 of ops!

It’s available from PyPI by using pip install ops, which will pick up the latest version. Upgrade by running pip install --upgrade ops, and pin with ops==2.16.0 if you want a specific version.

This release adds a private _JujuContext dataclass used to parse all JUJU_* environment variables in one place; besides, a significant amount of work has been done on tests, continuous integration and documentation. Read more in the full release notes on GitHub, and check out the latest ops library API reference docs here.

Happy charming!

2 Likes

FYI, we released 2.16.1 today, with one very small bug fix: 2.16’s Harness would insert JUJU_VERSION into os.environ, and if your tests were managing the environment themselves this could cause issues. 2.16.1 no longer does that. Apologies for the inconvenience!

1 Like