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: support uv-managed projects #850

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jfgordon2
Copy link
Contributor

@jfgordon2 jfgordon2 commented Oct 2, 2024

Resolves #849

Adds support for uv managed projects, following the project's existing pattern of exporting a requirements file using the relevant project tool.

This does buck one-convention in this repo, in that it requires the user to have generated their own lock file, which is generally a best-practice when using one of these project management tools, and inspects for the existence of the uv.lock file as part of its check as to whether or not uv can be utilized with this plugin. This could be an issue for teams that are not otherwise committing their lock files to their repos and have automated deployments of their application in a CI/CD pipeline, although there exists trivial solutions to overcome that barrier.

Note: there is another issue, #830, which also asks for uv support in replacing pip, which this PR does not intend to include.

stderr.includes(
stdout.includes(
Copy link
Contributor Author

@jfgordon2 jfgordon2 Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something weird is going on here that, despite being thrown as throw new serverless.classes.Error it is being output on stdout instead of stderr. I'm uncertain of the cause, but I don't think it's related to this plugin.

@jfgordon2 jfgordon2 marked this pull request as ready for review October 2, 2024 18:40
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.

Add support for uv project management
1 participant