Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

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.

});
t.true(
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
@rwestergren
Copy link
Contributor

Would love to have this!

Programmer-RD-AI

This comment was marked as outdated.

@Programmer-RD-AI
Copy link

I'm looking forward to this feature. UV support would be a great addition to the plugin. I appreciate the work on this!

@RiaanVR
Copy link

RiaanVR commented Jul 31, 2025

@czubocha as the last one to publish a release, any idea who's looking into PRs, this would be quite valuable!

@RiaanVR RiaanVR mentioned this pull request Jul 31, 2025
1 task
@regisverdin
Copy link

regisverdin commented Aug 14, 2025

+1 Would be great to see this merged. Our build system is currently split between multiple packaging tools because we can't use uv with serverless.

@j-adamczyk
Copy link

+1

@tampueroc
Copy link

I also would like for this PR to get traction, thank you for opening! +1

@threes-was-taken
Copy link

+1

@czubocha
Copy link
Contributor

Good news - the serverless-python-requirements plugin is now integrated into Serverless Framework v4.22.0! 🎉
This release introduces built-in uv support and ensures that all dependencies have been upgraded to their latest secure versions.

It’s fully backward compatible, covered under the same SLA and maintenance policy as the Framework itself.

Because of this integration, the standalone serverless-python-requirements plugin is now deprecated and will no longer be maintained separately.
The built-in integration activates automatically whenever a custom.pythonRequirements block is present in your config.
To switch to it, simply remove the plugin entry from your plugins list in serverless.yml and you can also remove it from your package.json dependencies.

📘 Check out the official docs for more details.

From now on, please report all issues and feature requests related to this integration in the Serverless Framework repository.

Thanks everyone for your patience, feedback, and contributions! 💪

@czubocha czubocha closed this Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for uv project management

9 participants