Re: [Distutils] [Python-Dev] pythonhosted.org upload no longer works

On 10 October 2016 at 14:34, Giampaolo Rodola' <g.rodola@gmail.com> wrote:
This is what I've bumped into just now:
python setup.py upload_sphinx --upload-dir=docs/_build/html running upload_sphinx Submitting documentation to https://upload.pypi.org/legacy/ Upload failed (410): Uploading documentation is no longer supported, we recommend using https://readthedocs.org/.
Personally I prefer pythonhosted over readthedocs as I can provide the same style as official Python's doc (see https://pythonhosted.org/psutil/) and, most importantly, because I can automatize doc upload just by running "make doc-upload". Is there a reason upload functionality has been disabled? Is pythonhosted.org going to be dismissed or something?
This was discussed on distutils-sig back in May 2015. The thread starts here: https://mail.python.org/pipermail/distutils-sig/2015-May/026327.html. One of the actions in the final proposal (https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html) included a step to contact projects that were using pythonhosted.org. Did you not get any contact? It might be worth picking this up on distutils-sig, as that's where the original discussion occurred. I've copied this reply to there, and suggest followups go to that list. Paul

Thanks Paul, no I wasn't aware of that, and I will subscribe to distutils-sig from now on. I don't remember ever receiving a warrant about this decision but it's entirely possible I may have forgot. =) So long story short is that I will have to move the doc on readthedocs, correct? Does pythonhosted provide an automatic redirect or I'll have to upload a static page which states the doc has been moved? On Mon, Oct 10, 2016 at 4:41 PM, Paul Moore <p.f.moore@gmail.com> wrote:
On 10 October 2016 at 14:34, Giampaolo Rodola' <g.rodola@gmail.com> wrote:
This is what I've bumped into just now:
python setup.py upload_sphinx --upload-dir=docs/_build/html running upload_sphinx Submitting documentation to https://upload.pypi.org/legacy/ Upload failed (410): Uploading documentation is no longer supported, we recommend using https://readthedocs.org/.
Personally I prefer pythonhosted over readthedocs as I can provide the same style as official Python's doc (see https://pythonhosted.org/psutil/) and, most importantly, because I can automatize doc upload just by running "make doc-upload". Is there a reason upload functionality has been disabled? Is pythonhosted.org going to be dismissed or something?
This was discussed on distutils-sig back in May 2015. The thread starts here: https://mail.python.org/pipermail/distutils-sig/2015- May/026327.html. One of the actions in the final proposal (https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html) included a step to contact projects that were using pythonhosted.org. Did you not get any contact?
It might be worth picking this up on distutils-sig, as that's where the original discussion occurred. I've copied this reply to there, and suggest followups go to that list.
Paul
-- Giampaolo - http://grodola.blogspot.com

You’re using the new PyPI (either by getting a new default from a new version of Python or Twine OR explicitly switching to it yourself) which has this disabled. You can still upload to legacy PyPI by switching the default back. That will restore the ability to upload docs to pythonhosted.org. We do plan on adding the ability to provide an automatic redirect to the new PyPI, but it’s not there yet.
On Oct 10, 2016, at 11:17 AM, Giampaolo Rodola' <g.rodola@gmail.com> wrote:
Thanks Paul, no I wasn't aware of that, and I will subscribe to distutils-sig from now on. I don't remember ever receiving a warrant about this decision but it's entirely possible I may have forgot. =) So long story short is that I will have to move the doc on readthedocs, correct? Does pythonhosted provide an automatic redirect or I'll have to upload a static page which states the doc has been moved?
On Mon, Oct 10, 2016 at 4:41 PM, Paul Moore <p.f.moore@gmail.com <mailto:p.f.moore@gmail.com>> wrote: On 10 October 2016 at 14:34, Giampaolo Rodola' <g.rodola@gmail.com <mailto:g.rodola@gmail.com>> wrote:
This is what I've bumped into just now:
python setup.py upload_sphinx --upload-dir=docs/_build/html running upload_sphinx Submitting documentation to https://upload.pypi.org/legacy/ <https://upload.pypi.org/legacy/> Upload failed (410): Uploading documentation is no longer supported, we recommend using https://readthedocs.org/ <https://readthedocs.org/>.
Personally I prefer pythonhosted over readthedocs as I can provide the same style as official Python's doc (see https://pythonhosted.org/psutil/ <https://pythonhosted.org/psutil/>) and, most importantly, because I can automatize doc upload just by running "make doc-upload". Is there a reason upload functionality has been disabled? Is pythonhosted.org <http://pythonhosted.org/> going to be dismissed or something?
This was discussed on distutils-sig back in May 2015. The thread starts here: https://mail.python.org/pipermail/distutils-sig/2015-May/026327.html <https://mail.python.org/pipermail/distutils-sig/2015-May/026327.html>. One of the actions in the final proposal (https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html <https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html>) included a step to contact projects that were using pythonhosted.org <http://pythonhosted.org/>. Did you not get any contact?
It might be worth picking this up on distutils-sig, as that's where the original discussion occurred. I've copied this reply to there, and suggest followups go to that list.
Paul
-- Giampaolo - http://grodola.blogspot.com <http://grodola.blogspot.com/>
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org <mailto:Distutils-SIG@python.org> https://mail.python.org/mailman/listinfo/distutils-sig <https://mail.python.org/mailman/listinfo/distutils-sig>
— Donald Stufft

