Skip to content

Replace deprecated pyproject license table + classifier #41

Description

@netanelcyber

Warning

python -m build emits SetuptoolsDeprecationWarnings on every build:

`project.license` as a TOML table is deprecated
License classifiers are deprecated

Deadline stated by setuptools: 2027-02-18 — builds break after that.

Fix

In pyproject.toml:

[project]
license = "MIT"
license-files = ["LICENSE"]

And remove "License :: OSI Approved :: MIT License" from classifiers.

Acceptance

  • python -m build produces zero deprecation warnings
  • PyPI still shows MIT license on the project page

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions