Skip to content
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

Update docs build #1187

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Update docs build #1187

merged 2 commits into from
Mar 21, 2023

Conversation

victorlin
Copy link
Member

Description of proposed changes

See commit messages.

Testing

What steps should be taken to test the changes you've proposed?
If you added or changed behavior in the codebase, did you update the tests, or do you need help with this?

Checklist

  • Add a message in CHANGES.md summarizing the changes in this PR that are end user focused. Keep headers and formatting consistent with the rest of the file. N/A no functional changes

@victorlin
Copy link
Member Author

This was prompted by an issue with RTD (readthedocs/readthedocs.org#10171) which caused recent docs builds to fail with

python3.7 -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
/bin/bash: python3.7: command not found

I thought this was because Python 3.7 got removed in favor of newer versions (hence c630ad6), but it looks like newer versions are also affected. These changes should still be worth having though. Will wait for the RTD issue to be fixed and then merge this.

@victorlin
Copy link
Member Author

Dropped c630ad6 since it's not necessary as of now, and the 3.11 build fails anyways since cvxopt fails to build (though 3.10 should work with pre-built cvxopt wheels).

I'm going to rebase to enable docs CI, then merge once checks have passed.

This is recommended¹. Without it, 3.10 will be interpreted as "3.1".

¹ https://docs.readthedocs.io/en/stable/config-file/v2.html#python-version-legacy
python.version is deprecated¹.

This also requires defining build.os which is probably a good thing to
do anyways.

¹ https://docs.readthedocs.io/en/stable/config-file/v2.html#python-version
@victorlin victorlin marked this pull request as ready for review March 21, 2023 18:54
@victorlin victorlin merged commit b58e864 into master Mar 21, 2023
@victorlin victorlin deleted the victorlin/fix-rtd branch March 21, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant