Skip to content

Commit 536f0cc

Browse files
authored
fix(ci): update tested mysql-connector versions for 3.6 [backport #4929 to 0.61] (#4930)
## Description Backport of #4929 mysql-connector-python still ships a `py2.py3-none-any` Wheel even though the code is not compatible with Python versions older then Python 3.6. This means we `pip` will still try to install this version on older/unsupported versions.
1 parent 48d0015 commit 536f0cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

riotfile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,11 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
970970
pkgs={"mysql-connector-python": ["==8.0.5", "<8.0.24"]},
971971
),
972972
Venv(
973-
pys=select_pys(min_version="3.6", max_version="3.9"),
973+
pys=["3.6"],
974+
pkgs={"mysql-connector-python": ["==8.0.5", "<8.0.32"]},
975+
),
976+
Venv(
977+
pys=select_pys(min_version="3.7", max_version="3.9"),
974978
pkgs={"mysql-connector-python": ["==8.0.5", ">=8.0", latest]},
975979
),
976980
Venv(
@@ -1093,7 +1097,8 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
10931097
pkgs={
10941098
"sqlalchemy": ["~=1.0.0", "~=1.1.0", "~=1.2.0", "~=1.3.0", latest],
10951099
"psycopg2-binary": latest,
1096-
"mysql-connector-python": latest,
1100+
# 8.0.32 dropped 3.6 support, but is still installable by 3.6
1101+
"mysql-connector-python": "<8.0.32",
10971102
},
10981103
),
10991104
Venv(

0 commit comments

Comments
 (0)