Honestly I like readthedocs a lot, and I actually *don't* like docs that look too much like the standard Python docs -- it should be clear to readers (subliminally, through page style, not just be parsing the URL) that they're reading third party docs. On Mon, Oct 10, 2016 at 9:06 AM, Donald Stufft <donald@stufft.io> wrote:
You’re using the new PyPI (either by getting a new default from a new version of Python or Twine OR explicitly switching to it yourself) which has this disabled. You can still upload to legacy PyPI by switching the default back. That will restore the ability to upload docs to pythonhosted.org.
We do plan on adding the ability to provide an automatic redirect to the new PyPI, but it’s not there yet.
On Oct 10, 2016, at 11:17 AM, Giampaolo Rodola' <g.rodola@gmail.com> wrote:
Thanks Paul, no I wasn't aware of that, and I will subscribe to distutils-sig from now on. I don't remember ever receiving a warrant about this decision but it's entirely possible I may have forgot. =) So long story short is that I will have to move the doc on readthedocs, correct? Does pythonhosted provide an automatic redirect or I'll have to upload a static page which states the doc has been moved?
On Mon, Oct 10, 2016 at 4:41 PM, Paul Moore <p.f.moore@gmail.com> wrote:
On 10 October 2016 at 14:34, Giampaolo Rodola' <g.rodola@gmail.com> wrote:
This is what I've bumped into just now:
python setup.py upload_sphinx --upload-dir=docs/_build/html running upload_sphinx Submitting documentation to https://upload.pypi.org/legacy/ Upload failed (410): Uploading documentation is no longer supported, we recommend using https://readthedocs.org/.
Personally I prefer pythonhosted over readthedocs as I can provide the same style as official Python's doc (see https://pythonhosted.org/psutil/) and, most importantly, because I can automatize doc upload just by running "make doc-upload". Is there a reason upload functionality has been disabled? Is pythonhosted.org going to be dismissed or something?
This was discussed on distutils-sig back in May 2015. The thread starts here: https://mail.python.org/pipermail/distutils-sig/2015-May/026327.html. One of the actions in the final proposal (https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html) included a step to contact projects that were using pythonhosted.org. Did you not get any contact?
It might be worth picking this up on distutils-sig, as that's where the original discussion occurred. I've copied this reply to there, and suggest followups go to that list.
Paul
-- Giampaolo - http://grodola.blogspot.com
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
— Donald Stufft
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (python.org/~guido)

-----Original Message----- From: Distutils-SIG [mailto:distutils-sig-bounces+tritium- list=sdamon.com@python.org] On Behalf Of Guido van Rossum Sent: Monday, October 10, 2016 12:27 PM To: Donald Stufft <donald@stufft.io> Cc: Distutils <distutils-sig@python.org>; Giampaolo Rodola' <g.rodola@gmail.com>; python-dev <python-dev@python.org> Subject: Re: [Distutils] [Python-Dev] pythonhosted.org upload no longer works
Honestly I like readthedocs a lot, and I actually *don't* like docs that look too much like the standard Python docs -- it should be clear to readers (subliminally, through page style, not just be parsing the URL) that they're reading third party docs.
That’s quite tangential to pythonhosted.org hosting documentation... But that is a consequence of the theme used by docs.python.org/2/ using the default sphinx theme. That problem was already solved for python3 docs - they don’t use the default theme. I really don’t see how this is related at all to the uploading of docs to pythonhosted.org.

I only mentioned it because the OP mentioned the theme as one of his reasons to prefer one over the other. On Mon, Oct 10, 2016 at 8:16 PM, <tritium-list@sdamon.com> wrote:
-----Original Message----- From: Distutils-SIG [mailto:distutils-sig-bounces+tritium- list=sdamon.com@python.org] On Behalf Of Guido van Rossum Sent: Monday, October 10, 2016 12:27 PM To: Donald Stufft <donald@stufft.io> Cc: Distutils <distutils-sig@python.org>; Giampaolo Rodola' <g.rodola@gmail.com>; python-dev <python-dev@python.org> Subject: Re: [Distutils] [Python-Dev] pythonhosted.org upload no longer works
Honestly I like readthedocs a lot, and I actually *don't* like docs that look too much like the standard Python docs -- it should be clear to readers (subliminally, through page style, not just be parsing the URL) that they're reading third party docs.
That’s quite tangential to pythonhosted.org hosting documentation... But that is a consequence of the theme used by docs.python.org/2/ using the default sphinx theme. That problem was already solved for python3 docs - they don’t use the default theme. I really don’t see how this is related at all to the uploading of docs to pythonhosted.org.
-- --Guido van Rossum (python.org/~guido)
participants (5)
-
Donald Stufft
-
Giampaolo Rodola'
-
Guido van Rossum
-
Paul Moore
-
tritium-list@sdamon.com