GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-30607: Use external python-doc-theme by theacodes · Pull Request #2017 · python/cpython Conversation
|
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
(I just signed the CLA, I'll nag the bot tomorrow when hopefully it'll have been reviewed.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just an FYI @jonparrott I just added the CLA bot to the theme repo. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # (Updating the version is fine as long as no warnings are raised by doing so.) | ||
| - python -m pip install sphinx~=1.6.1 | ||
| # The theme used by the docs is stored seperately, so we need to install that as well. | ||
| - python -m pip install sphinx~=1.6.1 git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Will there need to be a change made to the docs.python.org build step for the docs to pull the theme in?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also need to review how this change might affect installer builds and release builds which build copies of the docs. Assigned myself to review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@brettcannon probably, but I don't know where that build step is.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@zware yes, we'll just need to add the theme package to the requirements.txt there. I'll send a PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actually before I do that- @ncoghlan you mentioned that you didn't think we should publish the theme to PyPI, but it's seeming like it's going to be a lot more convenient to do that if we're gonna use it here. WDYT?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@jonparrott The main problem I see with it is that PyPI doesn't have great "teams" support, so it adds an awkward extra set of permissions to manage in an already awkward update process.
Whereas if we're installing the theme directly from git, then the CPython docs maintainers should already have all the access they need to update it - they'll just be modifying a different repo, rather than having to worry about also tagging that repo and making a new PyPI release.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@ncoghlan great point. I like it, I just wanted to understand why. I can add this to the comments here and in the build scripts. :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Additionally update all existing dependencies in requirements.txt, as the common theme requires sphinx >= 1.6.0. Context: * python/cpython#2017 * https://bugs.python.org/issue30607
|
CLA signed. :) I've also created python/docsbuild-scripts#12 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm happy to rebase this and keep it current, but this kind of died of lack of attention. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
With python/docsbuild-scripts#12 merged, I don't think there's anything blocking this now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @zware, I'll attempt to rebase this (& reconcile any theme changes) over the weekend. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See my comments on python/python-docs-theme#5 about unnecessarily adding a docs build dependency on Git. Also, the PR needs to be rebased and retested to accommodate the changes made to support multiple languages. At that time, the full docs build should be tested ("make dist"). The step needed to install the theme package (presumably now from PyPI rather than from Github) should be added to the Makefile's "venv" recipe ("make venv") which currently installs the complete Docs build toolchain (now blurb, sphinx, and dependencies).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2f2e0f1 to
9d0b0c1
Compare
|
Alright, this is rebased and ready to review & merge. Thanks @ned-deily and @zware. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note that https://pypi.python.org/pypi/python-docs-theme/ is now 0.0.1, and there's only one version, so we can postpone questions of whether or not we want to pin versions on different CPython branches or not. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Gentle ping on this - I'd like to get it merged & hopefully do so before the branch gets stale. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for addressing my review comment; distributing via PyPI looks much cleaner to me. @JulienPalard if you have the time and interest, I would appreciate your review of this, especially if there any implications for the translated docs. Otherwise, we can deal with fixes during the 3.8 feature dev cycle (this change is not appropriate for 3.7 or earlier systems). One other thing - the daily docs build system may need a change to install python-docs-theme. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
@ned-deily is that what I did in python/docsbuild-scripts#12? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ah, yes. That should be updated to require the new package rather than getting from Github. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ned-deily PR created: python/docsbuild-scripts#41 (I don't think that blocks this) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged python/docsbuild-scripts#41 after testing it locally. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @JulienPalard. Anything else we need to do to get this merged? :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Only merge once python/cpython#2017 has been merged.
|
Tested locally, things looking good. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, Mariatta! Does anything else need to be done here? Let's merge? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Jon and everyone else who worked on this. Let's see how it works for 3.8. (I don't think this should be backported.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yay!
…On Thu, Mar 1, 2018, 1:06 PM Ned Deily ***@***.***> wrote:
Thanks Jon and everyone else who worked on this. Let's see how it works
for 3.8. (I don't think this should be backported.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2017 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAPUc0L6MqoS7GVIS7ANP1mC-5e9NtNiks5taGLGgaJpZM4N04vU>
.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.