-
Notifications
You must be signed in to change notification settings - Fork 74
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
installation: Switch to UV for dependency management #3294
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
24707fb
install: Switch to using UV for dependency management
EdmundGoodman a4f1043
ci: Switch ci-core workflow to using UV
EdmundGoodman 1484229
ci: Debug ci-core workflow
EdmundGoodman 0c38cdb
ci: Fix uv python version matrix
EdmundGoodman 5fccc9d
ci: Re-enable pytest on ci-core workflow
EdmundGoodman 13d29aa
ci: Adopt uv in ci-mlir workflow
EdmundGoodman 0c0dd79
ci: Fix installation paths in ci-mlir workflow
EdmundGoodman 0729097
ci: Re-enable ci-notebooks workflow
EdmundGoodman f62890c
ci: Add uv run prefix to fix python venvs
EdmundGoodman 484e030
ci: Re-enable ci-pyright-fails workflow
EdmundGoodman 840ed43
ci: Activate virtual environment for uv
EdmundGoodman e4e4e73
ci: Fix virtual environment path
EdmundGoodman 60b6204
ci: Revert to uv run for stubgen
EdmundGoodman 842a69b
ci: Further fix virtual environment path
EdmundGoodman 07773c4
ci: Re-enable code-formatting workflow
EdmundGoodman b6cf9dd
ci: Enable running code formatting on non-main branches
EdmundGoodman e435414
ci: Re-enable jupyterlite workflow
EdmundGoodman d3be64f
ci: Re-enable remaining workflows
EdmundGoodman c57bc59
ci: Revert action invocation cases
EdmundGoodman 1d5efe3
ci: Revert python version changes
EdmundGoodman 22a9f4d
misc: Switch to inline make phonies and uv run
EdmundGoodman 4e92d77
misc: Constrain venv creation based on uv implementation
EdmundGoodman 23dfdd3
misc: Add phony target to check if uv is installed
EdmundGoodman a6694ef
Merge branch 'uv-packaging' of github.com:EdmundGoodman/xdsl into uv-…
EdmundGoodman bc747ee
misc: Make uv-installed phony fail when not installed
EdmundGoodman 18a50f8
docs: Update readme to reflect uv usage
EdmundGoodman 0218bba
tests: Add uv run to lit.cfg file
EdmundGoodman 507d2df
Revert "docs: Update readme to reflect uv usage"
EdmundGoodman 5cdd709
Revert "Revert "docs: Update readme to reflect uv usage""
EdmundGoodman 14a407e
Revert "tests: Add uv run to lit.cfg file"
EdmundGoodman 111873d
install: Remove extraneous extra imports
EdmundGoodman ef480c9
Add uv-installed dependency to all targets using uv run
EdmundGoodman 6b9b5a2
ci: Add update-bot to replace Dependabot behaviour for uv
EdmundGoodman d0e6877
ci: Add assignees to version bump PR and disable dependabot
EdmundGoodman b803524
install: Add jax and riscv as default extras, as the are required for…
EdmundGoodman b12a76a
ci: Add superlopuh to update bot pr list
EdmundGoodman 242d587
ci: Remove dependabot config file
EdmundGoodman e3dd09d
Update flake for uv
alexarice ea40cb4
Revert "ci: Remove dependabot config file"
EdmundGoodman 37d2919
docs: Update docs to add describe old mechanism of using pip
EdmundGoodman 9b7493a
Fix pip install instructions in README
EdmundGoodman d529813
Merge branch 'main' into uv-packaging
EdmundGoodman cc1743d
Switch to only installing dev dependencies
EdmundGoodman 2c18b11
Make UV respect user venv directory
EdmundGoodman 9317527
Route CI venv setup through makefile
EdmundGoodman 24b9b82
Merge branch 'main' into uv-packaging
EdmundGoodman 95b15c1
Manually revert back to using .venv in CI
EdmundGoodman 2ef298e
Merge branch 'uv-packaging' of github.com:EdmundGoodman/xdsl into uv-…
EdmundGoodman b91b9be
Change into xdsl dir in CI flow
EdmundGoodman 1a5745c
Revert "Change into xdsl dir in CI flow"
EdmundGoodman f173ad0
Fix --only-dev flag
EdmundGoodman ebffd2a
Fix broken test case
EdmundGoodman 45d4ba6
Fix escape characters in test regex
EdmundGoodman a9579fb
attempt with explicit .venv name
superlopuh 761771a
log things
superlopuh 46aaf0a
exclude correct path
superlopuh 39b1cb0
revert logging
superlopuh b85bb1a
Merge branch 'main' into uv-packaging
superlopuh 8933cd5
update lockfile
superlopuh 597ba50
fix botched merge
superlopuh 88605d4
fix again
superlopuh c21914f
more fixes
superlopuh 70d46ee
Remove 'for example' in workflow comment
EdmundGoodman 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 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
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 |
---|---|---|
|
@@ -21,18 +21,14 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' # caching pip dependencies | ||
cache-dependency-path: | | ||
setup.py | ||
requirements.txt | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
enable-cache: true | ||
cache-dependency-glob: "uv.lock" | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
run: uv python install ${{ matrix.python-version }} | ||
|
||
- name: Run code formatting checks with pre-commit | ||
uses: pre-commit/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update Bot | ||
|
||
on: | ||
workflow_dispatch: | ||
# Set the schedule, every week at 8:00am on Monday | ||
schedule: | ||
- cron: 0 8 * * 1 | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: astral-sh/setup-uv@v3 | ||
|
||
- run: | | ||
echo "\`\`\`" > uv_output.md | ||
uv lock &>> uv_output.md | ||
echo "\`\`\`" >> uv_output.md | ||
|
||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Update uv lockfile | ||
title: Update uv lockfile | ||
body-path: uv_output.md | ||
branch: update-uv | ||
base: main | ||
labels: install | ||
delete-branch: true | ||
add-paths: uv.lock | ||
assignees: math-fehr, georgebisbas, superlopuh |
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.
👍