Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 16, 2024

This PR contains the following updates:

Package Change Age Confidence
ops (changelog) 2.23.1 -> 3.3.1 age confidence
ops (changelog) ^2.23.1 -> ^3.3.1 age confidence
pydantic (changelog) ^1.10.22, <2 -> ^2.12.4, <3 age confidence
pytest (changelog) ^8.4.1 -> ^9.0.1 age confidence

Release Notes

canonical/operator (ops)

v3.3.1: : fix loading the Juju machine ID

Compare Source

This is a bug-fix release to fix an issue introduced in Ops 3.3.0 (in production) and Ops 3.2.0 (in testing), where loading the Juju machine ID would fail if the ID was not an integer.

The type of the machine ID (both in ops.JujuContext and testing.Context) is changed from int to str, so some code or tests may need to be adjusted to use the correct type.

What's Changed
Fixes
  • Change JujuContext.machine_id from int to str (#​2108)

Full Changelog: canonical/operator@3.3.0...3.3.1

v3.3.0

Compare Source

Features

  • Expose the Juju hook context in ops.JujuContext (#​1996)

Fixes

  • In testing, separate relation data cache from mock Juju backend (#​2052)

Documentation

  • Use uv for testing and packing the httpbin charm (#​2011)
  • Improve intro to ops.testing reference (#​2023)
  • In httpbin charm integration tests, add env var for charm file to deploy (#​2018)
  • Update get_cloud_spec doc now that credential-get works on K8s (#​2031)
  • Note that arbitrary_types_allowed is required when ops.Secret is used in a Pydantic class (#​2038)
  • Clean up Resources.fetch docstring, add ModelError exception (#​2039)
  • Note that the peer databag isn't usable during the install event (#​2051)
  • Fix testing code in actions how-to guide (#​2054)

CI

  • Nicer logging output in the release script using rich (#​2017)
  • Clean up PYTHONPATH in tox.ini (#​2058)

v3.2.0

Compare Source

Features

  • Add security event logging (#​1905)
  • Surface JUJU_MACHINE_ID envvar in testing env (#​1961)
  • Add a new log target type opentelemetry (#​1937)

Documentation

  • Update links and config for switch to documentation.ubuntu.com/ops (#​1940)
  • Update the required Python version and note the 2.x documentation site (#​1946)
  • Be consistent with recommending self.config (#​1947)
  • Use latest styles from starter pack and remove .html extensions (#​1951)
  • Remove .html extensions from hardcoded links (#​1955)
  • Fix broken URLs in sitemap (#​1956)
  • Add related doc links to homepage (#​1959)
  • Use classes from ops instead of ops. (#​1968)
  • Fix unstyled error pages (#​1969)
  • Add Google Analyics integration and cookie consent banner (#​1971)
  • Refresh docs homepage with more context about Ops (#​1964)
  • Update link to Charmlibs docs (#​1985)
  • Remove unnecessary pages from sitemap (#​1979)
  • Update the httpbin example charm to Jubilant (#​1987)
  • Update the Zero to Hero tutorial to Jubilant (#​1988)
  • Add model-config best practice note (#​1990)
  • Change some best practices to tips (#​2001)
  • Add integration test for invalid config in httpbin charm (#​2002)
  • Make a Layer instead of a LayerDict in the httpbin charm (#​2003)
  • Update how-to to feature Jubilant (#​2000, #​2004)
  • Use Charmcraft-style format and lint for example charms, not Ops-style (#​2008)
  • Update broken link to HookVars source code (#​2006)

CI

  • Fixes for the SBOM and security scan workflow, and trigger it on publishing (#​1916)
  • Store the charmcraft logs if packing fails (#​1936)
  • Install release dependencies for the TIOBE analysis (#​1930)
  • Add Juju 4/beta to the smoke test matrix (#​1963)
  • Adjust permissions block in publish workflow (#​1984)
  • Update actions/checkout to v5 (#​1993)
  • Enable doctests (#​1991)
  • Ignore juju/4 timeouts (#​1998)
  • Remove the token for SBOM and security scan workflow (#​2009)
  • Speed up integration test (#​1978)

v3.1.0

Compare Source

Features

  • Release automation script (#​1855)
  • Add app_name and unit_id attributes to testing.context (#​1920)

Fixes

  • If an event ends with _abort(0) tests should behave as if it ended successfully (#​1887)
  • If self.app is not actually set avoid a new crash location (#​1897)
  • Only add the remote unit for departed and broken relation events, fix ordering (#​1918)
  • Add the remote unit to relation.data but not relation.units (#​1925)

Documentation

  • Use load_config in the httpbin example charm (#​1852)
  • Update HACKING.md with how to bump ops version in Charmcraft profiles (#​1872)
  • Change title of docs site (#​1890)
  • Use config and action classes in the Kubernetes tutorial (#​1891)
  • Reference example charms from K8s tutorial and fix consistency (#​1898)
  • Update style guide (#​1720)
  • Fix issues in how-to guide for stored state (#​1901)
  • Link out to the 12-factor tutorials from the tutorial index page (#​1902)
  • Replace broken link in testing explanation (#​1913)
  • Expand the storage how-to with content from Juju docs scheduled for removal (#​1915)
  • Ops tracing how to (#​1853)
  • Add a security explanation doc (#​1904)

Tests

  • Replace Python version to 3.10 for observability charm tests (#​1914)

CI

  • Use httpbin demo charm for the Charmcraft pack test (#​1895)
  • Move TIOBE workflow to self-hosted runners (#​1912)
  • Add SBOM generation and secscan workflow (#​1906)
  • Build and publish in one step (#​1857)
  • Update the name and email when updating the charm pins (#​1924)
  • Drop smoke test against 20.04 (#​1923)

v3.0.0

Compare Source

The minimum version of Python for Ops 3.x is 3.10.

Documentation

  • Be consistent with recommending self.app and self.unit (#​1856)

CI

  • Hotfix, publish job for ops-tracing (#​1865)
pydantic/pydantic (pydantic)

v2.12.4

Compare Source

v2.12.3

Compare Source

GitHub release

What's Changed

This is the third 2.13 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported
after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #​12414.
    Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided
    to emit a deprecation warning instead.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #​12411.
    This also add back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still
    not a supported pattern. Instead, please refer to the added example in the documentation.

The blog post section on changes was also updated to document the changes related to serialize_as_any.

v2.12.2

Compare Source

GitHub release

What's Changed
Fixes
  • Release a new pydantic-core version, as a corrupted CPython 3.10 manylinux2014_aarch64 wheel got uploaded (pydantic-core#1843).
  • Fix issue with recursive generic models with a parent model class by @​Viicos in #​12398

v2.12.1

Compare Source

GitHub release

What's Changed

This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release.

Fixes
New Contributors

v2.12.0

Compare Source

GitHub release

What's Changed

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.

Note that Pydantic V1 is not compatible with Python 3.14 and greater.

Changes (see the alpha and beta releases for additional changes since 2.11):

Packaging
New Features
Fixes
New Contributors

v2.11.10

Compare Source

GitHub release

What's Changed
Fixes

v2.11.9

Compare Source

GitHub release

What's Changed
Fixes

v2.11.8

Compare Source

GitHub release

What's Changed
Fixes

v2.11.7

Compare Source

GitHub release

What's Changed
Fixes

v2.11.6

Compare Source

GitHub release

What's Changed
Fixes

v2.11.5

Compare Source

GitHub release

What's Changed
Fixes

v2.11.4

Compare Source

GitHub release

What's Changed
Packaging
Changes
  • Allow config and bases to be specified together in create_model() by @​Viicos in #​11714.
    This change was backported as it was previously possible (although not meant to be supported)
    to provide model_config as a field, which would make it possible to provide both configuration
    and bases.
Fixes

v2.11.3

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.11.2

Compare Source

GitHub release

What's Changed
Fixes

v2.11.1

Compare Source

GitHub release

What's Changed
Fixes

v2.11.0

Compare Source

GitHub release

What's Changed

Pydantic v2.11 is a version strongly focused on build time performance of Pydantic models (and core schema generation in general).
See the blog post for more details.

Packaging
New Features
Fixes
  • Allow generic typed dictionaries to be used for unpacked variadic keyword parameters by @​Viicos in #​11571
  • Fix runtime error when computing model string representation involving cached properties and self-referenced models by @​Viicos in #​11579
  • Preserve other steps when using the ellipsis in the pipeline API by @​Viicos in #​11626
  • Fix deferred discriminator application logic by @​Viicos in #​11591
New Contributors

v2.10.6

Compare Source

GitHub release

What's Changed
Fixes

v2.10.5

Compare Source

GitHub release

What's Changed
Fixes

v2.10.4

Compare Source

GitHub release

What's Changed
Packaging
Fixes
New Contributors

v2.10.3

Compare Source

GitHub release

What's Changed
Fixes

v2.10.2

Compare Source

GitHub release

What's Changed
Fixes

v2.10.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes
New Contributors

v2.10.0

Compare Source

The code released in v2.10.0 is practically identical to that of v2.10.0b2.

GitHub release

See the v2.10 release blog post for the highlights!

What's Changed
Packaging
New Features
Changes
Performance
Fixes

Configuration

📅 Schedule: Branch creation - Between 01:00 AM and 05:59 AM, only on Tuesday ( * 1-5 * * 2 ) in timezone Etc/UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from dragomirp and welpaolo October 16, 2024 01:26
@renovate
Copy link
Contributor Author

renovate bot commented Oct 16, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
Updating dependencies
Resolving dependencies...


Incompatible constraints in requirements of non-package-mode (0):
pydantic (>=2.12.4,<3.0.0)
pydantic (>=1.10,<2.0)

@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from d972b41 to 0913cdf Compare October 28, 2024 01:35
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 0913cdf to 3ba4a63 Compare November 8, 2024 01:42
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch 4 times, most recently from 3c0e7b1 to adf4d0d Compare November 28, 2024 01:18
@renovate renovate bot changed the title Update dependency pydantic to v2 Update Python dependencies (major) Nov 28, 2024
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from adf4d0d to 495ddcd Compare December 4, 2024 01:42
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 495ddcd to e0555ec Compare December 23, 2024 01:16
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from e0555ec to 0928a50 Compare January 13, 2025 02:48
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch 2 times, most recently from d6fbde9 to d35391b Compare February 3, 2025 02:32
@renovate renovate bot changed the title Update Python dependencies (major) Update dependency pydantic to v2 Feb 3, 2025
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from d35391b to a8390ad Compare February 10, 2025 02:45
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from a8390ad to 54a03ad Compare February 27, 2025 01:25
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 54a03ad to 95a4231 Compare March 11, 2025 01:23
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 95a4231 to 62e25cb Compare April 1, 2025 01:28
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 62e25cb to 52256b3 Compare April 8, 2025 01:03
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 52256b3 to 9711de1 Compare April 15, 2025 01:13
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 9711de1 to 206426e Compare April 29, 2025 01:06
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 206426e to fa881fa Compare May 6, 2025 04:59
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from fa881fa to bb48320 Compare May 27, 2025 04:40
@renovate renovate bot changed the title Update dependency pydantic to v2 Update Python dependencies (major) May 27, 2025
@renovate renovate bot changed the title Update Python dependencies (major) Update dependency pydantic to v2 Jun 3, 2025
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from bb48320 to c8d0649 Compare July 8, 2025 04:02
@renovate renovate bot changed the title Update dependency pydantic to v2 Update Python dependencies (major) Jul 8, 2025
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from c8d0649 to 751fef4 Compare August 5, 2025 02:46
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 751fef4 to bccde88 Compare August 19, 2025 03:15
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch 2 times, most recently from e021a64 to 80ed563 Compare September 2, 2025 02:07
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 80ed563 to 509de38 Compare September 16, 2025 02:15
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 509de38 to a2db1b5 Compare September 30, 2025 03:06
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch 2 times, most recently from e936e83 to 35b2167 Compare October 14, 2025 02:57
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 35b2167 to 8295cab Compare October 21, 2025 02:43
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 8295cab to 25c5ad2 Compare November 11, 2025 02:46
@renovate renovate bot force-pushed the renovate/major-python-dependencies branch from 25c5ad2 to cc15521 Compare November 18, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant