Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

iloveitaly
Copy link
Contributor

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

Copy link
Contributor

@JakeCooper JakeCooper left a 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?

Copy link
Contributor

@coffee-cup coffee-cup left a 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

Comment on lines 122 to 129
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(),
)]));
}
Copy link
Contributor

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

- Add `snapshot_kind: text` to snapshots
- Change `postgresql` to `postgresql.dev` in dependencies
@iloveitaly
Copy link
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better Python provider
3 participants