Skip to content

Commit 29753e6

Browse files
authored
build(deps): pin mysql-connector-python per Python version (#123)
1 parent 6838657 commit 29753e6

4 files changed

Lines changed: 1026 additions & 778 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919

2020
# Ruff replaces black, flake8, autoflake and isort
2121
- repo: https://github.com/charliermarsh/ruff-pre-commit
22-
rev: "v0.15.9" # make sure this is always consistent with hatch configs
22+
rev: "v0.15.12" # make sure this is always consistent with hatch configs
2323
hooks:
2424
- id: ruff
2525
args: [--config, ./pyproject.toml]

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ test = [
126126
"pytest-click",
127127
"pytest-xdist",
128128
"pytest-sugar",
129-
"mysql-connector-python",
129+
# mysql-connector-python's wheel coverage degrades unpredictably each release:
130+
# 3.9: 9.4.x is the last release with cp39 wheels
131+
# 3.10+: 9.6.x is the latest release with full Linux/macOS/Windows coverage
132+
# (9.7.0 dropped Linux/Windows for cp311 and dropped cp312/cp313 entirely)
133+
# Lower bounds force uv to fork the resolution per-interpreter - without them
134+
# a single 9.4.0 satisfies every marker and gets locked universally.
135+
"mysql-connector-python<9.5; python_version < '3.10'",
136+
"mysql-connector-python>=9.6,<9.7; python_version >= '3.10'",
130137
"mariadb",
131138
]
132139

src/pytest_databases/docker/dolt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import time
66
from dataclasses import dataclass
7-
from typing import TYPE_CHECKING, Any
7+
from typing import TYPE_CHECKING
88

99
import pytest
1010

0 commit comments

Comments
 (0)