Hi,It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.
I need python-subby as a new dependency for some Debian Med package. Unfortunately it does not build easily[1]:
dh_auto_build -O--buildsystem=pybuild
E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] nor [tool.flit.metadata] found in pyproject.toml
E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] nor [tool.flit.metadata] found in pyproject.toml
dh_auto_build: error: pybuild --build -i python{version} -p "3.10 3.9" returned exit code 13
On Fri, Jan 28, 2022 at 09:48:00PM +0100, Andreas Tille wrote:
Hi,
I need python-subby as a new dependency for some Debian Med package. Unfortunately it does not build easily[1]:
dh_auto_build -O--buildsystem=pybuildIt indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.
E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] nor [tool.flit.metadata] found in pyproject.toml
E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] nor [tool.flit.metadata] found in pyproject.toml
dh_auto_build: error: pybuild --build -i python{version} -p "3.10 3.9" returned exit code 13
Am Sat, Jan 29, 2022 at 01:50:22AM +0500 schrieb Andrey Rahmatullin:
On Fri, Jan 28, 2022 at 09:48:00PM +0100, Andreas Tille wrote:
Hi,
I need python-subby as a new dependency for some Debian Med package.
Unfortunately it does not build easily[1]:
dh_auto_build -O--buildsystem=pybuild
E: pybuild pybuild:367: build: plugin flit failed with: NeitherIt indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.
[project] nor [tool.flit.metadata] found in pyproject.toml E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] nor [tool.flit.metadata] found in pyproject.toml dh_auto_build: error: pybuild --build -i python{version} -p "3.10 3.9" returned exit code 13>
Where can I find an example how to use poetry?
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.core.masonry.api"
Add build-depends on pybuild-plugin-pyproject.
Drop build-depends on flit.
Drop the "export PYBUILD_SYSTEM=flit" line in d/rules.
That should get you close.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 384 |
Nodes: | 16 (2 / 14) |
Uptime: | 63:33:48 |
Calls: | 8,174 |
Calls today: | 6 |
Files: | 13,113 |
Messages: | 5,864,702 |