Mailinglist Archive: opensuse-packaging (97 mails)

< Previous Next >
Re: [opensuse-packaging] Re: How to properly define versioned dependencies to python-pytest
  • From: Hans-Peter Jansen <hpj@xxxxxxxxx>
  • Date: Mon, 18 Nov 2019 16:23:19 +0100
  • Message-id: <2691473.dFMIWqEVje@xrated>
Am Montag, 18. November 2019, 15:12:53 CET schrieb Andreas Schwab:
On Nov 18 2019, Hans-Peter Jansen wrote:
Tumbleweed has this prjconf in place:

# python2-pytest4 should win over python2-pytest
# python3-pytest should win over python3-pytest4 since pytest5 is python3
only Prefer: python2-pytest4 python3-pytest4

but I don't understand, *how* python3-pytest is winning over
python3-pytest4 here?

The comment seems to be stale.

That's what I assumed as well.

It was added in revision 1097, together
with the line "Prefer: python2-pytest4 python3-pytest", but that was
changed in subsequent revisions without updating the comment.

Prefer: python2-pytest4 python3-pytest

is what I *would* expect it to be, but again, I don't understand why

Prefer: python2-pytest4 python3-pytest4

in TW is able to prefer python3-pytest, python2-pytest4 and is working for
versioned dependencies, e.g. python-pytest-xdist as well:

BuildRequires: %{python_module pytest >= 4.4.0}
Requires: python-pytest >= 4.4.0

but obviously, I'm incapable to understand these details (nevertheless, I
would like to...)

Pete


--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups