-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat: consolidated pip-compile -> uv migration (all 5 stacked PRs, rebased onto master) #38915
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
base: master
Are you sure you want to change the base?
Changes from all commits
976bcef
8398493
3951ef3
3ba6641
f3aad4d
e438c12
599b970
ed5f8a5
138aafa
e495a60
d3f85f9
ed31316
9777414
362c94b
6d4d18a
a1d3ea1
1ac90a6
4ab40db
afdcc75
196f97c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ jobs: | |
| git fetch origin "$BASE_SHA" | ||
|
|
||
| # The ^"? is because git may quote weird file paths | ||
| if git diff --name-only "$BASE_SHA" | grep -P '^"?((requirements/)|(scripts/.*?/requirements/))'; then | ||
| if git diff --name-only "$BASE_SHA" | grep -P '^"?((requirements/)|(scripts/.*?/requirements/)|(scripts/[^/]+/pyproject\.toml)|(scripts/[^/]+/uv\.lock)|(pyproject\.toml)|(uv\.lock))'; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should add a comment here, as this doesn’t seem to be a permanent solution. In the upcoming follow-up PRs, we plan to remove the requirements folder, so this will need to be updated again. |
||
| echo "RELEVANT=true" >> "$GITHUB_ENV" | ||
| fi | ||
|
|
||
|
|
@@ -48,6 +48,17 @@ jobs: | |
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: install system requirements | ||
| if: ${{ env.RELEVANT == 'true' }} | ||
| run: | | ||
| sudo apt-get update && sudo apt-get install libmysqlclient-dev libxmlsec1-dev | ||
|
|
||
| - name: Install uv | ||
| if: ${{ env.RELEVANT == 'true' }} | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: "Recompile requirements" | ||
| if: ${{ env.RELEVANT == 'true' }} | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,20 @@ | ||
| # Temporarily disabled: `find_python_dependencies` (from edx-repo-tools) only | ||
| # knows how to scan pip-compile's requirements/edx/{base,testing}.txt for | ||
| # undocumented git-hosted dependencies. Those files were removed when this | ||
| # repo switched to pyproject.toml + uv (see | ||
| # https://github.com/openedx/public-engineering/issues/543). Re-enable once | ||
| # edx-repo-tools can scan pyproject.toml/uv.lock instead — tracked at | ||
| # https://github.com/openedx/repo-tools/issues/725, fix proposed in | ||
| # https://github.com/openedx/repo-tools/pull/735. | ||
| name: Check Python Dependencies | ||
|
|
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| check_dependencies: | ||
| runs-on: ubuntu-latest | ||
| if: false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a TODO so this does not stay disabled indefinitely: |
||
|
|
||
| strategy: | ||
| matrix: | ||
|
|
||
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.
You should add a comment here, as this doesn’t seem to be a permanent solution. In the upcoming follow-up PRs, we plan to remove the requirements folder, so this will need to be updated again.