1. PyPA
  2. Python Packaging Authority Projects
  3. pypi
  4. Issues


Issue #11 wontfix

issue with removing a version from pypi

Guy Rozendorn
created an issue

When a package contains multiple versions and the last one is removed by the owner, the older versions of the package are still installable and visible from the '/simple' interface but the package itself disappears from the API and from the '/pypi' interface, returning "Not Found" in both.

Comments (8)

  1. Guy Rozendorn reporter

    The older releases are hidden. However, that doesn't mean the package should return "Not Found" in the API. (Maybe the latest release should get unhidden automatically to fix this?)

  2. Guy Rozendorn reporter

    Hi Donald,

    The XMLRPC behaves as expected; the problem is with http://pypi.python.org/pypi/

    Lets describe the scenario first with more details: package A has three releases, two of them (the older ones) are hidden (they were automatically hidden when a newer release was uploaded) we now delete the latest release

    Now the package has only two, hidden releases. If we to go to /simple/A, we see the hidden releases; thats not a problem If we go to /pypi/A, we get a Not Found error, and thats the problem.

    I think that the "pypi interface" (http://pypi.python.org/pypi/*) should show a more descriptive page instead of returning "Not Found" like a package that doesn't exist. It could even show the package description, author, etc., and state that the package contains no releases, or only hidden ones.

    Here are two examples (of packages I don't own or maintain): adminfuncs: there's one release available on https://pypi.python.org/simple/adminfuncs/, but https://pypi.python.org/pypi/adminfuncs returns not found (I'm assuming its a hidden release)

    agic: https://pypi.python.org/pypi/agic says not found, but https://pypi.python.org/simple/agic/ is found and has no releases

  3. Log in to comment