mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-02-04 02:03:32 +00:00
feat: update to python 3.13
This commit is contained in:
@@ -1 +1 @@
|
||||
3.12
|
||||
3.13
|
||||
|
||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -27,6 +27,7 @@
|
||||
"PYPI",
|
||||
"pyproject",
|
||||
"streamable",
|
||||
"trixie",
|
||||
"uvicorn",
|
||||
"venv"
|
||||
]
|
||||
|
||||
@@ -2,7 +2,7 @@ ARG PYPI_MIRROR_URL=https://pypi.org/simple
|
||||
ARG DEBIAN_MIRROR=deb.debian.org
|
||||
|
||||
# Base stage
|
||||
FROM python:3.12-bookworm AS deps
|
||||
FROM python:3.13-trixie AS deps
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG PYPI_MIRROR_URL
|
||||
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
|
||||
|
||||
# Runner stage
|
||||
FROM python:3.12-slim-bookworm AS runner
|
||||
FROM python:3.13-slim-trixie AS runner
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG DEBIAN_MIRROR
|
||||
ARG PYPI_MIRROR_URL
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
[project]
|
||||
name = "mcp-template-python"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
description = "MCP Template for Python Projects"
|
||||
readme = "README.md"
|
||||
authors = []
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"click>=8.0.0",
|
||||
"fastapi-radar>=0.2.0",
|
||||
"fastapi[standard]>=0.115.0",
|
||||
"mcp[cli]>=1.10.0",
|
||||
"pydantic>=2.11.7",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
__version__ = "0.1.2"
|
||||
__version__ = "0.1.4"
|
||||
__module_name__ = "mcp_template_python"
|
||||
|
||||
@@ -2,7 +2,6 @@ import contextlib
|
||||
|
||||
from fastapi import FastAPI, Response
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi_radar import Radar
|
||||
|
||||
from .__about__ import __version__
|
||||
from .app import MCP_MAP
|
||||
@@ -33,9 +32,6 @@ app.add_middleware(
|
||||
allow_headers=settings.cors.allow_headers.split(","),
|
||||
)
|
||||
|
||||
radar = Radar(app)
|
||||
radar.create_tables()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
|
||||
Reference in New Issue
Block a user