Skip to content

Move pyproject license metadata to the PEP 639 form before setuptools enforces it (2027-02-18) #77

Open

Description

@daniel-pittman

Building the wheel with setuptools 84.2.1 (the floor Dependabot #76 raises the build requirement to) succeeds, but setuptools warns twice:

  • project.license as a TOML table is deprecated. pyproject.toml has license = { file = "LICENSE" }.
  • License classifiers are deprecated. pyproject.toml lists License :: OSI Approved :: MIT License.

setuptools states: "By 2027-Feb-18, you need to update your project and remove deprecated calls." After that date a newer setuptools can refuse the build.

Fix: switch to the PEP 639 fields, license = "MIT" and license-files = ["LICENSE"], and drop the license classifier. Then confirm that python -m build --wheel runs with no deprecation warnings and that the wheel still includes LICENSE under dist-info/licenses/.

Repro: python -m build --wheel --no-isolation in a venv with setuptools==84.2.1 and build installed.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions