Skip to content

Commit baf62ad

Browse files
authored
Merge pull request pypa/distutils#330 from Avasam/Make-sdist.metadata_check-an-actual-boolean
Make `sdist.metadata_check` an actual boolean
2 parents 82780b7 + a40b490 commit baf62ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

distutils/command/sdist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def show_formats():
3434
class sdist(Command):
3535
description = "create a source distribution (tarball, zip file, etc.)"
3636

37-
def checking_metadata(self):
37+
def checking_metadata(self) -> bool:
3838
"""Callable used for the check sub-command.
3939
4040
Placed here so user_options can view it"""
@@ -136,7 +136,7 @@ def initialize_options(self):
136136
self.dist_dir = None
137137

138138
self.archive_files = None
139-
self.metadata_check = 1
139+
self.metadata_check = True
140140
self.owner = None
141141
self.group = None
142142

distutils/tests/test_sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_metadata_check_option(self, caplog):
270270
caplog.clear()
271271
dist, cmd = self.get_cmd()
272272
cmd.ensure_finalized()
273-
cmd.metadata_check = 0
273+
cmd.metadata_check = False
274274
cmd.run()
275275
assert len(self.warnings(caplog.messages, 'warning: check: ')) == 0
276276

0 commit comments

Comments
 (0)