Skip to content

uv add textract fails with parse error on requires #9194

Description

@DRMacIver

Running uv add textract==1.6.4 on uv version 0.3.2 (on OSX if relevant) produces the following error:

⠹ textract==1.6.4                                                                                                                                                                                                     error: Failed to download and build `textract==1.6.4`
  Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
--- stdout:

--- stderr:
error in textract setup command: 'install_requires' must be a string or iterable of strings containing valid project/version requirement specifiers; .* suffix can only be used with `==` or `!=` operators
    extract-msg<=0.29.*
               ~~~~~~~^
---

The package in question pip installs fine.

This is presumably just the uv requirement parser being stricter than pip's, and this particular requirements construct is just sufficiently unusual to see in the wild that it hasn't come up before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with a specification or another tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions