Skip to content

Not able to install package via 'uv pip install' due to missing metadata in 'pyproject.toml' #244

Description

@moha-gh

Installing the package using uv pip mode (instead of plain pip) fails with:

$ uv --version
uv 0.10.3
$ uv pip install cmsis-pack-manager
Using Python 3.12.12 environment at: .
Resolved 5 packages in 184ms
  x Failed to download and build `cmsis-pack-manager==0.6.0`
  |-> Failed to parse: `/root/.cache/uv/sdists-v9/pypi/cmsis-pack-manager/0.6.0/DmjuoGecpqC99vetrzJI5/src/pyproject.toml`
  `-> TOML parse error at line 8, column 1
        |
      8 | [project]
        | ^^^^^^^^^
      `pyproject.toml` is using the `[project]` table, but the required `project.version` field is neither set nor present in the `project.dynamic` list

In versions of uv older than 0.9.26, the command works. This type of metadata check has been present in uv since before 0.5.10 though (when a nicer error message was added via astral-sh/uv@48c9196) - it just didn't trigger in uv pip mode apparently.

As mentioned in the Python Packaging Guide, the field is indeed required. So it would be nice if it could be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions