From e13164569318592be6a8c70e757a00d5dc5b1f73 Mon Sep 17 00:00:00 2001 From: Andrei Medvedev Date: Mon, 29 Jan 2024 14:31:27 +0200 Subject: [PATCH 1/2] Lock libs version --- requirements.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/requirements.txt b/requirements.txt index 697b6b3..c635ec4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,20 @@ +# moto[server] 5.0.0 +# +# breaks with +# Traceback (most recent call last): +# File "/usr/local/bin/sbx-mocks3-serve", line 5, in +# from shoobx.mocks3.run import serve +# File "/usr/local/lib/python3.11/site-packages/shoobx/mocks3/__init__.py", line 17, in +# from moto.backends import BACKENDS +# ImportError: cannot import name 'BACKENDS' from 'moto.backends' (/usr/local/lib/python3.11/site-packages/moto/backends.py) +# +# Moto v5 is incompatible with current mocks3 implementation + +moto[server]==4.2.14 + +boto3==1.34.29 +flask_cors==4.0.0 +pytz==2023.4 + # shoobx.mocks3 -e .[test] From d2a8c97374e412389e0eefe238951be5e86be501 Mon Sep 17 00:00:00 2001 From: Andrei Medvedev Date: Mon, 29 Jan 2024 15:03:30 +0200 Subject: [PATCH 2/2] Downgrade moto --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c635ec4..5f90436 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ # # Moto v5 is incompatible with current mocks3 implementation -moto[server]==4.2.14 +moto[server]==4.2.10 boto3==1.34.29 flask_cors==4.0.0