Skip to content

Commit

Permalink
Pass more specific license argument in setup.py
Browse files Browse the repository at this point in the history
This uses "BSD-3-Clause" instead of "BSD" as the "license" metadata
in setup.py. "BSD-3-Clause" is the SPDX license identifier for the
BSD 3-Clause "New" or "Revised" License (the license GitPython
uses): https://spdx.org/licenses/BSD-3-Clause.html

There is no requirement to use an SPDX license identifier here,
but it is one of the common approaches, and it has the advantage of
making unambiguously clear, when a package is published on PyPI,
exactly what license it uses.

In contrast, the license-related *classifier* is unchanged, since
no more specific classfifier than what is in use now is currently
available.

The combination should result in

    License: BSD License (BSD-3-Clause)

being shown under "Meta" on PyPI, as of the next PyPI release. This
can be seen in other projects that use this combination of license
keyword argument and license-related classifier, such as:
https://pypi.org/project/flask-restx/
  • Loading branch information
EliahKagan committed Nov 3, 2023
1 parent 7387dab commit 209162a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _stamp_version(filename: str) -> None:
description="GitPython is a Python library used to interact with Git repositories",
author="Sebastian Thiel, Michael Trier",
author_email="byronimo@gmail.com, mtrier@gmail.com",
license="BSD",
license="BSD-3-Clause",
url="https://github.com/gitpython-developers/GitPython",
packages=find_packages(exclude=["test", "test.*"]),
include_package_data=True,
Expand Down

0 comments on commit 209162a

Please sign in to comment.