Skip to content

Commit 56dd871

Browse files
committed
Stop writing License-File
1 parent cc43212 commit 56dd871

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: setuptools/_core_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def write_field(key, value):
204204
if self.long_description_content_type:
205205
write_field('Description-Content-Type', self.long_description_content_type)
206206

207-
self._write_list(file, 'License-File', self.license_files or [])
207+
# self._write_list(file, 'License-File', self.license_files or [])
208208
_write_requirements(self, file)
209209

210210
long_description = self.get_long_description()

Diff for: setuptools/tests/test_egg_info.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1051,11 +1051,12 @@ def test_license_file_attr_pkg_info(self, tmpdir_cwd, env):
10511051
line for line in pkg_info_lines if line.startswith('License-File:')
10521052
]
10531053

1054+
assert license_file_lines == []
10541055
# Only 'NOTICE', LICENSE-ABC', and 'LICENSE-XYZ' should have been matched
10551056
# Also assert that order from license_files is keeped
1056-
assert "License-File: NOTICE" == license_file_lines[0]
1057-
assert "License-File: LICENSE-ABC" in license_file_lines[1:]
1058-
assert "License-File: LICENSE-XYZ" in license_file_lines[1:]
1057+
# assert "License-File: NOTICE" == license_file_lines[0]
1058+
# assert "License-File: LICENSE-ABC" in license_file_lines[1:]
1059+
# assert "License-File: LICENSE-XYZ" in license_file_lines[1:]
10591060

10601061
def test_metadata_version(self, tmpdir_cwd, env):
10611062
"""Make sure latest metadata version is used by default."""

0 commit comments

Comments
 (0)