Skip to content

Avoid deprecated license specification format#3723

Merged
larsoner merged 3 commits into
codespell-project:mainfrom
DimitriPapadopoulos:license
Jun 23, 2025
Merged

Avoid deprecated license specification format#3723
larsoner merged 3 commits into
codespell-project:mainfrom
DimitriPapadopoulos:license

Conversation

@DimitriPapadopoulos
Copy link
Copy Markdown
Collaborator

Fix this pip warning:

********************************************************************************
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.
********************************************************************************

PEP 639 support requires setuptools 77 which requires Python 3.9.

Fix this pip warning:

	********************************************************************************
	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.
	********************************************************************************
UP006 Use `dict` instead of `Dict` for type annotation
UP006 Use `list` instead of `List` for type annotation
UP006 Use `set` instead of `Set` for type annotation
UP006 Use `tuple` instead of `Tuple` for type annotation
UP035 Import from `collections.abc` instead
UP035 Import from `re` instead
@larsoner larsoner merged commit fb2ba03 into codespell-project:main Jun 23, 2025
14 checks passed
@larsoner
Copy link
Copy Markdown
Member

@DimitriPapadopoulos DimitriPapadopoulos deleted the license branch June 23, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging packaging related issue

2 participants