Closed kBite closed 2 months ago
Hi, I put your code, and a few variations, into an acceptance test and that looks quite good at the moment: https://github.com/voxpupuli/puppet-python/pull/588
I managed to reproduce the error in https://github.com/voxpupuli/puppet-python/pull/591
There is a huge discussion on https://github.com/pypa/pip/issues/9139 to bring functionality back, but for now, one can use
# /opt/python3/bin/pip install --use-deprecated=legacy-resolver agent==
ERROR: Could not find a version that satisfies the requirement agent== (from versions: 0.1.0, 0.1.1, 0.1.2)
ERROR: No matching distribution found for agent==
notice that you don't have to add anything after ==
Hi, a resolution has since been proposed and merged to resolver pypa/pip#9139 by a contributor. Are there still things missing to resolve this?
I have the latest pip 21.0.1 and feature is not included there yet
Yes, the change will be the 21.1 release due this month. I was asking whether there are any more things you’d need, or maybe some people to test 21.1 against the current main branch to make sure it works for you, so we don’t need to wait for another feature release to get this resolved.
should be fixed in newer version? https://github.com/pypa/pip/pull/9405
pip did it again ... see #695
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Starting with
20.3
pip is using a new dependency resolver which does not produce the same output as before and breaks puppet-python's logic to determine latest available package version.Upgrade to pip
20.3
and try installing latest of any package viapython::pip
.What are you seeing / What behaviour did you expect instead
With pip
20.2.4
installing a non-existing version returns all available versions (see below).Starting with version
20.3
this information is not returned anymore.relevant Puppet code
This snippet is from
pip.pp
and fails due to the missingfrom versions:
string that was dropped with the new dependecy resolver.reference