Title: Automatic Python version determination from pyproject.toml · Issue #542 · actions/setup-python · GitHub
Open Graph Title: Automatic Python version determination from pyproject.toml · Issue #542 · actions/setup-python
X Title: Automatic Python version determination from pyproject.toml · Issue #542 · actions/setup-python
Description: Description: Automatically determine the best Python version to install by parsing pyproject.toml and using the tool.poetry.dependencies.python version constraint specifier. The "best" version is the latest available Python version that ...
Open Graph Description: Description: Automatically determine the best Python version to install by parsing pyproject.toml and using the tool.poetry.dependencies.python version constraint specifier. The "best" version is t...
X Description: Description: Automatically determine the best Python version to install by parsing pyproject.toml and using the tool.poetry.dependencies.python version constraint specifier. The "best" ve...
Opengraph URL: https://github.com/actions/setup-python/issues/542
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Automatic Python version determination from pyproject.toml","articleBody":"**Description:**\r\nAutomatically determine the best Python version to install by parsing pyproject.toml and using the `tool.poetry.dependencies.python` version constraint specifier. The \"best\" version is the latest available Python version that satisfies the constraint.\r\n\r\n**Justification:**\r\nThough the recent support for .python-version file is very helpful, this requires duplication of the Python version declaration in the source project when using Poetry. The version declaration is already in the pyproject.toml, and Poetry already uses it to select the best Python version as described above when working locally. It would be ideal for CI/CD to also use pyproject.toml to determine the best Python version, instead of requiring adding another file to the repo (.python-version) that contains the needed Python version.\r\n\r\n**Are you willing to submit a PR?**\r\nYes! Before embarking on such and endeavor, I would like to know if the setup-python maintainers are open to such a feature, and what the preferred configuration inputs might look like.","author":{"url":"https://github.com/BrandonLWhite","@type":"Person","name":"BrandonLWhite"},"datePublished":"2022-11-17T17:20:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/542/setup-python/issues/542"}
| 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:070fe80b-c8df-4e29-6a11-946f5b0f2fc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD96:B510C:29EE4E0:3ABCB36:696925DA |
| html-safe-nonce | e8c6470379ec744cce279974a85f9ed328b91c126845b796ef064ec6d3cdca6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDk2OkI1MTBDOjI5RUU0RTA6M0FCQ0IzNjo2OTY5MjVEQSIsInZpc2l0b3JfaWQiOiI0OTI4NjI2OTM0MTY2Mzk4NDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 37a814fc199ca08ddd019e30b7856a63597f65fe43febc45484f1ba9c1ab22cd |
| hovercard-subject-tag | issue:1453707910 |
| 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/542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d97202d35c16c8abed00d5ab118dcc10d497de26cdcdc5479e8b5a68df9d673f/actions/setup-python/issues/542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d97202d35c16c8abed00d5ab118dcc10d497de26cdcdc5479e8b5a68df9d673f/actions/setup-python/issues/542 |
| og:image:alt | Description: Automatically determine the best Python version to install by parsing pyproject.toml and using the tool.poetry.dependencies.python version constraint specifier. The "best" version is t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BrandonLWhite |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width