Hi Lumir,
Hau idatzi du Lumír Balhar (lbalhar(a)redhat.com) erabiltzaileak (2024
api. 4(a), og. (09:57)):
It might look like simple bump but you are upgrading from 4.1.1 to 6.0.0
and there are some breaking changes between those releases.
By "simple bump" I meant no other changes in the spec. I agree with
you the update is not that "simple".
The error message looks like the plugin is loaded twice for some
reason
and the second try to register the same CLI option fails. %pytest macro
sets PYTHONPATH so it's possible that the plugin is first loaded from
buildroot and then from the current working directory or vice-versa. I
also see some settings for pytest in pyproject.toml you might want to
take a look.
I found how to fix and it's a mix of what you suggest and pytest params.
I had to add "-p no:postgresql" to %pytest to avoid loading the
installed module, but also had to do changes in the pyproject.toml
file.
I documented in the commit I pushed:
https://src.fedoraproject.org/rpms/python-pytest-postgresql/c/4756bd60d23...
Best regards,
Mikel