Skip to content

builds.tools.python: 3 documented, but not working #10942

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

Closed
FriedrichFroebel opened this issue Dec 5, 2023 · 1 comment
Closed

builds.tools.python: 3 documented, but not working #10942

FriedrichFroebel opened this issue Dec 5, 2023 · 1 comment

Comments

@FriedrichFroebel
Copy link

Details

Expected Result

build:
  os: ubuntu-22.04
  tools:
    python: 3

should work or throw a meaningful error message that the Python version should be a string.

Actual Result

I am told that 3 is an invalid value, while the value itself occurs inside the list of allowed values:

Problem in your project's configuration. Invalid configuration option "build.tools.python": expected one of (2.7, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3, miniconda3-4.7, mambaforge-4.10, mambaforge-22.9), got 3

Only https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python seems to indicate that the value needs to be a string.

@stsewd
Copy link
Member

stsewd commented Dec 5, 2023

Hi, you need to use quotes to force the value to be string, see #9719. Sorry about the confusion.

@stsewd stsewd closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants