diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-15 17:13:29 -0500 |
|---|---|---|
| committer | SulfurNitride <lukew19@proton.me> | 2026-05-16 12:57:25 -0500 |
| commit | f782b0ca53b2353011ebc517302f1509690040ee (patch) | |
| tree | 1f59a1b1e8eb74695a4a8756eb9c6e9cdea542f4 /libs/plugin_python/pyproject.toml | |
| parent | d55f61bd392d7e1e00dfbcb236aabfbe6f98589e (diff) | |
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) <noreply@anthropic.com>
Diffstat (limited to 'libs/plugin_python/pyproject.toml')
| -rw-r--r-- | libs/plugin_python/pyproject.toml | 27 |
1 files changed, 15 insertions, 12 deletions
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 <capelle.mikael@gmail.com>"] +authors = [{ name = "Mikaël Capelle", email = "capelle.mikael@gmail.com" }] +requires-python = ">=3.12,<3.13" -[tool.poetry.dependencies] -python = "^3.12" +[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.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" +[tool.uv] +prerelease = "allow" [tool.poe.tasks] format-imports = "ruff check --select I tests typings --fix" |
