Skip to content

pyproject.toml: use non-deprecated license specification - #1687

Merged
Emantor merged 1 commit into
labgrid-project:masterfrom
Bastian-Krause:bst/pyproject-license
Aug 26, 2026
Merged

pyproject.toml: use non-deprecated license specification#1687
Emantor merged 1 commit into
labgrid-project:masterfrom
Bastian-Krause:bst/pyproject-license

Conversation

@Bastian-Krause

@Bastian-Krause Bastian-Krause commented Jul 8, 2025

Copy link
Copy Markdown
Member

Description
Fixes these deprecation warnings during python -m build:

env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
        ********************************************************************************
        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 2026-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.
        ********************************************************************************
!!
env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:
        License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************
!!

Checklist

  • PR has been tested

Closes #1956

@Bastian-Krause
Bastian-Krause force-pushed the bst/pyproject-license branch from e2128eb to e97065f Compare July 8, 2025 08:01
@codecov

codecov Bot commented Jul 8, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.8%. Comparing base (a7a96a0) to head (297cc74).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1687   +/-   ##
======================================
  Coverage    60.8%   60.8%           
======================================
  Files         184     184           
  Lines       15189   15189           
======================================
  Hits         9241    9241           
  Misses       5948    5948           
Flag Coverage Δ
3.10 60.8% <ø> (-0.1%) ⬇️
3.11 60.8% <ø> (+<0.1%) ⬆️
3.12 60.7% <ø> (-0.1%) ⬇️
3.13 60.7% <ø> (-0.1%) ⬇️
3.14 60.7% <ø> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Comment thread pyproject.toml
@Bastian-Krause
Bastian-Krause marked this pull request as draft July 8, 2025 09:42
Comment thread pyproject.toml
Comment thread pyproject.toml
@Bastian-Krause Bastian-Krause added the dependencies Pull requests that update a dependency file label Jul 7, 2026
Fixes these deprecation warnings during `python -m build`:

  env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
  !!
          ********************************************************************************
          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 2026-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.
          ********************************************************************************
  !!

  env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!
          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:
          License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************
  !!

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@Bastian-Krause
Bastian-Krause marked this pull request as ready for review August 26, 2026 12:07
@Bastian-Krause

Copy link
Copy Markdown
Member Author

Debian Trixie and recent Yocto versions support it. pip install will use the latest version by itself anyway.

@Emantor
Emantor merged commit 9c381c1 into labgrid-project:master Aug 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants