Skip to content

Fix outdated project settings#1601

Merged
j-bennet merged 1 commit into
mainfrom
j-bennet/fix-setuptools
Jun 3, 2026
Merged

Fix outdated project settings#1601
j-bennet merged 1 commit into
mainfrom
j-bennet/fix-setuptools

Conversation

@j-bennet
Copy link
Copy Markdown
Contributor

@j-bennet j-bennet commented Jun 3, 2026

Description

Project settings were outdated. This message popped up when running a release:

UserWarning: pyproject.toml: at [tool.setuptools.dynamic]
version = {attr = ...} is forcing setuptools to override the version setuptools-scm did already set
When using setuptools-scm it's invalid to use setuptools dynamic version as well, please remove it.
Setuptools-scm is responsible for setting the version, forcing setuptools to override creates errors.
  warnings.warn(
/private/var/folders/hb/1wqy7rfj7sn63602c00_kq180000gn/T/build-env-m79t558q/lib/python3.12/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 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.
        ********************************************************************************

@j-bennet j-bennet changed the title Fix outdated setuptools settings. Fix outdated project settings Jun 3, 2026
@j-bennet j-bennet merged commit b667e16 into main Jun 3, 2026
8 of 9 checks passed
@j-bennet j-bennet deleted the j-bennet/fix-setuptools branch June 3, 2026 00:34
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.

1 participant