Skip to content

Commit d31ae57

Browse files
Carreauclaude
andcommitted
Use PEP 639 license metadata
Declare the license as the SPDX expression BSD-3-Clause with license-files, which needs flit_core >= 3.12. Drop the License :: trove classifier, which PEP 639 deprecates alongside a license expression. The built metadata now has License-Expression: BSD-3-Clause. Also fix the module header, which pointed to a nonexistent COPYING.txt, to match LICENSE (BSD 3-Clause, 2012-Present). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 538f542 commit d31ae57

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎ipython_pygments_lexers/__init__.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
2323
"""
2424
# -----------------------------------------------------------------------------
25-
# Copyright (c) 2013, the IPython Development Team.
25+
# Copyright (c) 2012-Present, IPython Development Team.
2626
#
27-
# Distributed under the terms of the Modified BSD License.
27+
# Distributed under the terms of the BSD 3-Clause License.
2828
#
29-
# The full license is in the file COPYING.txt, distributed with this software.
29+
# The full license is in the file LICENSE, distributed with this software.
3030
# -----------------------------------------------------------------------------
3131

3232
from __future__ import annotations

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["flit_core >=3.2,<4"]
2+
requires = ["flit_core >=3.12,<4"]
33
build-backend = "flit_core.buildapi"
44

55
[project]
@@ -8,10 +8,10 @@ authors = [
88
{name = "The IPython Development Team", email = "ipython-dev@python.org"},
99
]
1010
readme = "README.md"
11-
license = {file = "LICENSE"}
11+
license = "BSD-3-Clause"
12+
license-files = ["LICENSE"]
1213
classifiers = [
1314
"Framework :: IPython",
14-
"License :: OSI Approved :: BSD License",
1515
"Programming Language :: Python :: 3",
1616
"Programming Language :: Python :: 3 :: Only",
1717
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)