-
Notifications
You must be signed in to change notification settings - Fork 553
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
Cannot parse version number from TOML 1.0.0 pyproject.toml file #897
Comments
The dev version of the toml library used by this tool has supported Toml 1.0.0-rc1 (that allows mixed types in arrays) since 2019. This tool must pull the previous version from NPM that's 4 years old. v2.2.5 must enforce Toml 0.5.0 rules, which forbid mixed types in an Array, as the error says. https://www.npmjs.com/package/@iarna/toml I don't know if the builder or typescript compiler can pull in packages from Github instead of npm. But if so, fixing this should just need a version bump here and elsewhere: setup-python/package-lock.json Line 19 in 82c7e63
|
Hello @Jazzinghen, Thank you for creating this issue and we will look into it :) |
@aparnajyothi-y |
Hello @Jazzinghen 👋, |
Hello @Jazzinghen 👋, |
Hello @Jazzinghen 👋, Thank you for your understanding and cooperation. |
@priya-kinthali sorry I haven't replied earlier. I have been swamped by work, so I couldn't check this. |
Description:
When providing a
pyproject.toml
that uses TOML 1.0.0 entries aspython-version-file
the action fails due to an error within the TOML parser.Action version:
v5.1.0
Platform:
Runner type:
Tools version:
3.12
(the target version)Repro steps:
Create a
pyproject.toml
file using a mixed list (here is the default value for Poetry Dynamic Versioning):Run the action using the file as "Python version file".
Expected behavior:
The action installs Python
>=3.12
in the job's container.Actual behavior:
The action fails with the following error:
The text was updated successfully, but these errors were encountered: