Skip to content

Support reading Python version from Poetry pyproject.toml #629

Closed

Description

@hongbo-miao

Since Poetry has Python version defined in pyproject.toml

[tool.poetry.dependencies]
python = "3.11.x"

It would be great to support reading Python version from Poetry pyproject.toml.

Something like

      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version-file: path/to/pyproject.toml

FYI, today actions/setup-go supports similar way like this:

      - name: Set up Go
        uses: actions/setup-go@v4
        with:
          go-version-file: path/to/go.mod

(Inside go.mod, it has Go version defined)

Thanks! 😃

Activity

  1. e-korolevskii commented on Mar 21, 2023

    @e-korolevskii
    Contributor

    Hello @hongbo-miao!
    Thank you for your request!
    We'll look into it and get back to you with an answer!

  2. DimitriPapadopoulos commented on Apr 13, 2023

    @DimitriPapadopoulos
    Contributor

    This looks like a duplicate of #542.

  3. hongbo-miao commented on Apr 13, 2023

    @hongbo-miao
    Author

    It is, I will copy my post there, thanks @DimitriPapadopoulos !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew 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