Skip to content

Commit fee6ddd

Browse files
authored
fix(ci): update tested mysql-connector versions for 3.6 (#4929)
## Description 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 6a238f8 commit fee6ddd

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
@@ -1052,7 +1052,11 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
10521052
pkgs={"mysql-connector-python": ["==8.0.5", "<8.0.24"]},
10531053
),
10541054
Venv(
1055-
pys=select_pys(min_version="3.6", max_version="3.9"),
1055+
pys=["3.6"],
1056+
pkgs={"mysql-connector-python": ["==8.0.5", "<8.0.32"]},
1057+
),
1058+
Venv(
1059+
pys=select_pys(min_version="3.7", max_version="3.9"),
10561060
pkgs={"mysql-connector-python": ["==8.0.5", ">=8.0", latest]},
10571061
),
10581062
Venv(
@@ -1201,7 +1205,8 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
12011205
pkgs={
12021206
"sqlalchemy": ["~=1.0.0", "~=1.1.0", "~=1.2.0", "~=1.3.0", latest],
12031207
"psycopg2-binary": latest,
1204-
"mysql-connector-python": latest,
1208+
# 8.0.32 dropped 3.6 support, but is still installable by 3.6
1209+
"mysql-connector-python": "<8.0.32",
12051210
},
12061211
),
12071212
Venv(

0 commit comments

Comments
 (0)