From 433555053f917f9a8bbb615acb60248b80c01d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armand=20B=C3=A9n=C3=A9teau?= Date: Wed, 29 Oct 2025 16:57:47 +0100 Subject: [PATCH] Rework of 'pyproject.toml' to facilitate various packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This little "cleaning" of the 'pyproject.toml' file allows to build correctly the python wheel file in two different ways: - `uv build` - `python3 -m pip wheel .` Previously, only the `uv build` command worked. However it seems that the python packaging macros ("%pyproject_wheel" for RPM for example) use the `python3 -m pip wheel .` command. Thanks to this modification, both cases are working. Signed-off-by: Armand Bénéteau --- AUTHORS | 1 + pyproject.toml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 37d10ec..92710c0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -6,6 +6,7 @@ Contributors * Adeodato Simó * Allison Karlitskaya * Andrew McNamara +* Armand Bénéteau * Chris Clarke * Cody D'Ambrosio * Erik Cederstrand diff --git a/pyproject.toml b/pyproject.toml index b0d617c..6f11ac1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,11 +54,9 @@ include = [ "/docs", "/tests", ] -sources = ["src"] [tool.hatch.build.targets.wheel] -sources = ["src"] -packages = ["tap"] +packages = ["src/tap"] [tool.pytest.ini_options] pythonpath = [".", "src"]