如何从PyPi中删除文档

Rad*_*dim 8 python pypi

我刚刚注意到有一些古老版本的文档可以直接访问http://pypi.python.org/pypi/gensim(位于顶部的Package文档下).我可能在很久以前第一次尝试PyPi时测试了这个功能.

现在我的包的真实文档在其他地方维护.我想摆脱那个PyPi链接和那个愚蠢的页面.有办法吗?


到目前为止,我通过PyPi包管理界面设法"重新上传"包含空index.html的zip文件.我认为这至少会为用户提供一个空页,不幸的是点击PyPi文档链接.有什么方法可以完全删除它吗?

既不"上传任何内容"也不"上传空的zip"工作,PyPi检查zip并且它必须包含index.html文件.

rub*_*bik 10

只需创建一个新index.html文件,其中包含指向新文档的链接,甚至是重定向:

<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>
Run Code Online (Sandbox Code Playgroud)

现在压缩它并转到http://pypi.python.org/pypi.然后登录并转到包的管理页面.在那里你会找到一个上传压缩文档的按钮:

在此输入图像描述