Build failing on `No such file or directory: 'poetry'` in %tox

Hi,

I’m trying to build a new package in COPR and currently encountering this error when trying to run tests.

The poetry is added as BuildRequires: python3dist(poetry) and it’s installed according to the logs from build but when trying to run tests it fails on No such file or directory: 'poetry'.

I’m not sure what I’m missing. Here is the whole SPEC file.

The RPM fror poetry does not install a command in bin.
I assume you are supposed to run it as python3 -m poetry that worked for me.

Or add BuildRequires: poetry to your spec file.

1 Like

This helped, thanks a lot.

I already tried BuildRequires: python3-poetry and BuildRequires: python3dist(poetry), but this didn’t came to my mind.