actions / setup-python

Set up your GitHub Actions workflow with a specific version of Python
MIT License
1.59k stars 505 forks source link

Ability to set desired version of pip, or to not update it at all #901

Open bodgit opened 4 days ago

bodgit commented 4 days ago

Description:

It would be useful if there was a way to either set the desired version of pip, or to stop it from being updated to the latest version.

Justification:

I need to make use of the PIP_USE_FEATURE=truststore ability which is currently broken in the latest version 24.1 of pip, but worked fine in 24.0 and earlier.

My Python workflows are now broken until a new version of pip is made available as I can't seemingly stop this action from always updating pip to the latest version.

Are you willing to submit a PR?

Yes.

bodgit commented 4 days ago

https://github.com/pypa/pip/issues/12779 for the pip bug affecting 24.1.

aparnajyothi-y commented 3 days ago

Hello @bodgit, Thank you for creating this issue and we will look into it :)

rafal-pomocnik-captivateiq commented 2 days ago

+1 for the need, currently overcoming by having pip install --upgrade pip==24.0 right after python setup action