Skip to content

The yanked flag should not be ignored #146

Description

@whitphx

Currently micropip.install() ignores the yanked flag and even installs the yanked version.
For example, as of 2024-10-22, micropip.install("python-multipart") installs 0.0.13 even though the version is yanked.

CleanShot 2024-10-22 at 14 10 10@2x

>>> import micropip
>>> await micropip.install("python-multipart")
>>> import python_multipart
>>> python_multipart.__version__
'0.0.13'

As a reference, pip deals with the yank flag properly, as the yanked python-multipart==0.0.13 is ignored as below for example.

.venv ❯ pip install python-multipart
Collecting python-multipart
  Obtaining dependency information for python-multipart from https://files.pythonhosted.org/packages/f5/0b/c316262244abea7481f95f1e91d7575f3dfcf6455d56d1ffe9839c582eb1/python_multipart-0.0.12-py3-none-any.whl.metadata
  Downloading python_multipart-0.0.12-py3-none-any.whl.metadata (1.9 kB)
Downloading python_multipart-0.0.12-py3-none-any.whl (23 kB)
Installing collected packages: python-multipart
Successfully installed python-multipart-0.0.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions