Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13903 > unrolled thread

Help for python-subby needed

Started byAndreas Tille <andreas@an3as.eu>
First post2022-01-28 21:50 +0100
Last post2022-02-01 16:50 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Help for python-subby needed Andreas Tille <andreas@an3as.eu> - 2022-01-28 21:50 +0100
    Re: Help for python-subby needed Andrey Rahmatullin <wrar@debian.org> - 2022-01-28 22:00 +0100
      Re: Help for python-subby needed Andreas Tille <andreas@an3as.eu> - 2022-02-01 12:10 +0100
        Re: Help for python-subby needed Scott Kitterman <debian@kitterman.com> - 2022-02-01 14:30 +0100
          Re: Help for python-subby needed Andreas Tille <andreas@an3as.eu> - 2022-02-01 16:50 +0100

#13903 — Help for python-subby needed

FromAndreas Tille <andreas@an3as.eu>
Date2022-01-28 21:50 +0100
SubjectHelp for python-subby needed
Message-ID<DKGlY-1ak-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#13904

FromAndrey Rahmatullin <wrar@debian.org>
Date2022-01-28 22:00 +0100
Message-ID<DKGvD-1dl-1@gated-at.bofh.it>
In reply to#13903

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#13909

FromAndreas Tille <andreas@an3as.eu>
Date2022-02-01 12:10 +0100
Message-ID<DLZcS-8qi-9@gated-at.bofh.it>
In reply to#13904
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

[toc] | [prev] | [next] | [standalone]


#13910

FromScott Kitterman <debian@kitterman.com>
Date2022-02-01 14:30 +0100
Message-ID<DM1ol-1cE-1@gated-at.bofh.it>
In reply to#13909

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#13912

FromAndreas Tille <andreas@an3as.eu>
Date2022-02-01 16:50 +0100
Message-ID<DM3zP-2sx-1@gated-at.bofh.it>
In reply to#13910
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web