Skip to content

Use SPDX license tags in pyproject.toml #152

@bdice

Description

@bdice

We want to use SPDX license identifiers in pyproject.toml files, following the Python Packaging Docs on the license field.

Today we define our licenses in a way that was meant to pass wheeltamer, an internal check for wheels which is no longer used.

Therefore we should replace this:

[project]
license = { text = "Apache 2.0" }

with this (note the dash, which makes this a valid SPDX identifier):

[project]
license = "Apache-2.0"

Specifically, this change conforms to: https://peps.python.org/pep-0639/#deprecate-license-key-table-subkeys

Approach

Apply updates like the following to all projects in RAPIDS:

  • use SPDX license strings (e.g. Apache-2.0) in [project].license field
  • remove license trove classifiers
  • remove [tool.setuptools].license-files, in favor of using license-files in [project]
  • if scikit-build-core, set floor of scikit-build-core>=0.11.0
  • if setuptools, set floor of setuptools>=77.0.0
  • remove unnecessary configuration for other backends:
    • e.g. [tool.setuptools] tables in scikit-build-core projects
  • remove unnecessary build dependencies
    • e.g. including both setuptools and scikit-build-core

hatchling projects (GitHub search)

scikit-build-core projects (GitHub search)

setuptools projects (GitHub search)

Metadata

Metadata

Assignees

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