summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2018-12-17 02:59:02 -0500
committerPetr Viktorin <encukou@gmail.com>2018-12-17 08:59:02 +0100
commit95c0e2810d32cfe69d84f5af41f7874fb57facca (patch)
treed2642515ac3305e553edc7fb9a954a38e2d05a0d
parent15789c14939f1c441c95963419e1b3f941a2831d (diff)
downloadpython-setuptools-git-95c0e2810d32cfe69d84f5af41f7874fb57facca.tar.gz
bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)
platform.dist() is deprecated and slated for removal in Python 3.8. The upload command itself should also not be used to upload to PyPI, but while it continues to exist it should not use deprecated functions.
-rw-r--r--command/upload.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/command/upload.py b/command/upload.py
index 32dda359..613ea711 100644
--- a/command/upload.py
+++ b/command/upload.py
@@ -121,14 +121,8 @@ class upload(PyPIRCCommand):
'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'] = ''
if self.sign:
data['gpg_signature'] = (os.path.basename(filename) + ".asc",