Skip to content

Use uv for everything - #525

Merged
ecomodeller merged 3 commits into
mainfrom
uvify
Sep 12, 2025
Merged

Use uv for everything#525
ecomodeller merged 3 commits into
mainfrom
uvify

Conversation

@ecomodeller

@ecomodeller ecomodeller commented Aug 12, 2025

Copy link
Copy Markdown
Member
  • 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
Comment thread pyproject.toml Outdated
Comment thread 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.

@jsmariegaard jsmariegaard 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.

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