Skip to content

Commit 396dbbb

Browse files
authored
build: include NOTICE in wheels (#2232)
Signed-off-by: Dhruv Maniya <[email protected]>
1 parent 54dde05 commit 396dbbb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def build_extension(self, ext: Any) -> None:
209209
long_description_content_type="text/x-rst",
210210
keywords="code coverage testing",
211211
license="Apache-2.0",
212-
license_files=["LICENSE.txt"],
212+
license_files=["LICENSE.txt", "NOTICE.txt"],
213213
classifiers=CLASSIFIERS,
214214
url="https://github.com/coveragepy/coveragepy",
215215
project_urls={

‎tests/test_setup.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def test_more_metadata(self) -> None:
5454
assert "Programming Language :: Python :: %d" % sys.version_info[:1] in classifiers
5555
assert "Programming Language :: Python :: %d.%d" % sys.version_info[:2] in classifiers
5656

57+
assert setup_args["license_files"] == ["LICENSE.txt", "NOTICE.txt"]
58+
5759
long_description = cast(str, setup_args["long_description"]).splitlines()
5860
assert len(long_description) > 7
5961
assert long_description[0].strip() != ""

0 commit comments

Comments
 (0)