pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.92k stars 382 forks source link

pyinfra/operations: Handle latest value in installing pip requirements file #1237

Closed amiraliakbari closed 1 week ago

amiraliakbari commented 2 weeks ago

Currently in the pip.packages operation, the latest parameter is only handled when packages argument is passed. This PR adds --upgrade to the final command when only a requirements file is specified.