From f782b0ca53b2353011ebc517302f1509690040ee Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Fri, 15 May 2026 17:13:29 -0500 Subject: build: migrate Dockerfile + plugin_python from pip/poetry to uv Dockerfile: drop apt python3/python3-pip, copy the uv static binary from ghcr.io/astral-sh/uv:latest, install python-build-standalone via `uv python install` (replacing the manual curl), run aqtinstall via `uv tool run`, install build-time packages via `uv pip install --system --break-system-packages --python ...`. Same swap applied to the CI workflow's inline package-install step. plugin_python: convert pyproject.toml from [tool.poetry] to PEP 621 [project] + [dependency-groups], drop poetry.lock, replace abatilo/actions-poetry + `poetry install/run` with astral-sh/setup-uv + `uv sync/run` in libs/plugin_python/.github/workflows/linting.yml. Co-Authored-By: Claude Opus 4.7 (1M context) --- libs/plugin_python/pyproject.toml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'libs/plugin_python/pyproject.toml') diff --git a/libs/plugin_python/pyproject.toml b/libs/plugin_python/pyproject.toml index 71bb9df..b93d584 100644 --- a/libs/plugin_python/pyproject.toml +++ b/libs/plugin_python/pyproject.toml @@ -1,20 +1,23 @@ -[tool.poetry] +[project] name = "modorganizer-plugin_python" version = "3.0.0" description = "" -authors = ["Mikaël Capelle "] - -[tool.poetry.dependencies] -python = "^3.12" - -[tool.poetry.group.dev.dependencies] -pyright = "^1.1.369" -ruff = "^0.2.1" -poethepoet = "^0.23.0" -mobase-stubs = { version = "^2.5.1a0", allow-prereleases = true } -pyqt6 = "^6.7.0" -pytest = "^8.2.2" -pybind11-stubgen = "^2.5.1" +authors = [{ name = "Mikaël Capelle", email = "capelle.mikael@gmail.com" }] +requires-python = ">=3.12,<3.13" + +[dependency-groups] +dev = [ + "pyright>=1.1.369,<2", + "ruff>=0.2.1,<1", + "poethepoet>=0.23.0,<1", + "mobase-stubs>=2.5.1a0", + "pyqt6>=6.7.0,<7", + "pytest>=8.2.2,<9", + "pybind11-stubgen>=2.5.1,<3", +] + +[tool.uv] +prerelease = "allow" [tool.poe.tasks] format-imports = "ruff check --select I tests typings --fix" -- cgit v1.3.1