Skip to content
Merged
Show file tree
Hide file tree
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 distutils/command/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def show_formats():
class sdist(Command):
description = "create a source distribution (tarball, zip file, etc.)"

def checking_metadata(self):
def checking_metadata(self) -> bool:
"""Callable used for the check sub-command.

Placed here so user_options can view it"""
Expand Down Expand Up @@ -136,7 +136,7 @@ def initialize_options(self):
self.dist_dir = None

self.archive_files = None
self.metadata_check = 1
self.metadata_check = True
self.owner = None
self.group = None

Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_metadata_check_option(self, caplog):
caplog.clear()
dist, cmd = self.get_cmd()
cmd.ensure_finalized()
cmd.metadata_check = 0
cmd.metadata_check = False
cmd.run()
assert len(self.warnings(caplog.messages, 'warning: check: ')) == 0

Expand Down
Loading