Skip to content

Conversation

TheFunctionalGuy
Copy link

@TheFunctionalGuy TheFunctionalGuy commented Oct 15, 2025

Description

According to https://packaging.python.org/en/latest/specifications/license-expression/ expressions with spaces are not allowed (see example with # spaces are not allowed).

This should fix problems when parsing the license information with a library that expects a valid SPDX expression (e.g.: https://pypi.org/project/license-expression/).

Copy link
Collaborator

@browniebroke browniebroke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Not sure if this is still needed since we migrated to pyproject.toml in #9056

FWIW, I checked and use the correct value in the pyproject.toml:

https://github.com/encode/django-rest-framework/blob/577bb3c81973eaa543e3eb47ae3bdd4c4968cc01/pyproject.toml#L9C1-L9C25

@browniebroke browniebroke added this to the 3.17 milestone Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants