Skip to content

Fix: fix setuptools deprecation warning#589

Merged
adrien-berchet merged 1 commit intogeoalchemy:mainfrom
pjonsson:fix-license-classifier
Feb 27, 2026
Merged

Fix: fix setuptools deprecation warning#589
adrien-berchet merged 1 commit intogeoalchemy:mainfrom
pjonsson:fix-license-classifier

Conversation

@pjonsson
Copy link
Copy Markdown
Contributor

@pjonsson pjonsson commented Feb 25, 2026

Description

Use the SPDX expression for license
classifier and remove the now deprecated
TOML table license according to this warning
in the CI jobs:

        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2027-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

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

and:

dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: MIT License

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

!!

Checklist

This pull request is:

  • A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • A short code fix
    • Please include: Fixes: #<issue number> in the description if it solves an existing issue
      (which must include a complete example of the issue).
    • Please include tests that fail with the main branch and pass with the provided fix.
  • A new feature implementation or update an existing feature
    • Please include: Fixes: #<issue number> in the description if it solves an existing issue
      (which must include a complete example of the feature).
    • Please include tests that cover every lines of the new/updated feature.
    • Please update the documentation to describe the new/updated feature.

@adrien-berchet
Copy link
Copy Markdown
Member

Hi @pjonsson
Thanks for this, I missed this warning!

Use the SPDX expression for license
classifier and remove the now deprecated
TOML table license according to this warning
in the CI jobs:

        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2027-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

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

and:

dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: MIT License

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

!!
@pjonsson pjonsson force-pushed the fix-license-classifier branch from e4140f1 to 3cff077 Compare February 26, 2026 13:48
@adrien-berchet adrien-berchet merged commit 36ebd0f into geoalchemy:main Feb 27, 2026
3 of 8 checks passed
@pjonsson pjonsson deleted the fix-license-classifier branch February 27, 2026 15:15
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.

3 participants