Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ 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

license-files = ["LICENSE.txt"]
keywords = [
"hamcrest",
"matchers",
Expand All @@ -27,7 +28,6 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
Expand Down