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

pypi's upload_docs crashes #660

Closed
akuzminsky opened this issue Jul 1, 2017 · 3 comments
Closed

pypi's upload_docs crashes #660

akuzminsky opened this issue Jul 1, 2017 · 3 comments

Comments

@akuzminsky
Copy link

when dpl uploads a python package to pypi it crashes on upload_docs step

running upload_docs
Upload_docs command is deprecated. Use RTD instead.
creating /home/travis/build/twindb/proxysql-tools/build
creating /home/travis/build/twindb/proxysql-tools/build/sphinx
creating /home/travis/build/twindb/proxysql-tools/build/sphinx/doctrees
creating /home/travis/build/twindb/proxysql-tools/build/sphinx/html
Traceback (most recent call last):
  File "setup.py", line 54, in <module>
    tests_require=test_requirements
  File "/opt/python/2.7.13/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/opt/python/2.7.13/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/python/2.7.13/lib/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/opt/python/2.7.13/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/home/travis/virtualenv/python2.7.13/lib/python2.7/site-packages/setuptools/command/upload_docs.py", line 65, in finalize_options
    self.target_dir = build_sphinx.builder_target_dir
  File "/opt/python/2.7.13/lib/python2.7/distutils/cmd.py", line 105, in __getattr__
    raise AttributeError, attr
AttributeError: builder_target_dir

full log https://travis-ci.org/twindb/proxysql-tools/jobs/248653364#L1124

@BanzaiMan
Copy link
Contributor

@dstufft May we have your advice, please?

@dstufft
Copy link

dstufft commented Jul 1, 2017

PyPI deprecated and has removed the upload_docs API endpoint. You can see in the error message:

Upload_docs command is deprecated. Use RTD instead.

The suggested replacement is ReadTheDocs for these projects, but projects may of course choose elsewhere.

@akuzminsky
Copy link
Author

Yep, I use RTD.
That error however prevented successful package upload. skip_upload_docs: true fixed that.

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

No branches or pull requests

4 participants
@BanzaiMan @dstufft @akuzminsky and others