Skip to content

Invalid configuration build.tools.python #9635

Closed

Description

@jaraco

Details

Expected Result

According to the docs, I've added a build.tools.python to the config.

When I do, the build fails fast with this error:

Problem in your project's configuration. Invalid "build.tools.python": .readthedocs.yml: Invalid configuration option: build.tools.python. Make sure the key name is correct.

I'm not sure how to make sure the key name is correct. It looks correct to me. It matches the heading in the docs.

Actual Result

It should just work or it should provide a better error message about what expectation was missed. The suggestion to check the key name is unhelpful when it matches a valid key name.

I suspect there may be an undocumented dependency, either on the order of keys in the config or perhaps an os must be supplied to indicate a tools.python.

Aha. I do see now that build.os is "required". Which is weird, because it wasn't required before. Sure would be nice if there was a way not to have to specify the OS in order to specify a Python version.

In that case, the error message should be something like "required key 'build.os' missing". Better, though, would be to decouple these concerns so it's possible to simply override the Python version (especially while users are forced to specify Python versions due to #9623).

Activity

  1. stsewd commented on Oct 3, 2022

    @stsewd
    Member

    Hi, we have an open issue for this same problem at #8912.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions