Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading Documentation #12

Closed
dstufft opened this issue Oct 4, 2013 · 6 comments
Closed

Uploading Documentation #12

dstufft opened this issue Oct 4, 2013 · 6 comments

Comments

@dstufft
Copy link
Member

dstufft commented Oct 4, 2013

We need a sane way to upload documentation to PyPI

@merwok
Copy link

merwok commented Oct 4, 2013

There’s a simple HTTP interface which is documented on the Python wiki and implemented in setuptools and distutils2.

@jenisys
Copy link

jenisys commented Jan 31, 2015

But "python setup.py upload_docs" has the same problem as the setup.py upload command.
+1

@merwok
Copy link

merwok commented Feb 1, 2015

How so? You build and inspect the docs as you like, then use upload_docs to upload the existing files.

@sigmavirus24
Copy link
Member

@merwok I believe @jenisys is referring to using unverified HTTPS connections at best, and HTTP at worst.

@jenisys
Copy link

jenisys commented Feb 1, 2015

With the following pypi configuration:

# -- FILE: $HOME/.pypirc
# setup.py upload, upload_docs commands require at least an empty "password" attribute. 
# Otherwise, they fail BADLY.

[pypi]                                                                          
repository: https://pypi.python.org/pypi                                        
username:<my_username>
password:                                            

When I run the following command after building the docs:

$ python setup.py upload_docs -r pypi 
running upload_docs
Submitting documentation to https://pypi.python.org/pypi
Upload failed (401): Incorrect password
# -- AS EXPECTED: Empty password is not correct.

REASON: upload_docs command requires also a cleartext password in ".pypirc", like the "upload" command (as expected).

If am doing something wrong, please correct me.
But I had the impression, that twine wanted to solve that problem (and therefore asks for passwords). Or might retrieve the password from a keyring, ...

@sigmavirus24
Copy link
Member

The last time I spoke to @dstufft about this we came to the conclusion that this isn't something we wish to support anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants