Skip to content

Modernize license handling to use SPDX expressions#22

Merged
jph00 merged 1 commit into
masterfrom
fix/modernize-license-handling
Jun 25, 2025
Merged

Modernize license handling to use SPDX expressions#22
jph00 merged 1 commit into
masterfrom
fix/modernize-license-handling

Conversation

@RensDimmendaal
Copy link
Copy Markdown
Contributor

nbdev_pypi raises the following warnings:

.../.venv/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!

This PR:

  • Replace deprecated license classifiers with modern SPDX expressions
  • Remove 'License :: OSI Approved :: *' classifiers that cause setuptools warnings
  • Update license mapping to use SPDX identifiers (Apache-2.0, MIT, etc.)
  • Simplify license handling logic since we no longer need tuples

- Replace deprecated license classifiers with modern SPDX expressions
- Remove 'License :: OSI Approved :: *' classifiers that cause setuptools warnings
- Update license mapping to use SPDX identifiers (Apache-2.0, MIT, etc.)
- Simplify license handling logic since we no longer need tuples
@RensDimmendaal RensDimmendaal requested a review from jph00 June 24, 2025 07:43
@jph00
Copy link
Copy Markdown
Contributor

jph00 commented Jun 25, 2025

This is much nicer - thank you :)

@jph00 jph00 merged commit 625d026 into master Jun 25, 2025
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.

2 participants