You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not 100% sure if this may be considered a bug, but if Unearth serves as a stable replacement for pip's PackageFinder API should be understood as meaning a drop-in replacement, then perhaps it is?
But unearth won't, it needs to be asked explicitly for pre-releases to be included.
$ python3 -m pip install -q unearth
$ python3
Python 3.13.0 (v3.13.0:60403a5409f, Oct 7 2024, 00:37:40) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from unearth import PackageFinder
>>> finder = PackageFinder(index_urls=["https://test.pypi.org/simple"])
>>> result = finder.find_best_match("alphaonly123")
>>> result.best
>>> result
BestMatch(best=None, applicable=<unearth.utils.LazySequence object at 0x101f2d6d0>, candidates=<unearth.utils.LazySequence object at 0x101e0acf0>)
Perhaps, with the default allow_prereleases=None mode, it should match pip - i.e. allow a pre-release if that is all the indices have available?
The text was updated successfully, but these errors were encountered:
Hi, I'm not 100% sure if this may be considered a bug, but if Unearth serves as a stable replacement for pip's
PackageFinder
API should be understood as meaning a drop-in replacement, then perhaps it is?Pip will select a pre-release if that is all that is available in the index:
But unearth won't, it needs to be asked explicitly for pre-releases to be included.
Perhaps, with the default
allow_prereleases=None
mode, it should match pip - i.e. allow a pre-release if that is all the indices have available?The text was updated successfully, but these errors were encountered: