Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SPDX license expression #259

Merged
merged 3 commits into from
Nov 30, 2024
Merged

Use SPDX license expression #259

merged 3 commits into from
Nov 30, 2024

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Nov 17, 2024

Hatch recommends the use of SPDX license expressions.
https://spdx.org/licenses/BSD-3-Clause.html

@@ -7,7 +7,7 @@ name = "PyHamcrest"
description = "Hamcrest framework for matcher objects"
readme = "README.rst"
requires-python = ">= 3.8"
license = { file = "LICENSE.txt" }
license = "BSD-3-Clause"
Copy link
Member

Choose a reason for hiding this comment

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

I don't want to lose the license file, and according to PEP-639 we don't have to:

Suggested change
license = "BSD-3-Clause"
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to lose the license file

Hatchling does implement default globs if license-files is missing. So it would have been included anyway. It doesn't hurt to spell it out explicitly either though.
https://github.com/pypa/hatch/blob/hatchling-v1.26.3/backend/src/hatchling/metadata/core.py#L748-L749

Copy link
Member

Choose a reason for hiding this comment

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

I don't guarantee that we'll always use Hatchling. Explicit, as always, is better than implicit :D

@offbyone offbyone merged commit 346d3f7 into hamcrest:main Nov 30, 2024
26 checks passed
@offbyone
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants