Title: Fetching Python version from Pipenv's `Pipfile` · Issue #574 · actions/setup-python · GitHub
Open Graph Title: Fetching Python version from Pipenv's `Pipfile` · Issue #574 · actions/setup-python
X Title: Fetching Python version from Pipenv's `Pipfile` · Issue #574 · actions/setup-python
Description: Description: The Python version to set up may be specified with the input python-version-file. As I submit this feature request, this input expects a file containing only the Python version, as used by pyenv. I propose that the feature b...
Open Graph Description: Description: The Python version to set up may be specified with the input python-version-file. As I submit this feature request, this input expects a file containing only the Python version, as use...
X Description: Description: The Python version to set up may be specified with the input python-version-file. As I submit this feature request, this input expects a file containing only the Python version, as use...
Opengraph URL: https://github.com/actions/setup-python/issues/574
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fetching Python version from Pipenv's `Pipfile`","articleBody":"**Description:**\r\nThe Python version to set up may be specified with the [input `python-version-file`](https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-file-input). As I submit this feature request, this input [expects a file containing only the Python version](https://github.com/actions/setup-python/blob/5ccb29d8773c3f3f653e1705f474dfaa8a06a912/src/setup-python.ts#L39-L48), as used by [pyenv](https://github.com/pyenv/pyenv). I propose that the feature be extended to support the [TOML key](https://toml.io/en/v1.0.0#keys) `requires.python_version` in [Pipenv](https://pipenv.pypa.io/en/latest/)'s `Pipfile`.\r\n\r\n#542 has been submitted as a similar request for `pyproject.toml`, another file in [TOML format](https://toml.io/).\r\n\r\n**Justification:**\r\nDependencies of Python apps not meant to be distributed are often managed with [Pipenv](https://pipenv.pypa.io/en/latest/), which is [developed and maintained by the Python Packaging Authority](https://packaging.python.org/en/latest/key_projects/#pipenv) (PyPA) and their [documented tool](https://packaging.python.org/en/latest/tutorials/managing-dependencies/). Pipenv allows to [specify the oldest Python version the app requires in the `Pipfile`](https://pipenv.pypa.io/en/latest/basics/#specifying-versions-of-python).\r\n\r\nThe [action `setup-node`](https://github.com/marketplace/actions/setup-node-js-environment), too, can [load the Node.js version to set up from a variety of files](https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file). It, however, supports not just files containing only the Node.js version, like `.nvmrc` and `.node_version`, but also the structured format of `package.json`.\r\n\r\n**Are you willing to submit a PR?**\r\nYes, I am. If you want me to contribute the described functionality, please let me know of any preferences regarding TOML libraries.","author":{"url":"https://github.com/kalrish","@type":"Person","name":"kalrish"},"datePublished":"2022-12-24T17:50:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/574/setup-python/issues/574"}
| 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:f1b66673-e6d7-24e8-5eaf-fb1b8208ad7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D750:35B0FD:5AE812:793320:6969273D |
| html-safe-nonce | ed02e5c31eb1262ddbebf4d35e082070b92a723aaa02dd90247911ee40acad90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzUwOjM1QjBGRDo1QUU4MTI6NzkzMzIwOjY5NjkyNzNEIiwidmlzaXRvcl9pZCI6IjUzNTQ2NjI5NjgwOTc4NDMwMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 19bdb0ca0c459585be5cc940ae14eb9bde72fca5fd0dc04c1111b6d1683dd3cb |
| hovercard-subject-tag | issue:1510162513 |
| 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/574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4d59eaf50c1629de66271c7a06beb9c6e29bd939900cc339c83b11eb4e37cb9/actions/setup-python/issues/574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4d59eaf50c1629de66271c7a06beb9c6e29bd939900cc339c83b11eb4e37cb9/actions/setup-python/issues/574 |
| og:image:alt | Description: The Python version to set up may be specified with the input python-version-file. As I submit this feature request, this input expects a file containing only the Python version, as use... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kalrish |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width