Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0868bd

Browse files
committed
Remove deprecated license classifier
GitPython project metadata specify the project's license primarilythrough the value of `license`, currently passed as an argument to`setuptools.setup`, which holds the string `"BSD-3-Clause"`. Thisis an SPDX license identifier readily understood by both humans andmachines.The PyPI trove classifier "License :: OSI Approved :: BSD License"has also been specified in `setup.py`. However, this is not ideal,because:1. It does not identify a specific license. There are multiple "BSD" licenses in use, with BSD-2-Clause and BSD-3-Clause both in very wide use.2. It is no longer recommended to use a trove classifier to indicate a license. The use of license classifiers (even unambiguous ones) has been deprecated. See: -https://packaging.python.org/en/latest/specifications/core-metadata/#classifier-multiple-use -https://peps.python.org/pep-0639/#deprecate-license-classifiersThis commit removes the classifier. The license itself is of courseunchanged, as is the `license` value of `"BSD-3-Clause"`.(An expected effect of this change is that, starting in the nextrelease of GitPython, PyPI may show "License: BSD-3-Clause" insteadof the current text "License: BSD License (BSD-3-Clause)".)This change fixes a warning issued by a subprocess of `pip` wheninstalling the package. The warning, until this change, could beobserved by running `pip install . -v` or `pip install -e . -v` andexamining the verbose output, or by running `pip install .` or`pip install -e .` with the `PYTHONWARNINGS` environment variableset to `error`: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License Seehttps://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !!(In preceding commits, `test_installation` has been augmented toset that environment variable, surfacing the error. This changeshould allow that test to pass, unless it finds other problems.)
1 parent6826b59 commitd0868bd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def _stamp_version(filename: str) -> None:
9595
# "Development Status :: 7 - Inactive",
9696
"Environment :: Console",
9797
"Intended Audience :: Developers",
98-
"License :: OSI Approved :: BSD License",
9998
"Operating System :: OS Independent",
10099
"Operating System :: POSIX",
101100
"Operating System :: Microsoft :: Windows",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp