-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces the python project manager with `uv`. For most commands that used poetry before, it just be as easy as replacing `poetry {things}` with `uv {things}`. Some notable exeptions: - Instead of `poetry install --with extra1,extra2`, use `uv sync --extra extra1 --extra extra2`. Note that will delete any extraneous packages/extras so the venv state is deterministic. Add `--inexact` if you want to replicate the old poetry behaviour. - `poetry shell` is no longer available. The preferred workflow is to `uv run` / `uvx` things, to ensure you are always in sync with the project definition. If that's too annoying, it is always possible to `source .venv/bin/activate`. Updates the justfile, so using that should be the same as before. --------- Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
- Loading branch information
Showing
17 changed files
with
1,234 additions
and
1,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ python: | |
- "tket2-py/**" | ||
- "tket2-eccs/**" | ||
- "pyproject.toml" | ||
- "poetry.lock" | ||
- "uv.lock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# Installs a fixed UV version | ||
# | ||
# This reads the `UV_CACHE_DIR` environment variable if it is set, | ||
# and stores the downloaded dependencies in that directory. | ||
|
||
curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.