Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading Python version from Poetry pyproject.toml #629

Closed
hongbo-miao opened this issue Mar 18, 2023 · 3 comments
Closed

Support reading Python version from Poetry pyproject.toml #629

hongbo-miao opened this issue Mar 18, 2023 · 3 comments
Labels
feature request New feature or request to improve the current logic

Comments

@hongbo-miao
Copy link

hongbo-miao commented Mar 18, 2023

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

@hongbo-miao hongbo-miao added feature request New feature or request to improve the current logic needs triage labels Mar 18, 2023
@e-korolevskii
Copy link
Contributor

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

@DimitriPapadopoulos
Copy link
Contributor

This looks like a duplicate of #542.

@hongbo-miao
Copy link
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
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

3 participants