diff options
author | Paul Ganssle <paul@ganssle.io> | 2018-11-12 10:08:55 -0500 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2018-11-12 10:14:34 -0500 |
commit | 2b5b91332a01c665cab77ad7962e87525850d7f5 (patch) | |
tree | 47a33d231d1eab2b0f9bff524f1213c6244af67b /setuptools/command | |
parent | fe2c9e4292699635c91174bc049aefe81bf6116c (diff) | |
download | external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.tar.gz external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.tar.bz2 external_python_setuptools-2b5b91332a01c665cab77ad7962e87525850d7f5.zip |
Remove bdist_rpm and bdist_dumb comment
This comment is not used anywhere and `platform.dist()` is deprecated.
See CPython PR #10414: https://github.com/python/cpython/pull/10414
and bpo-35186: https://bugs.python.org/issue35186
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/upload.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index f57fe796..3b8cab5e 100644 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -102,14 +102,8 @@ class upload(orig.upload): '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", |