Skip to content

ReadTheDocs now support uv #678

@sobolevn

Description

@sobolevn

Hi 👋

ReadTheDocs recently released this feature: https://docs.readthedocs.com/platform/stable/config-file/v2.html#uv

However, this code raises:

python:
  install:
    - method: uv
      command: pip
      path: requirements.txt

Error:

Validate ReadTheDocs Config..............................................Failed
- hook id: check-readthedocs
- exit code: 1

Schema validation errors were encountered.
  .readthedocs.yml::$.python.install[0]: {'method': 'uv', 'command': 'pip', 'path': '.'} is not valid under any of the given schemas
  Underlying errors caused this.

  Best Match:
    $.python.install[0]: 'requirements' is a required property
  Best Deep Match:
    $.python.install[0].method: 'uv' is not one of ['pip', 'setuptools']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions