From f34d39ddfaf35c0bc189622b9dea61f902d0ff30 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Fri, 5 Jan 2024 14:42:12 +0800 Subject: [PATCH] setup: pin macaroonbakery<1.3.3 for python3.6 macaroonbakery in v1.3.4 added a constraint of protobuf>=3.20.0[0] which makes it incompatible with python 3.6 and v1.3.3 was released in a broken state[1]. --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 8b098ea..877aa27 100755 --- a/setup.py +++ b/setup.py @@ -47,6 +47,13 @@ 'pyyaml>=5.0,!=5.4.0,!=5.4.1,<6.0', 'requests>=2.0.0,<3.0.0', 'libcharmstore', + # macaroonbakery is pulled in by libcharmstore->theblues, v1.3.4 added + # a constraint of protobuf>=3.20.0[0] which makes it incompatible with + # python 3.6 while v1.3.3 was released in a broken state[1] + # + # [0] https://github.com/go-macaroon-bakery/py-macaroon-bakery/commit/7f1fe6a2adb2f80db12bccfb81f629d66d106e03 # noqa + # [1] https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/92 + 'macaroonbakery < 1.3.3;python_version < "3.7"', 'blessings', 'ruamel.yaml<0.16.0;python_version < "3.7"', 'pathspec<=0.3.4;python_version < "3.7"',