Skip to content

Copy license file to directory temporarily during Python build #8789

@EpicWink

Description

@EpicWink

Specifying files outside of the Python project root directory (the one containing the pyproject.toml/setup.py file), in your case the license file ../LICENSE, is deprecated and scheduled for removal on 20 March 2026. See packaging specs.

Initially mentioned in #8731

Warning from setuptools
/tmp/build-env-k8xazfj3/lib/python3.14/site-packages/setuptools/dist.py:483: SetuptoolsDeprecationWarning: Pattern '../LICENSE' cannot contain '..'
!!

        ********************************************************************************
        Please ensure the files specified are contained by the root
        of the Python package (normally marked by `pyproject.toml`).

        By 2026-Mar-20, 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/specifications/glob-patterns/ for details.
        ********************************************************************************

!!
  for path in sorted(cls._find_pattern(pattern, enforce_match))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions