Skip to content

Commit 14a1628

Browse files
committed
fix: pin mysql-connector-python version and update classifiers in pyproject.toml
1 parent eb27d52 commit 14a1628

File tree

3 files changed

+60
-26
lines changed

3 files changed

+60
-26
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ upgrade: ## Upgrade all dependencies
7878
@echo "${OK} Dependencies updated 🔄"
7979
@uv run pre-commit autoupdate
8080
@echo "${OK} Updated Pre-commit hooks 🔄"
81+
@uv lock >/dev/null 2>&1
82+
@echo ""
83+
@echo "${WARN} mysql-connector-python is pinned via [tool.uv] exclude-newer-package in pyproject.toml"
84+
@echo "${INFO} Check https://pypi.org/project/mysql-connector-python/#files for Python 3.12+ wheels."
85+
@echo "${INFO} Once Oracle fixes their packaging, remove the constraint from pyproject.toml."
8186

8287
.PHONY: lock
8388
lock: ## Rebuild lockfiles from scratch

pyproject.toml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
[project]
22
authors = [{ name = "Cody Fincher", email = "[email protected]" }]
3+
classifiers = [
4+
"Development Status :: 5 - Production/Stable",
5+
"Programming Language :: Python :: 3",
6+
"Programming Language :: Python :: 3.10",
7+
"Programming Language :: Python :: 3.11",
8+
"Programming Language :: Python :: 3.12",
9+
"Programming Language :: Python :: 3.13",
10+
"Programming Language :: Python :: 3.14",
11+
"Programming Language :: Python :: 3 :: Only",
12+
"Typing :: Typed",
13+
]
314
dependencies = [
415
"typing-extensions",
516
"sqlglot>=19.9.0",
@@ -14,17 +25,6 @@ name = "sqlspec"
1425
readme = "README.md"
1526
requires-python = ">=3.10, <4.0"
1627
version = "0.38.1"
17-
classifiers = [
18-
"Development Status :: 5 - Production/Stable",
19-
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.10",
21-
"Programming Language :: Python :: 3.11",
22-
"Programming Language :: Python :: 3.12",
23-
"Programming Language :: Python :: 3.13",
24-
"Programming Language :: Python :: 3.14",
25-
"Programming Language :: Python :: 3 :: Only",
26-
"Typing :: Typed",
27-
]
2828

2929
[project.urls]
3030
Discord = "https://discord.gg/litestar"
@@ -148,6 +148,12 @@ test = [
148148
"pytest-timeout>=2.3.1",
149149
]
150150

151+
[tool.uv]
152+
# NOTE: mysql-connector-python 9.6.0 (released 2026-01-21) removed Python 3.12+ wheels.
153+
# This is an Oracle packaging bug. Pinning to versions before that date until fixed.
154+
# Check https://pypi.org/project/mysql-connector-python/#files for updates.
155+
exclude-newer-package = { mysql-connector-python = "2026-01-20" }
156+
151157
[project.scripts]
152158
sqlspec = "sqlspec.__main__:run_cli"
153159

uv.lock

Lines changed: 38 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)