Skip to content

hatchling version requirements is incorrect #3638

@michivi

Description

@michivi

Subject

The hatchling>=1.6.0,<2 version requirement is incorrect and results in build failures with any hatchling version between 1.6.0 and 1.27.0 excluded.

The error is as follow:

TypeError: Field `project.license-files` must be a table

This is due to this change being required to address an issue in the project's license declaration.

Environment

I'm running NixOS on the latest unstable.

OS Linux-6.15.4-x86_64-with-glibc2.40
Python 3.13.4
OpenSSL 3.4.1 11 Feb 2025
urllib3 2.5.1.dev4

Steps to Reproduce

  1. Download the project source code (commit 98a60f9c26a4d64cf18c7e004b9adda4303bc28c at this time of writing)
  2. Run hatchling build

Expected Behavior

Successful build, with an output like the following:

[sdist]
dist/urllib3-2.5.1.dev5.tar.gz

[wheel]
dist/urllib3-2.5.1.dev5-py3-none-any.whl

Actual Behavior

With any hatchling version between 1.6.0 and 1.27.0 excluded (for this trial, I used 1.25.0):

TypeError: Field `project.license-files` must be a table

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