serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

feat: support uv-managed projects

Open jfgordon2 opened this issue 1 year ago β€’ 2 comments
trafficstars

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.

jfgordon2 avatar Oct 02 '24 00:10 jfgordon2

Would love to have this!

rwestergren avatar Apr 28 '25 19:04 rwestergren

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

Programmer-RD-AI avatar May 24 '25 18:05 Programmer-RD-AI

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

RiaanVR avatar Jul 31 '25 11:07 RiaanVR

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

regisverdin avatar Aug 14 '25 16:08 regisverdin

+1

j-adamczyk avatar Sep 17 '25 17:09 j-adamczyk

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

tampueroc avatar Oct 13 '25 13:10 tampueroc

+1

threes-was-taken avatar Oct 17 '25 09:10 threes-was-taken

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 avatar Oct 24 '25 12:10 czubocha