Skip to content

Switch to uv for RTD build - #400

Closed
Zethson wants to merge 6 commits into
mainfrom
feature/use_uv
Closed

Zethson wants to merge 6 commits into
mainfrom
feature/use_uv

Conversation

@Zethson

@Zethson Zethson commented May 8, 2025

Copy link
Copy Markdown
Member

Fixes #399

  • Use UV for RTD build which can substantially speed up doc generation & preview

Signed-off-by: Lukas Heumos <[email protected]>
@github-actions

github-actions Bot commented May 8, 2025

Copy link
Copy Markdown

A PR has been generated to the instance repo:
scverse/cookiecutter-scverse-instance#202

You can check out the PR to preview your changes
in an instance of the cookiecutter template. The PR will be kept in sync with
this PR automatically.

Zethson added 2 commits May 8, 2025 11:22
Signed-off-by: Lukas Heumos <[email protected]>
Signed-off-by: Lukas Heumos <[email protected]>
@grst

grst commented May 8, 2025

Copy link
Copy Markdown
Collaborator

do you by any chance know if there's also a hatch plugin for readthedocs? This would tie in well with @flying-sheep and my efforts to standardize builds between local machines and CI.

We could also execute hatch through uv I suppose.

@flying-sheep flying-sheep left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fail_on_warning must be true by default, and the comment should read “disable this if you are OK with broken links in your docs”. I’m losing my mind here, why does everybody just love to try and change this every single time this file gets touched?

In scanpy I needed to switch it to this before people kept their ill-advised fingers off it.

fail_on_warning: true # do not change or you will be fired

Besides: does it even do anything if we call sphinx manually above? Is there a SPHINX_BUILD_OPTS envvar that gets set by this configuration or something? We should use that or get rid of the whole sphinx: block if it does nothing.

and add -W to the command line of course.

@Zethson

Zethson commented May 8, 2025 •

Copy link
Copy Markdown
Member Author

fail_on_warning must be true by default, and the comment should read “disable this if you are OK with broken links in your docs”. I’m losing my mind here, why does everybody just love to try and change this every single time this file gets touched?

That's just copy and paste. We'll stick to true dw. Had it temporarily disabled at pertpy as I have 3 warnings that I could not figure out.
Hadn't asked for a review yet, shoulda been draft.

@Zethson
Zethson marked this pull request as draft May 8, 2025 10:12
Signed-off-by: Lukas Heumos <[email protected]>
@flying-sheep

Copy link
Copy Markdown
Member

phew! this question remains though:

does [the sphinx: config block] even do anything if we call sphinx manually above? Is there a SPHINX_BUILD_OPTS envvar that gets set by this configuration or something? We should use that or get rid of the whole sphinx: block if it does nothing.

Zethson added 2 commits May 8, 2025 12:45
Signed-off-by: Lukas Heumos <[email protected]>
Signed-off-by: Lukas Heumos <[email protected]>
@Zethson

Zethson commented May 8, 2025

Copy link
Copy Markdown
Member Author

I don't think that it still does anything. You are correct.

I added -W and removed the section.

Reference: https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-uv

@grst grst mentioned this pull request May 8, 2025
@Zethson

Zethson commented May 8, 2025

Copy link
Copy Markdown
Member Author

Closing in favor of #402

@Zethson Zethson closed this May 8, 2025
@Zethson
Zethson deleted the feature/use_uv branch August 18, 2026 09:47
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.

Use UV for RTD build

3 participants