-
Notifications
You must be signed in to change notification settings - Fork 15
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
Migrate to UV #2282
Migrate to UV #2282
Changes from all commits
a7a6621
7d853ad
915e49e
7528927
c9972e5
73ae578
c7e9d0c
8a69cf2
6d5d0d1
f554139
eefd6f3
1b0e3a6
7ad181a
4022a60
a7d51c9
d847929
315ee6b
1e57ca1
c85d8a3
ea89bad
d32a8a0
32f302a
69c7155
f43426b
c5b78be
f3d3075
f2138a2
bd91e5c
165b0fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: UV Lock | ||
chris48s marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
on: | ||
push: | ||
branches: | ||
- 'dependabot/**' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- run: ./deployscripts/install_uv.sh | ||
|
||
- run: uv lock | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Update uv.lock |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"base_ami_id": "ami-0c40c7ef04b5ab961", | ||
"recipe_version": "0.0.35" | ||
"recipe_version": "0.0.41" | ||
chris48s marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: AddUser | ||
description: Adds a system user | ||
schemaVersion: 1.0 | ||
component_version: 0.0.4 | ||
component_version: 0.0.5 | ||
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. What changed here? 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. Nothing. When I pushed stuff to the dev AWS account to test it, the image builder threw errors saying there was already a different 0.0.4 of I don't really know what a good pattern is for managing this stuff, but given I don't think there's really any downside to bumping a version even if nothing changed, keeping them aligned across AWS accounts seems sensible to me. |
||
parameters: | ||
- username: | ||
type: string | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -xeE | ||
|
||
UV_CONSTRAINT=">=0.4.27,<0.5.0" | ||
|
||
if [ "$CI" = "true" ]; then | ||
pip install uv"$UV_CONSTRAINT" | ||
else | ||
sudo PIP_BREAK_SYSTEM_PACKAGES=1 pip install uv"$UV_CONSTRAINT" | ||
fi |
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.
Adding
$HOME/.cache/uv
here will mean thatuv
doesn't need to re-download packages between runs.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.
done in 9d49161