-
Notifications
You must be signed in to change notification settings - Fork 163
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 readthedocs config to version 2 #1674
Conversation
Seems to fail as it tries to install notmuch2 via pip. |
Thanks for activating that branch. The logs are public so I can debug this myself. |
This needs python 3.11 or higher to build the docs because tomllib is only available from python 3.11 on.
This now builds on RTD and is ready for review. I found out that we can have RTD build pull requests. They can even report the build status back to Github which might save us from broken docs after a PR. See https://docs.readthedocs.io/en/stable/guides/pull-requests.html, the status stuff is my interpretation of https://docs.readthedocs.io/en/stable/guides/pull-requests.html#troubleshooting . open questions @pazz
PS: But we could also keep the python version requirements as is because we only need py3.11 to run sphinx to generate the docs. |
Pretty sure this was checked in by accident. It looks like it is unused and outdated.
I do not have an issue with upping the version dependency for alot to 3.11. |
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.
It may be a good idea to get the metatata from importlib (requires >=v3.8 IIRC) rather than tomlib by hand.
The format of the intersphinx entries should also be updated now that we're at it, as that causes warnings for me locally (see my linked patch).
Lastly, you may want to add your email to the metadata, rather than just your name :)
Does the dynamic version branch build on rtd? I had the impression that the importlib.version function needs a working installation of the package it tries to find. That would force us to install alot with notmuch and gpg on rtd! I would prefer to read the static data from the toml file instead of having pip read it from the toml file and then importlib fetch it from some pip generated metadata again. |
Quoting Lucas Hoffmann (2024-08-12 15:43:22)
Does the dynamic version branch build on rtd?
I did not try that, but suspect it would not.
I had the impression that the
importlib.version function needs a working installation of the package it tries
to find.
Yes.
That would force us to install alot with notmuch and gpg on rtd! I
would prefer to read the static data from the toml file instead of having pip
read it from the toml file and then importlib fetch it from some pip generated
metadata again.
OK fine, let's keep it like this then.
Still, I think it may be good to do the dynamic version stuff just to avoid hardcoding version strings all over.
I'll try to come up with a separate PR.
But: The intersphinx stuff should be fixed, and I believe this branch is as good as any to do this minimal change.
|
The docs for the new config file format are here: https://docs.readthedocs.io/en/stable/config-file/
I am not sure if that whole build will succeed because we might need notmuch or gpg. In their docs they also advertise a requirements.txt again :)
@pazz can you test this branch on RTD?