-
Notifications
You must be signed in to change notification settings - Fork 22
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
chore: update ReadTheDocs config file to be compliant #439
Conversation
* From https://docs.readthedocs.io/en/stable/config-file/v2.html > This file is named .readthedocs.yaml and should be placed in the > top level of your Git repository.
@alexander-held There's no RTD test build happening at the moment. Do you have it configured to not run on PRs? |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #439 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 2082 2082
Branches 340 340
=========================================
Hits 2082 2082 ☔ View full report in Codecov by Sentry. |
Yes, so far it was just running on These are the commands I see running: git clone --depth 1 https://github.com/scikit-hep/cabinetry.git .
git fetch origin --force --prune --prune-tags --depth 50 refs/heads/chore/update-RTD-config:refs/remotes/origin/chore/update-RTD-config
git checkout --force origin/chore/update-RTD-config
git clean -d -f -f
cat .readthedocs.yaml
apt-get update --assume-yes --quiet
apt-get install --assume-yes --quiet -- curl jq
asdf global python 3.11.4
python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
python -m pip install --upgrade --no-cache-dir pip setuptools
python -m pip install --upgrade --no-cache-dir pillow mock==1.0.1 alabaster>=0.7,<0.8,!=0.7.5 commonmark==0.9.1 recommonmark==0.5.0 sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<2.3 jinja2<3.1.0
python -m pip install --upgrade --upgrade-strategy only-if-needed --no-cache-dir .[docs,contrib]
cat docs/conf.py
python -m sphinx -T -E -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html The thing I do not understand here is what triggers this line
This installs Lines 27 to 31 in 2af877c
I imagine this could be solved by adding a lower bound, I'll push a commit to this branch here to try it out. It is very unclear to me why this one step happens with the upper bounds set though (which is what ultimately causes the problem). Maybe @henryiii might have an idea? |
I can confirm that the build passes again with the changes from aa5ee0d. It feels to me that there should be a better solution that addresses what happens in the build in that extra step. Unless anyone has other ideas, I think this is good enough to go ahead with though. |
I agree that's strange, but I also agree that this is probably not worth the effort to debug further. |
RtD pre-installs old versions of things, like the old rtd theme. Setting a minimum forces the upgrade. |
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.
Thanks everyone, this looks good to me then.
* add build.os config setting for readthedocs
* set lower bound of readthedocs Sphinx theme to fix readthedocs CI
@alexander-held not sure if this is going to fix your issues, but this is basically the
pyhf
RTD config that has been working fine so far.