Skip to content

Commit

Permalink
fix(ci): pin pynamodb to 5.2.3 (#4370) (#4373)
Browse files Browse the repository at this point in the history
* Pinned pynamodb to latest (5.2.3) to avoid boto3 breaking change

* Pin botocore instead, separate into tests for pynamodb 4.x and 5.x

(cherry picked from commit cc8e1bf)

Co-authored-by: Yun Kim <[email protected]>
  • Loading branch information
mergify[bot] and Yun-Kim authored Oct 26, 2022
1 parent c41a51f commit 697c05b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions riotfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,14 +988,34 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
Venv(
name="pynamodb",
command="pytest {cmdargs} tests/contrib/pynamodb",
pkgs={
"pynamodb": [">=4.0,<4.1", ">=4.1,<4.2", ">=4.2,<4.3", ">=4.3,<4.4", latest],
},
venvs=[
Venv(pys=select_pys(min_version="3.5"), pkgs={"moto": ">=1.0,<2.0"}),
Venv(
pys=select_pys(min_version="3.7"),
pkgs={
# pynamodb==4.x breaks with botocore>=1.28 and python>=3.7
"pynamodb": [">=4.0,<4.1", ">=4.1,<4.2", ">=4.2,<4.3", ">=4.3,<4.4"],
"moto": ">=1.0,<2.0",
"botocore": "==1.27.96",
},
),
Venv(
pys=select_pys(min_version="3.7"),
pkgs={
"pynamodb": [latest],
"moto": ">=1.0,<2.0",
},
),
Venv(
pys=select_pys(min_version="3.5", max_version="3.6"),
pkgs={
"pynamodb": [">=4.0,<4.1", ">=4.1,<4.2", ">=4.2,<4.3", ">=4.3,<4.4", latest],
"moto": ">=1.0,<2.0",
},
),
Venv(
pys=["2.7"],
pkgs={
"pynamodb": [">=4.0,<4.1", ">=4.1,<4.2", ">=4.2,<4.3", ">=4.3,<4.4", latest],
"moto": ">=1.0,<2.0",
"rsa": "<4.7.1",
},
Expand Down

0 comments on commit 697c05b

Please sign in to comment.