Title: Versions prefixed with `==` fail to be found when not in the local cache · Issue #711 · actions/setup-python · GitHub
Open Graph Title: Versions prefixed with `==` fail to be found when not in the local cache · Issue #711 · actions/setup-python
X Title: Versions prefixed with `==` fail to be found when not in the local cache · Issue #711 · actions/setup-python
Description: 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...
Open Graph Description: 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-p...
X Description: 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-p...
Opengraph URL: https://github.com/actions/setup-python/issues/711
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Versions prefixed with `==` fail to be found when not in the local cache","articleBody":"**Description:**\r\nWhen a version is prefixed with `==` and is not found in the local cache, it fails to be found for downloading.\r\n\r\nI encountered this while specifying the version through `project.requires-python` in `pyproject.toml`.\r\nI'm not sure if `python-version` also has this issue, but I presume so.\r\n\r\n**Action version:**\r\nv4.7.0\r\n\r\n**Platforms:**\r\n- [X] Ubuntu\r\n- [X] macOS\r\n- [X] Windows\r\n\r\n**Runner type:**\r\n- [X] Hosted\r\n- [ ] Self-hosted\r\n\r\n**Tools version:**\r\nEvery Python version not in the local cache\r\n\r\n**Repro steps:** \r\nI was originally using `python-version: ['3.10.10']`, which [successfully downloads](https://github.com/Harmon758/Harmonbot/actions/runs/5745881878/job/15574520762#step:3:32).\r\nUpon 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](https://github.com/Harmon758/Harmonbot/actions/runs/5745943813/job/15574684243#step:3:13).\r\n\r\nAdditionally, 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](https://github.com/Harmon758/Harmonbot/actions/runs/5746049553/job/15574947323#step:3:12).\r\n\r\n**Expected behavior:**\r\nThe version is successfully downloaded and installed\r\n\r\n**Actual behavior:**\r\nThe version fails to be found","author":{"url":"https://github.com/Harmon758","@type":"Person","name":"Harmon758"},"datePublished":"2023-08-03T03:06:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/711/setup-python/issues/711"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2f57ca1-e16d-47f2-6de5-385b77b191bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9A8:1D4F6C:621A0:842AE:696970AC |
| html-safe-nonce | 21449cb27e8f6b4bbf0f9debed205e607431962260a77e4005bbf95c7f030076 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUE4OjFENEY2Qzo2MjFBMDo4NDJBRTo2OTY5NzBBQyIsInZpc2l0b3JfaWQiOiIxOTQwNzQ5Mjk0NTEwODk1Mjc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 92c6b13589f5a5cd360af3e1cee787381561896c2dc8f3f6d1c97042ad243794 |
| hovercard-subject-tag | issue:1834193998 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/711/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2254d553f162dcadf3a0b30627a206501c656d0a2dbe8c6a81c66ca87203fcf/actions/setup-python/issues/711 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2254d553f162dcadf3a0b30627a206501c656d0a2dbe8c6a81c66ca87203fcf/actions/setup-python/issues/711 |
| og:image:alt | 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-p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Harmon758 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width