-
Notifications
You must be signed in to change notification settings - Fork 12
env: Migrate to uv
#101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
env: Migrate to uv
#101
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
921da5d
env: Replace pip with uv
fischeti 8a5c949
deps: Bump cheshire
fischeti 33496b9
ci: Fixes and improvements for uv
fischeti 30ef095
iis-env.sh: Update tool versions
fischeti 95f845f
Makefile: Fixes and improvements
fischeti a91bc84
docs: Update README.md
fischeti c1fd7ff
pyproject.toml: Use `pytorch-cpu`
fischeti 5f86921
ci: Checkout bender before creating venv
fischeti aa1d90a
deps: Bump floo_noc
fischeti 19c95b8
license: Update annotation for lock files
fischeti f8d642f
uv: Update lockfile
fischeti 829d4f4
uv: Use published floogen
fischeti 8bed4c8
deps: Bump cheshire
fischeti 51c7585
uv: Add cheshire as workspace dependency
fischeti 71e4081
deps: Bump cheshire
fischeti 444691f
sw: Fix define from rawheader output
fischeti d6440cd
make: Remove duplicate recipe
fischeti abc2102
tb: Fix raw address names
fischeti aa51445
py: Package `experiments` properly
fischeti ed271c1
ci: Bump PD commit
fischeti 8343890
ci: Try again to interrupt
fischeti 9d8c5f9
Bender.yml: Add default remote
fischeti 1ea8468
ci: Bump PD commit
fischeti a3bc08c
pyproject.toml: Remove whitespaces
fischeti 8f30790
deps: Bump chesire
fischeti 1ca9a1f
deps: Bump common_verification
fischeti ecd1fd2
env: Revert back QuestaSim version
fischeti 8ea26cb
pyproject.toml: Add instructions on how to modify floogen
fischeti 39b72f1
deps: Bump peakrdl rawheader
fischeti 9ea47fe
rdl: Shorten the rawheader svh addresses
fischeti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| 3.11 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Empty file.
This file contains hidden or 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,5 @@ | ||
| # Copyright 2025 ETH Zurich and University of Bologna. | ||
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| from .picobello import * |
This file contains hidden or 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 hidden or 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 hidden or 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,52 @@ | ||
| # Copyright 2025 ETH Zurich and University of Bologna. | ||
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| [project] | ||
| name = "picobello" | ||
| version = "0.1.0" | ||
| description = "whatever it means" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11" | ||
|
|
||
| dependencies = [ | ||
| "floogen>=0.8.0", | ||
| "peakrdl>=1.5.0", | ||
| "peakrdl-rawheader>=0.2.4", | ||
| "snitch[kernels]", | ||
| "cheshire" | ||
| ] | ||
|
|
||
| [dependency-groups] | ||
| dev = [ | ||
| "reuse>=6.2.0", | ||
| ] | ||
|
|
||
| [tool.uv.workspace] | ||
| members = [ | ||
| # To locally edit floogen, run `bender clone floo_noc` and add: | ||
| # "working_dir/floo_noc", | ||
| # Note: .deps/floo_noc cannot be used here because uv_build does not | ||
| # support symlinks as workspace members (https://github.com/astral-sh/uv/issues/15243). | ||
| ".deps/snitch_cluster", | ||
| ".deps/cheshire", | ||
| ] | ||
|
|
||
| [tool.uv.sources] | ||
| # To locally edit floogen, also uncomment: | ||
| # floogen = { workspace = true, editable = true } | ||
| snitch = { workspace = true, editable = true } | ||
| cheshire = { workspace = true } | ||
| torch = [{ index = "pytorch-cpu" }] | ||
|
|
||
| [[tool.uv.index]] | ||
| name = "pytorch-cpu" | ||
| url = "https://download.pytorch.org/whl/cpu" | ||
| explicit = true | ||
|
|
||
| [build-system] | ||
| requires = ["uv_build>=0.6,<1"] | ||
| build-backend = "uv_build" | ||
|
|
||
| [tool.uv.build-backend] | ||
| module-root = "experiments" | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be beneficial to add Floogen as a workspace to enable development on Floogen while testing on Picobello.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried, the problem is that
uv_builddoes not like symlinks at all. However, the following works and is also recommended for local development:Then in
pyproject.tomlI also added a comment in
pyproject.toml