From 9c345f0c6c110879ff7018c5c4039d5aa135f89f Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Tue, 5 Mar 2024 10:17:58 +1100 Subject: [PATCH] chore(v3): add warning on pact.v3 import As the `pact.v3` module is still a work in progress, importing it raises a warning. Signed-off-by: JP-Ellis --- src/pact/v3/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pact/v3/__init__.py b/src/pact/v3/__init__.py index 137cba447..20701bd7f 100644 --- a/src/pact/v3/__init__.py +++ b/src/pact/v3/__init__.py @@ -20,8 +20,17 @@ considered deprecated, and will be removed in a future release. """ +import warnings + from pact.v3.pact import Pact __all__ = [ "Pact", ] + +warnings.warn( + "The `pact.v3` module is not yet stable. Use at your own risk, and expect " + "breaking changes in future releases.", + stacklevel=2, + category=ImportWarning, +)