Skip to content

Use uv for everything#525

Merged
ecomodeller merged 3 commits intomainfrom
uvify
Sep 12, 2025
Merged

Use uv for everything#525
ecomodeller merged 3 commits intomainfrom
uvify

Conversation

@ecomodeller
Copy link
Copy Markdown
Member

@ecomodeller ecomodeller commented Aug 12, 2025

  • Use dev dependency groups instead of optional dependencies (targeted to end users) in pyproject.toml.
  • Use uv in all CI workflows
  • Use uv run in Makefile
  • Use src layout

A src layout is particularly valuable when developing libraries. It ensures that the library is isolated from any python invocations in the project root and that distributed library code is well separated from the rest of the project source.
https://docs.astral.sh/uv/concepts/projects/init/#libraries

@ecomodeller ecomodeller marked this pull request as ready for review August 12, 2025 13:56
pyproject.toml Outdated
[tool.hatch.build]

[tool.hatch.build.targets.sdist]
exclude = [
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.

Is it not possible to exclude content with uv_build?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

uv_build have better defaults.

Copy link
Copy Markdown
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Ready to ship @ecomodeller ?

@ecomodeller ecomodeller merged commit c147226 into main Sep 12, 2025
2 checks passed
@ecomodeller ecomodeller deleted the uvify branch September 12, 2025 13:50
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.

2 participants