On Fri, May 29, 2020 at 4:58 PM Miro Hrončok <mhron...@redhat.com> wrote:

> Hello,
>
> the pytest package (python3-pytest) has been updated to 5.4.2.
>
> In case it gives you trouble, you can pin an older version:
>
>    BuildRrequires: %{py3_dist pytest} < 5
>
> Or:
>
>    BuildRrequires: python3dist(pytest) < 5
>
> That will give you the python3-pytest4 package (4.6.10 now), not parallely
> installable with python3-pytest.
>
> Note that the python3-pytest4 package is deprecated, but no removal date
> has
> been set. Likely, it will get orphaned or retired when no important
> packages
> need it.
>
> The pytest 4.6.x series is still being occasionally released, but:
>
>
> https://docs.pytest.org/en/latest/py27-py34-deprecation.html#maintenance-of-4-6-x-versions
>
> "From now on, the core team will no longer actively backport patches, but
> the
> 4.6.x branch will continue to exist so the community itself can contribute
> patches."
>
> Side note: The Fedora 31/32 python3-pytest package does not provide
> python3-pytest4, hence I recommend not to BuildRequire python3-pytest4
> directly
> by name, but using python3dist(pytest) or %py3_dist as in the examples
> above.
>
> --
> Miro Hrončok
> --
> Phone: +420777974800
> IRC: mhroncok
>

 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:

- Package must not depend on deprecated() packages.
  Note: python3-pytest4 is deprecated, you must not depend on it.

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

I have already cleaned my mock cache, and ran mock --scrub=all and this
persists. Is there another cache that has to be cleaned, or a package that
needs updating?

-Ian
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to