Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete documentation from PyPi

Tags:

python

pypi

I just noticed that there is some ancient version of documentation accessible directly at http://pypi.python.org/pypi/gensim (right at the top, under Package Documentation). I may have tested that feature when first trying PyPi, ages ago.

Now real documentation for my package is maintained elsewhere. I'd like to get rid of that PyPi link and that silly page. Is there a way?


So far, I managed to "re-upload" a zip file containing an empty index.html, through the PyPi package admin interface. I thought that would at least provide an empty page to users unfortunate enough to click on the PyPi documentation link. Any way to delete it completely?

Neither "upload nothing" nor "upload an empty zip" work, PyPi checks for a zip and it must contain an index.html file.

like image 863
Radim Avatar asked Jun 29 '11 14:06

Radim


2 Answers

Just create a new index.html file with a link to the new documentation or even a redirect:

<html>
    <head>
        <title>A web page that points a browser to a different page after 2 seconds</title>
        <meta http-equiv="refresh" content="2; URL=http://www.example.com">
        <meta name="keywords" content="automatic redirection">
    </head>
    <body>
        {PACKAGE_NAME}'s documentation is maintained elsewhere.
        You will be redirected to the new documentation within 2 seconds.
        If the browser does not automatically redirect you, you may want to go to <a href="http://www.example.com">the destination</a> manually.
    </body>
</html>

Now zip it and go to http://pypi.python.org/pypi. Then login and go to your package's admin page. There you will find a button to upload the zipped documentation:

enter image description here

like image 66
rubik Avatar answered Sep 22 '22 17:09

rubik


Pypi recently added an option to destroy the documentation.

Log into your package and there is now an option to Destroy Documentation.

enter image description here

like image 32
Victor Uriarte Avatar answered Sep 21 '22 17:09

Victor Uriarte