Skip to content

Support reading Python version from Poetry pyproject.toml #629

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! 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions