Add license classifier back to pyproject.toml#19599
Conversation
6d09750 to
6a01c4d
Compare
Co-authored-by: Alex Waygood <[email protected]>
However, PEP 639 explicitly recommends removing the license classifier. Ruff should lead by example in adopting PEP 639 and encourage tools such as Given its wide adoption, Ruff, like |
|
@AlexWaygood I understand the But then the Test Plan in #19624 (comment) seems to suggest that |
This is the reason why we reverted the entire change and it requires a fix to maturin first. |
|
Are you certain this is an issue with maturin? In theory, maturin ≥ 1.9 is supposed to support PEP 639: As far as I can understand, this is an issue with pip-licenses which is unable to find the licensing information in package metadata. Are you really implying the licensing information is missing from package metadata?
Change #19499 does two things:
Using setuptools, a license = {text = "GPL-3.0-or-later"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]yields a while such a license = "GPL-3.0-or-later"yields a I believe pip-licences does not support the switch from |
|
A maturin maintainer identified it as a bug https://github.com/PyO3/maturin/compare/konsti/add-license-files-to-sdist |
|
Once the maturin bug is fixed, hopefully in release 1.9.3, perhaps #19499 can be reconsidered as #19661. It turns out pip-licences is not much maintained and has been forked into pip-licenses-cli which does support PEP 639. Not sure it's worth taking it into account. |
* main: (24 commits) Add `Checker::context` method, deduplicate Unicode checks (#19609) [`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) (#19399) [ty] Add flow diagram for import resolution [ty] Add comments to some core resolver functions [ty] Add missing ticks and use consistent quoting [ty] Reflow some long lines [ty] Unexport helper function [ty] Remove offset from `CompletionTargetTokens::Unknown` [`pyupgrade`] Fix `UP030` to avoid modifying double curly braces in format strings (#19378) [ty] fix a typo (#19621) [ty] synthesize `__replace__` for dataclasses (>=3.13) (#19545) [ty] Discard `Definition`s when normalizing `Signature`s (#19615) [ty] Fix empty spans following a line terminator and unprintable character spans in diagnostics (#19535) Add `LinterContext::settings` to avoid passing separate settings (#19608) Support `.pyi` files in ruff analyze graph (#19611) [ty] Sync vendored typeshed stubs (#19607) [ty] Bump docstring-adder pin (#19606) [`perflint`] Ignore rule if target is `global` or `nonlocal` (`PERF401`) (#19539) Add license classifier back to pyproject.toml (#19599) [ty] Add stub mapping support to signature help (#19570) ...
|
Maturin 1.9.3 with the fix for source dist license file inclusions is out |
Reverts #19499
@AlexWaygood brought to light that the same change caused a lot of churn for
typing_extensionsusers:Given that this causes significant churn without a very clear benefit for users, we decided to wait with this change until the ecosystem is further along.