Skip to content

pyproject.toml is formatted incorrectly #2170

@pasta-pasta

Description

@pasta-pasta

Describe the Bug

As per PEP, if pyproject.oml is using [project] dir, it should either include 'version' entry or have it placed in the 'dynamic' entry. Pyrefly, however, does not have either, and latest versions fail to build using uv:

Building pyrefly==0.48.2
  × Failed to download and build `pyrefly==0.48.2`
  ├─▶ Failed to parse:
  │   `/root/.cache/uv/sdists-v9/pypi/pyrefly/0.48.2/9BKrmQYB_pAZ_JtaPJC9-/src/pyproject.toml`
  ╰─▶ TOML parse error at line 17, column 1
         |
      17 | [project]
         | ^^^^^^^^^
      `pyproject.toml` is using the `[project]` table, but the required
      `project.version` field is neither set nor present in the
      `project.dynamic` list

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions