• Re: Help for python-subby needed

    From Andrey Rahmatullin@21:1/5 to Andreas Tille on Fri Jan 28 22:00:01 2022
    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: 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
    It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmH0VwMtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh r18P/2AEiYDEL/C+Xx46wGuFZQJWIBgkvbfPQlRW7+lZIRPCn/Nh+qxnpsu6QP8z J6LDPahhKxQQnuRDL0ySbOQB0NdM53N33V3S4OO7sInqmfg+bm8Nfj1TFopW2riN kfkYlsm2/gUvq+XxMV7TWP+UVpuznVBuiE4ObaA23Ymhk4cS237wuo0HyDinPIlx L3N4MiJeo9kl0ZJlYBGa/N2i0FK6i2D8BFKkXSkQW2GdITJd0CkE8STDwhE4RTQ9 /lDe0Dmum59Y0aqGiNn+SmQZ59pOl4d7UAX6xAcddxkTzZx3WJP6ApSLza+xApwf 4AK471LmGd1ewDIA5JRqoU6h5IaXokwwIZo0P9WdNNq1P96OyZKrUj8pPztUdJRa a0QjPVIIX6DjZWkvspX1B2M1sdBGmCt+t+TrKtQIVAZG/FdeKLQGaatXum3A3fc0 3HlPGID93nCyaWZ8bY8DxCDkYeLoFVX6uCsm1GmJtfKTIobTGuCTea7pgGyeTHPO RiaYS0LmOvjSXEsgrC+vPjXATiPqB+W9yRPGt8Xbccak8nhkrA3KFJKgYS102FLk nkdtY/p3iFQy5BivLmNVAe6peZoiW5E/rtWZOvUhq2F0q5MXyBJScPQp0qnDjoxl zbIfIhKcQiMFj4HRM10jmyZyGBElFJomDeOnU+mcHM1BvtNM
    =0uWn
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Fri Jan 28 21:50:02 2022
    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: 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

    Any help would be welcome

    Andreas.

    [1] https://salsa.debian.org/python-team/packages/python-subby/-/jobs/2408409

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Tue Feb 1 12:10:02 2022
    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: 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
    It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.

    Where can I find an example how to use poetry?

    Kind regards

    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Kitterman@21:1/5 to All on Tue Feb 1 14:30:01 2022
    On Tuesday, February 1, 2022 6:01:22 AM EST Andreas Tille wrote:
    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: 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>
    It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit.

    Where can I find an example how to use poetry?

    Add build-depends on pybuild-plugin-pyproject.

    Drop build-depends on flit.

    Drop the "export PYBUILD_SYSTEM=flit" line in d/rules.

    The poetry build-depends I'm a little uncertain on. Subby has:

    [build-system]
    requires = ["poetry>=0.12"]
    build-backend = "poetry.masonry.api"

    What I recall seeing is:

    [build-system]
    requires = ["poetry>=0.12"]
    build-backend = "poetry.core.masonry.api"

    I am not familiar enough to know if that means that you need python3-poetry (which you have) or if the upstream pyproject.toml is wrong and you need poetry-core. Maybe someone else knows or you can experiment.

    That should get you close.

    Scott K
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmH5NR4ACgkQeNfe+5rV mvF+IBAAlQIPlYT+xreKgGYzMxmQhHn4alh3au5sHTOQWYznY6S/jf/VkR1IhvRR QkmwUhcHV6A1r3Y+p5sjDqfhT2xBT5Yuy6xMtwcn4x9rMFEH5uOL7SZaOwOMzKRI +CaIwnpM7yGFWqgD2mjSp1VfJEp4K1JEB2PYvsPRaXfO/CdWEVikAo5MOcvlVh6T BNyIKlDinwV3YxdChjZ9/Av8H3t6mSNDy8kVcE91pT90tPWr08r4b0LTdFViJlgD VHbk7meqiy1QCHlh/tUaXpHXz/IPahvFSKsPjtdShQ+LIW6sN9+wuiYuL46HEJjF Y69tHXRxDLRJtMWaiMasGwT8BxCuskh0DmGyyB0sB6e6wZ5WohsyJpOr4Eu5Cu8U EgjHSQqkZwcafqqmBIxrdNO+3j5YGaQhKVQp/p97LwMOoc5GSFLAA90AlgHuBQG+ zn9EhAaaMY6i0+SsaheXMbXBsNE3L8li0EIzzfQyRnwh1olzvRDcK3eD1zQLnkKk 7v3sck87PeI7GVM4GV7yiy6XjXQrb2xufKSN6Am27YN2c+id5pDchESLhX2JTgkI Fr2/HXQq7u0Q3igPd8/KFnZC2MMborODAbqgy2YHm8xhu7JdSRzxnopJZn4Z55ls BGI5QSGUU3jZIfGP0PLkkj2bWGI8nDrMYqn4Q4Lp/wYzpR8mTw0=
    =F9e4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Tue Feb 1 16:50:01 2022
    Am Tue, Feb 01, 2022 at 08:26:54AM -0500 schrieb Scott Kitterman:

    Add build-depends on pybuild-plugin-pyproject.

    Drop build-depends on flit.

    Drop the "export PYBUILD_SYSTEM=flit" line in d/rules.

    Thanks, this works now.

    That should get you close.

    Yep. Thanks a lot

    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)