Skip to content

Switch to uv for dependency management #1788

Merged
mpharrigan merged 2 commits intoquantumlib:mainfrom
mpharrigan:2026-01/uv
Feb 17, 2026
Merged

Switch to uv for dependency management #1788
mpharrigan merged 2 commits intoquantumlib:mainfrom
mpharrigan:2026-01/uv

Conversation

@mpharrigan
Copy link
Copy Markdown
Collaborator

@mpharrigan mpharrigan commented Jan 6, 2026

  • use uv to lock dependencies, but still export them to requirements.txt files so the CI is not changed.
  • Bump supported Python to 3.11 (NEP 29)

xref #1807

@mpharrigan mpharrigan force-pushed the 2026-01/uv branch 2 times, most recently from d7aa376 to 23fdab6 Compare January 14, 2026 19:40
@mpharrigan mpharrigan marked this pull request as ready for review February 10, 2026 19:40
Copy link
Copy Markdown
Collaborator

@fdmalone fdmalone left a comment

Choose a reason for hiding this comment

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

Are you sure you want to include the uv.lock file?

@mpharrigan
Copy link
Copy Markdown
Collaborator Author

mpharrigan commented Feb 11, 2026

Yes, it says to:

https://docs.astral.sh/uv/guides/projects/#uvlock

Note that we already do the (worse) equivalent of this with the dev.env.txt and other *.env.txt files. With this PR, users will still get the loose, pip-resolved requirements if they just pip install qualtran, and developers can continue to use pip install -r dev_tools/requirements/dev.env.txt if they want a fixed, complete developer environment; or they can use uv themselves.

(edited with correct link)

@fdmalone
Copy link
Copy Markdown
Collaborator

fdmalone commented Feb 11, 2026

oh cool, just noticed in other projects it isn't included (not sure why). LGTM

@fdmalone fdmalone self-requested a review February 11, 2026 18:57
@mpharrigan mpharrigan added the devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics label Feb 11, 2026
@mpharrigan mpharrigan enabled auto-merge (squash) February 17, 2026 19:49
@mpharrigan mpharrigan merged commit 65a1e32 into quantumlib:main Feb 17, 2026
9 checks passed
@mpharrigan mpharrigan mentioned this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants