https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RIAKMPDDLF6NKLSH7RG7UARNXJ7QGW7G/
Quote:
When running the fedora-review tool on a package that has "BuildRequires: python3dist(pytest)" in it (note there is no version dependency on the pytest package), the review is complaining that:
Looking in the build log, it is actually using pytest5 though:
+ /usr/bin/python3 -m pytest ============================= test session starts ============================== platform linux -- Python 3.9.0b1, pytest-5.4.2, py-1.8.0, pluggy-0.13.0
The problem is that the check calls deps.resolve which in turn calls deps.resolve_one which results in always returning the list of all packages that provide what this package requires.
deps.resolve
deps.resolve_one
As a different approach, we could install the package to mock that built the package and check if any of the installed packages provides deprecated().
deprecated()
I am working on a temporary workaround.
https://pagure.io/FedoraReview/pull-request/393
Update of the dirty hack: https://pagure.io/FedoraReview/pull-request/524
A presumably dirty fix (harder to review than the above): https://pagure.io/FedoraReview/pull-request/525
Log in to comment on this ticket.