Skip to content

Commit 34b3743

Browse files
Rework of 'pyproject.toml' to facilitate various packaging (#166)
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 <armand.beneteau@iot.bzh>
1 parent ababbdc commit 34b3743

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Contributors
66
* Adeodato Simó
77
* Allison Karlitskaya
88
* Andrew McNamara
9+
* Armand Bénéteau
910
* Chris Clarke
1011
* Cody D'Ambrosio
1112
* Erik Cederstrand

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ include = [
5454
"/docs",
5555
"/tests",
5656
]
57-
sources = ["src"]
5857

5958
[tool.hatch.build.targets.wheel]
60-
sources = ["src"]
61-
packages = ["tap"]
59+
packages = ["src/tap"]
6260

6361
[tool.pytest.ini_options]
6462
pythonpath = [".", "src"]

0 commit comments

Comments
 (0)