-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix error uploading Sphinx doc with upload_docs. Fixes #1060 #2573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is well done. Thanks for putting together the test, which clearly was a lot more effort than the fix itself (not an uncommon scenario). I have no major concerns and just a few comments for your consideration, then we're ready to merge.
@jaraco Thank you for mentoring me through it! |
Very nice. Thorough and thoughtful work. |
Summary of changes
Closes #1060
Sphinx now uses
builder_target_dirs
in replacement ofbuilder_target_dir
https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/setup_command.py#L143-L145. This fix will set thetarget_dir
inupload_docs
to the path of the html builder.Note:
Upload_docs
was restored support for sites other than PyPi as noted here: https://github.com/pypa/setuptools/blob/e1ffc2abbae4f2aa78dd09ee9827d754b7702b7b/CHANGES.rst#v3610Pull Request Checklist
changelog.d/
.(See documentation for details)