Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNeed to add "blurb" to installed packages for docsbuild on docs.iad1.psf.io #14
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 thatblurbis 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 expectsblurbto be installed in thepython3that is available in the Docs build, whether that is a "system" python3 or a venv python3 is a question. So pip installingblurbinto the right python3 should solve the problem. See thebuildrecipe in the cpythonDoc/Makefilefor details (currently 3.5 has been updated but others will follow soon).The specific pip requirement should be:
blurb>=1.0.4This is a high priority item because the website docs break as these changes are pushed into the various branches.