Skip to content

[BUG]: Build-time deprecation warning about project.license usage #13963

@miketheman

Description

@miketheman

Tracer Version(s)

3.10.2

Python Version(s)

Python 3.13

Pip Version(s)

pip 25.0.1

Bug Report

During pip install from a source distribution (i.e. triggering a build, not using a wheel), a deprecation warning is emitted.

Stems from:

license = { text = "LICENSE.BSD3" }

See here for guidance on resolution: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

Reproduction Code

pip install --no-binary :all: ddtrace==3.10.2

Error Logs

...
117.5   × Building wheel for ddtrace (pyproject.toml) did not run successfully.
117.5   │ exit code: 1
117.5   ╰─> [8349 lines of output]
117.5       <string>:26: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
117.5       <string>:28: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
117.5       INFO: DD_FAST_BUILD not enabled
117.5       /tmp/pip-build-env-cbz4duhq/overlay/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
117.5       !!
117.5
117.5               ********************************************************************************
117.5               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).
117.5
117.5               By 2026-Feb-18, you need to update your project and remove deprecated calls
117.5               or your builds will no longer be supported.
117.5
117.5               See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
117.5               ********************************************************************************
117.5
117.5       !!
117.5         corresp(dist, value, root_dir)
...

Libraries in Use

n/a

Operating System

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions