You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Versions prefixed with == fail to be found when not in the local cache #711
Description:
When a version is prefixed with == and is not found in the local cache, it fails to be found for downloading.
I encountered this while specifying the version through project.requires-python in pyproject.toml.
I'm not sure if python-version also has this issue, but I presume so.
Action version:
v4.7.0
Platforms:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
Every Python version not in the local cache
Repro steps:
I was originally using python-version: ['3.10.10'], which successfully downloads.
Upon changing to use python-version-file: pyproject.toml with requires-python = "==3.10.10" (under [project]) in pyproject.toml, the version fails to be found.
Additionally, I confirmed that this is only an issue when the version is not found in the local cache, as removing the patch version in pyproject.toml and changing it to requires-python = "==3.10"successfully installs the version in the local cache.
Expected behavior:
The version is successfully downloaded and installed
Activity
dmitry-shibanov commentedon Aug 3, 2023
Hello @Harmon758. Thank you for your report. We will take a look at the issue.
[pyproject.toml] Remove patch version from project.requires-python
dmitry-shibanov commentedon Sep 7, 2023
Hello @Harmon758. Could you please try to use
actions/setup-python@main?dmitry-shibanov commentedon Oct 10, 2023
Hello @Harmon758. The new version of the action was released and the major tag was updated. For now I'm going to close the issue.
Harmon758 commentedon Oct 21, 2023
Apologies for the delay in testing out the fix.
I can confirm now though that #726 has resolved the issue after updating to v4.7.1.
Thank you!