Skip to content

Twiddle pyproject.toml license specification to reduce deprecation warnings#42

Merged
RhysU merged 1 commit intomasterfrom
claude/fix-build-pyproject-p3HHI
Jan 11, 2026
Merged

Twiddle pyproject.toml license specification to reduce deprecation warnings#42
RhysU merged 1 commit intomasterfrom
claude/fix-build-pyproject-p3HHI

Conversation

@RhysU
Copy link
Copy Markdown
Owner

@RhysU RhysU commented Jan 11, 2026

Update license field to use {text = "MPL-2.0"} format and lower setuptools requirement to >=60 to support Python 3.7 and 3.8.

Background:

  • setuptools 70.0.0 dropped Python 3.7 support
  • setuptools 76.0.0 dropped Python 3.8 support
  • setuptools 77.0.0 introduced SPDX string format (license = "MPL-2.0")
  • Previous requirement of setuptools>=80 was incompatible with Python 3.7/3.8

The SPDX string format is only available in setuptools>=77, which doesn't support Python 3.7/3.8. This fix uses the {text = "..."} table format which works across all setuptools versions (60+).

Note: setuptools>=77 will still show a deprecation warning for the table format, but this is unavoidable while maintaining Python 3.7/3.8 support. The {text = "..."} format is preferred over {file = "..."} as it directly specifies the license identifier.

Fixes #41

Update license field to use {text = "MPL-2.0"} format and lower setuptools
requirement to >=60 to support Python 3.7 and 3.8.

Background:
- setuptools 70.0.0 dropped Python 3.7 support
- setuptools 76.0.0 dropped Python 3.8 support
- setuptools 77.0.0 introduced SPDX string format (license = "MPL-2.0")
- Previous requirement of setuptools>=80 was incompatible with Python 3.7/3.8

The SPDX string format is only available in setuptools>=77, which doesn't
support Python 3.7/3.8. This fix uses the {text = "..."} table format which
works across all setuptools versions (60+).

Note: setuptools>=77 will still show a deprecation warning for the table
format, but this is unavoidable while maintaining Python 3.7/3.8 support.
The {text = "..."} format is preferred over {file = "..."} as it directly
specifies the license identifier.

Changes:
- setuptools>=80 → setuptools>=60 (supports Python 3.7+)
- license = {file = "LICENSE"} → license = {text = "MPL-2.0"}

Fixes #41
@RhysU RhysU merged commit 78eb917 into master Jan 11, 2026
14 checks passed
@RhysU RhysU deleted the claude/fix-build-pyproject-p3HHI branch January 11, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct license specification in pyproject.toml

2 participants