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
10 changes: 2 additions & 8 deletions Lib/distutils/command/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,8 @@ def upload_file(self, command, pyversion, filename):
'requires': meta.get_requires(),
'obsoletes': meta.get_obsoletes(),
}
comment = ''
if command == 'bdist_rpm':
dist, version, id = platform.dist()
if dist:
comment = 'built for %s %s' % (dist, version)
elif command == 'bdist_dumb':
comment = 'built for %s' % platform.platform(terse=1)
data['comment'] = comment

data['comment'] = ''

@merwok merwok Nov 13, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make a difference to send empty string or omit comment altogether?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old version sent an empty string by default, so I kept that behavior, but I just checked what twine does, and it does seem to send '' even when comment=None (the default), so I think that distutils should do the same.


if self.sign:
data['gpg_signature'] = (os.path.basename(filename) + ".asc",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Removed the "built with" comment added when ``setup.py upload`` is used with
either ``bdist_rpm`` or ``bdist_dumb``.