summaryrefslogtreecommitdiff
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-01-23 14:12:18 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-01-23 14:12:18 -0500
commit0afc4ef094eabbb0e7161acc3f4f8cba3bae7022 (patch)
treefcf42a989154159273da997a5d329be49e130b26 /setuptools/dist.py
parent9d61fdd3078805cad8ccd84c769a8a27e033a1a8 (diff)
parent8222d6f7b992d3b184434acb31cd66b0f2e41401 (diff)
downloadpython-setuptools-git-feature/drop-fetch-build-eggs-easy-install-fallback.tar.gz
Merge branch 'main' into feature/drop-fetch-build-eggs-easy-install-fallbackfeature/drop-fetch-build-eggs-easy-install-fallback
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 2d0aac33..050388de 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -121,7 +121,9 @@ def read_pkg_file(self, file):
def single_line(val):
# quick and dirty validation for description pypa/setuptools#1390
if '\n' in val:
- raise ValueError("newlines not allowed")
+ # TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")`
+ warnings.warn("newlines not allowed and will break in the future")
+ val = val.replace('\n', ' ')
return val