From 8fc13d75dc974aada098400fca291eb93aa34a56 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 6 May 2026 16:28:00 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(backend)=20migrate=20from=20?= =?UTF-8?q?setuptool=20to=20uv=5Fbuild=20as=20build=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We already migrate from pip to uv to manage our dependencies. We can also migrate the build backend from setuptool to uv_build. In the pyproject file, the readme property has been removed, because uv_build try to read it, but the readme is at the root of the project and not copied into the Dockerfile instructions. This readme can be used when the package is published on pypi but it is not the case for Docs. --- src/backend/pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index ecfc9a22d..0d36cfbef 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -2,8 +2,8 @@ # impress package # [build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" +requires = ["uv_build>=0.11.9,<0.12"] +build-backend = "uv_build" [project] name = "impress" @@ -21,8 +21,7 @@ classifiers = [ ] description = "Docs is a collaborative text editor designed to address common challenges in knowledge building and sharing." keywords = ["Django", "Contacts", "Templates", "RBAC"] -license = { file = "LICENSE" } -readme = "README.md" +license = "MIT" requires-python = "~=3.13.0" dependencies = [ "beautifulsoup4==4.14.3", @@ -97,12 +96,13 @@ dev = [ "types-requests==2.33.0.20260408", ] -[tool.setuptools] -packages = { find = { where = ["."], exclude = ["tests"] } } -zip-safe = true - -[tool.distutils.bdist_wheel] -universal = true +[tool.uv.build-backend] +module-root = "" +source-exclude = [ + "**/tests/**", + "**/test_*.py", + "**/tests.py", +] [tool.ruff] exclude = [