GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fetching Python version from Pipenv's `Pipfile` · Issue #574 · actions/setup-python

Fetching Python version from Pipenv's Pipfile #574

New issue
Copy link
New issue
Copy link
Closed
Closed
Fetching Python version from Pipenv's Pipfile#574
Copy link
Assignees
v-mahabaleshwars
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic

Description

@kalrish
kalrish
opened on Dec 24, 2022
Issue body actions

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 be extended to support the TOML key requires.python_version in Pipenv's Pipfile.

#542 has been submitted as a similar request for pyproject.toml, another file in TOML format.

Justification:
Dependencies of Python apps not meant to be distributed are often managed with Pipenv, which is developed and maintained by the Python Packaging Authority (PyPA) and their documented tool. Pipenv allows to specify the oldest Python version the app requires in the Pipfile.

The action setup-node, too, can load the Node.js version to set up from a variety of files. 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.

Are you willing to submit a PR?
Yes, I am. If you want me to contribute the described functionality, please let me know of any preferences regarding TOML libraries.

Reacted by Patrik Ragnarsson, Sander Knape, Brian Haslanger, Kirill Malyshev, David, WieeRd, Stephen Attard, Daniel Possenriede, Alex Burkey and Ram Vasuthevan

Activity

  1. kalrish
    added
    feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
    needs triage
    on Dec 24, 2022
  2. MaksimZhukov commented on Dec 26, 2022

    @MaksimZhukov
    MaksimZhukov
    on Dec 26, 2022
    Contributor
    More actions

    Hello @kalrish! Thank you for reporting this!
    We'll consider updating the parsing logic for the python-version-file input.

  3. MaksimZhukov
    removed
    needs triage
    on Dec 26, 2022
  4. kalrish commented on Dec 30, 2022

    @kalrish
    kalrish
    on Dec 30, 2022
    Author
    More actions

    Thank you, @MaksimZhukov. If you decide to accept this feature, I would be glad to implement it for you, or at least try. In any case, I wish you a good start into the new year :). Take care!

  5. dav-tb commented on Oct 23, 2023

    @dav-tb
    dav-tb
    on Oct 23, 2023
    More actions

    This would be a most welcome addition.

  6. WieeRd commented on Jan 15, 2024

    @WieeRd
    WieeRd
    on Jan 15, 2024
    More actions

    Similar to this, pyproject.toml support would be also nice.
    The project.requires-python key contains Python version requirement.

    [project]
    requires-python = ">=3.11"
    Reacted by Daniel Possenriede and Geoffrey Bachelot
  7. aradkdj commented on Mar 26, 2025

    @aradkdj
    aradkdj
    on Mar 26, 2025
    Contributor
    More actions

    Since #669 got merged, could work towards this be started? Would a PR be welcomed?

  8. v-mahabaleshwars
    self-assigned this
    on May 20, 2025
  9. v-mahabaleshwars commented on Jul 31, 2025

    @v-mahabaleshwars
    v-mahabaleshwars
    on Jul 31, 2025
    Contributor
    More actions

    Hello everyone,
    This feature request has been addressed in PR #1067, which has been merged into the main branch.
    Closing this issue as the requested feature is now implemented.

    Reacted by David
  10. v-mahabaleshwars
    closed this as completedon Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @v-mahabaleshwars
    v-mahabaleshwars

Labels

feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.