feat: update to python 3.13

This commit is contained in:
Sun-ZhenXing
2025-12-01 14:02:08 +08:00
parent 9c793622d7
commit 66b47a16bf
7 changed files with 578 additions and 583 deletions

View File

@@ -1 +1 @@
3.12 3.13

View File

@@ -27,6 +27,7 @@
"PYPI", "PYPI",
"pyproject", "pyproject",
"streamable", "streamable",
"trixie",
"uvicorn", "uvicorn",
"venv" "venv"
] ]

View File

@@ -2,7 +2,7 @@ ARG PYPI_MIRROR_URL=https://pypi.org/simple
ARG DEBIAN_MIRROR=deb.debian.org ARG DEBIAN_MIRROR=deb.debian.org
# Base stage # Base stage
FROM python:3.12-bookworm AS deps FROM python:3.13-trixie AS deps
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG PYPI_MIRROR_URL ARG PYPI_MIRROR_URL
WORKDIR /app WORKDIR /app
@@ -21,7 +21,7 @@ RUN --mount=type=cache,target=/root/.cache/uv,id=uv-cache,sharing=locked \
uv sync --no-dev --no-install-project uv sync --no-dev --no-install-project
# Runner stage # Runner stage
FROM python:3.12-slim-bookworm AS runner FROM python:3.13-slim-trixie AS runner
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG DEBIAN_MIRROR ARG DEBIAN_MIRROR
ARG PYPI_MIRROR_URL ARG PYPI_MIRROR_URL

View File

@@ -1,13 +1,12 @@
[project] [project]
name = "mcp-template-python" name = "mcp-template-python"
version = "0.1.3" version = "0.1.4"
description = "MCP Template for Python Projects" description = "MCP Template for Python Projects"
readme = "README.md" readme = "README.md"
authors = [] authors = []
requires-python = ">=3.10" requires-python = ">=3.10"
dependencies = [ dependencies = [
"click>=8.0.0", "click>=8.0.0",
"fastapi-radar>=0.2.0",
"fastapi[standard]>=0.115.0", "fastapi[standard]>=0.115.0",
"mcp[cli]>=1.10.0", "mcp[cli]>=1.10.0",
"pydantic>=2.11.7", "pydantic>=2.11.7",

View File

@@ -1,2 +1,2 @@
__version__ = "0.1.2" __version__ = "0.1.4"
__module_name__ = "mcp_template_python" __module_name__ = "mcp_template_python"

View File

@@ -2,7 +2,6 @@ import contextlib
from fastapi import FastAPI, Response from fastapi import FastAPI, Response
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from fastapi_radar import Radar
from .__about__ import __version__ from .__about__ import __version__
from .app import MCP_MAP from .app import MCP_MAP
@@ -33,9 +32,6 @@ app.add_middleware(
allow_headers=settings.cors.allow_headers.split(","), allow_headers=settings.cors.allow_headers.split(","),
) )
radar = Radar(app)
radar.create_tables()
@app.get("/") @app.get("/")
async def root(): async def root():

1145
uv.lock generated

File diff suppressed because it is too large Load Diff