From 28b7651f2a80b5631c53483553283e9c63bdfaed Mon Sep 17 00:00:00 2001 From: "pact-foundation[bot]" <289648111+pact-foundation[bot]@users.noreply.github.com> Date: Fri, 23 Oct 2026 00:42:59 +0000 Subject: [PATCH] chore(release): pact-python v4.2.0 --- CHANGELOG.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7139124d..f896c2d55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,58 @@ All notable changes to this project will be documented in this file. +## [pact-python/4.2.0] _2026-10-23_ + +### ๐Ÿš€ Features + +- Route Pact library and plugin logs through logging +- Initialise Pact logging from Pact and Verifier +- Set the default Pact log forwarding level +- Replace pact_ffi logger set-up with a warning +- Name Pact library loggers with dotted module paths +- Scope the Pact test run ID to each pytest test +- Add a unittest mixin for Pact logs +- Expose buffered plugin log entries +- _(ffi)_ Build abi3t wheels for free-threaded Python + +### ๐Ÿ› Bug Fixes + +- Forward the Pact library at the level of pact.ffi alone +- Restore the pytest run ID after a unittest test case +- _(ci)_ Tag the merged release commit +- _(ci)_ Keep PR merge runs out of the main release group + +### โšก๏ธ Performance + +- Defer loading the Pact FFI until Pact is used + +### ๐Ÿ“š Documentation + +- Describe logging through the standard logging module +- Describe log_id during provider verification +- Describe the pytest plugin and unittest mixin +- Colour terminal output in code blocks +- Add a blog post on Pact logs in test output + +### ๐Ÿงช Testing + +- Cover Pact library log forwarding end to end +- Cover plugin log forwarding end to end +- Cover forwarding alongside an externally applied logger +- Cover the lazy attributes of pact +- Run the suites on free-threaded Python 3.15 +- Import testcontainers only when starting a broker + +### ๐Ÿ› ๏ธ Miscellaneous Tasks + +- _(ffi)_ Download pact_ffi from the dist-built release +- Require pact-python-ffi 0.5.12 +- _(ci)_ Stop release runs on main being dropped + +### Contributors + +- @JP-Ellis + ## [pact-python/4.1.0] _2026-10-16_ ### ๐Ÿš€ Features diff --git a/pyproject.toml b/pyproject.toml index 559d6a783..cccf656ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [project] name = "pact-python" -version = "4.1.0" +version = "4.2.0" description = "Tool for creating and verifying consumer-driven contracts using the Pact framework." readme = "README.md" license = { file = "LICENSE" }