News for hackers. Stuff that matters.
Re:uv: An extremely fast Python package and project manager,... by kortex on Monday June 23, 2025 @04:47PM (#44359910)
We use uv to compile requirements.txt from pyproject.toml to get the locked versions.

    # Makefile
    compile-deps:
     uv pip compile pyproject.toml -o requirements.txt
    
    compile-deps-dev:
     uv pip compile --extra=dev pyproject.toml -o requirements.dev.txt
Re:uv: An extremely fast Python package and project manager,... by espdev on Monday June 23, 2025 @06:33PM (#44360877)
What for? Support legacy CI/CD pipelines or something like that? uv.lock already contains locked versions of all dependencies plus a lot of other needed metadata.
Re:uv: An extremely fast Python package and project manager,... by halfcat on Monday June 23, 2025 @07:32PM (#44361297)
> What for? Support legacy CI/CD pipelines

Yes. Azure, for instance, looks for requirements.txt if you deploy a web app to Azure App Service.

If you’re doing a code-based deployment, it works really well. Push to GitHub, it deploys.

You can of course do a container-based deployment to Azure App Service and I’d assume that will work with uv.

Re:uv: An extremely fast Python package and project manager,... by esseph on Tuesday June 24, 2025 @02:12AM (#44363302)
"legacy CI/CD pipelines"

Damn I'm getting old

Re:uv: An extremely fast Python package and project manager,... by espdev on Sunday June 29, 2025 @05:39PM (#44416669)
Maybe. I've been programming in C++ and also in Python for almost 20 years. And I'm just happy that Python has finally started to have convenient tools for packaging and dependency management. I thought everything was cursed here, and I just hate requirements.txt. It seems they were able to overcome this curse.