On Wed, 26 Jan 2022 at 15:38, Miro Hrončok <mhroncok(a)redhat.com> wrote:
On 26. 01. 22 14:32, Iñaki Ucar wrote:
> Hi,
>
> Do we have any spec dealing with poetry? I'm trying to package [1],
> but I'm stuck here:
>
> + /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py
> --generate-extras --python3_pkgversion 3 -t
> Handling poetry>=1.1.4 from build-system.requires
> Requirement satisfied: poetry>=1.1.4
> (installed: poetry 1.1.8)
> Handling tox-current-env >= 0.0.6 from tox itself
> Requirement satisfied: tox-current-env >= 0.0.6
> (installed: tox-current-env 0.0.6)
> ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found
>
> but the pyproject.toml file is certainly there. Any pointers would be
> appreciated.
Hey Iñaki,
please share the spec file next time you ask a question like this.
I should have, sorry, but I was playing and getting used to the new
2021 guidelines, and the spec is just in such a deplorable state right
now.
It seems that you run %pyporject_buildrequires with the -t option.
The -t
option stands for tox. And it requires tox configuration to be present. The
pyproject.toml file is certainly there, but it has not tox configuration in it.
What is your motivation for using the -t option?
*Facepalm* My motivation was that... I copied the example spec clearly
without properly understanding what this flag does... Thanks.
--
Iñaki Úcar