Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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