-
-
Notifications
You must be signed in to change notification settings - Fork 63
Need to add "blurb" to installed packages for docsbuild on docs.iad1.psf.io #14
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
Comments
@ned-deily salt automatically pulls deps from the requirements.txt file in this repo: https://github.com/python/psf-salt/blob/master/salt/docs/init.sls#L38-L46 |
So I believe we should just need to add I'll double check the PATH exposed to cron jobs... |
Yep, assuming /srv/docsbuild/scripts/requirements.txt gets updated from there. Thanks! |
So blurb is installed but I missed a step: the docsbuild script venv is running Python 2.7. As nothing is blocking us for using Python 3 (not knowing it was 2.7, I always used a Python 3 venv locally and it works perfectly) we should first upgrade this venv to Python 3, then modify docsbuild script to pass this venv' python to Makefile so blurb will be available from within it. See: python/psf-salt#109 |
Thanks to @ewdurbin we now have a Python 3 venv available https://github.com/python/psf-salt/pull/110/files with the requirements I updated in #15. But the docs server provides Python 3.4 and blurb has been written in 3.6, may support 3.5 but is not compatible with 3.4:
I have not tested it extensively there may be other incompatibilities. |
I no longer see blurb missing errors in logs. |
@larryhastings has been working hard on solving the long-standing problem of managing updates to the Misc/NEWS file in the cpython repos. That file in each branch is an input to the corresponding documentation build to produce its changelog (e.g. https://docs.python.org/3.6/whatsnew/changelog.html). With the changes that Larry is now rolling out to the various branches (already in 3.5), the Docs build now has a dependency on a new utility called
blurb
(https://pypi.python.org/pypi/blurb/1.0.4). We need to make sure thatblurb
is now on the PATH during the Docs build. I'm not quite sure what is the best way to accomplish this on docs.iad1.psf.io. The Makefile currently expectsblurb
to be installed in thepython3
that is available in the Docs build, whether that is a "system" python3 or a venv python3 is a question. So pip installingblurb
into the right python3 should solve the problem. See thebuild
recipe in the cpythonDoc/Makefile
for details (currently 3.5 has been updated but others will follow soon).The specific pip requirement should be:
blurb>=1.0.4
This is a high priority item because the website docs break as these changes are pushed into the various branches.
The text was updated successfully, but these errors were encountered: