-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat: uv support, py 3.13 #1216
base: main
Are you sure you want to change the base?
Conversation
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 mean this looks pretty good to me! Wanna add some tests and a release label?
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.
Looking good! Agree with @JakeCooper about adding an example (examples/python-uv
) to test the plan generation for this update
src/providers/python.rs
Outdated
plan.add_variables(EnvironmentVariables::from([( | ||
"NIXPACKS_UV_VERSION".to_string(), | ||
version, | ||
)])); | ||
|
||
plan.add_variables(EnvironmentVariables::from([( | ||
"UV_PROJECT_ENVIRONMENT".to_string(), | ||
VENV_LOCATION.to_string(), | ||
)])); | ||
} |
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.
suggestion: you can add these in a single command
5b8f9c1
to
fbbfc40
Compare
- Changed the PYTHON_NIXPKGS_ARCHIVE to a new hash. - Updated PostgreSQL package to require the .dev variant for compatibility with psycopg2. - Added comments to clarify the changes for future reference.
7dfb70b
to
27d6f6d
Compare
- Add `snapshot_kind: text` to snapshots - Change `postgresql` to `postgresql.dev` in dependencies
Alright, build is finally passing here. I needed to make some additional updates to properly support the latest nixpkgs version (which included py 3.13). |
Curious what you think of this approach to supporting uv. Happy to add some tests for this as well, wanted to check on the approach before I built out the tests.
Fixes: #1128