I am trying to publish documentation on pythonhosted.org
using setuptools, but while python setup.py upload_docs
succeeds, nothing changes online, and no update of the documentation is reported in my package's journal on PyPI either.
Yet, I can still manually upload a ZIP file using the PyPI web interface, and this works just fine.
I used to build and deploy the documentation with MkDocs using:
$ mkdocs build --clean
$ python setup.py upload_docs
None of them reports any error. The new website is properly generated and can be served locally by MkDocs.
I tried Python 3.4.2, 3.5 and 3.6, as well as with several versions of setuptools. I must be missing something obvious.
Below is the output of the upload_docs
command (with debug info). Note that the content of the website is stored under "./site", as detected. See also my project configuration, especially setup.py
and setup.cfg
.
$ python setup.py upload_docs
options (after parsing config files):
options (after parsing command line):
option dict for 'aliases' command:
{}
option dict for 'metadata' command:
{'description_file': ('setup.cfg', 'README.adoc')}
option dict for 'upload_docs' command:
{'upload_dir': ('setup.cfg', 'site')}
running upload_docs
Distribution.get_command_obj(): creating 'upload_docs' command object
setting options for 'upload_docs' command:
upload_dir = site (from setup.cfg)
Upload_docs command is deprecated. Use RTD instead.
Submitting documentation to https://pypi.python.org/pypi/
Server response (200): OK
Thanks in advance for any help.