From: JinWang An Date: Mon, 27 Mar 2023 08:02:31 +0000 (+0900) Subject: Imported Upstream version 51.3.3 X-Git-Tag: upstream/51.3.3^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf723528cf8bca6b0c0595a76d1e7503a1dcd09d;p=platform%2Fupstream%2Fpython-setuptools.git Imported Upstream version 51.3.3 --- diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 4d60721..debcfee 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 51.3.2 +current_version = 51.3.3 commit = True tag = True diff --git a/CHANGES.rst b/CHANGES.rst index 2de874c..c094960 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +v51.3.3 +------- + + +Misc +^^^^ +* #2539: Fix AttributeError in Description validation. + + v51.3.2 ------- diff --git a/setup.cfg b/setup.cfg index 2476ede..536ec70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ license_files = LICENSE name = setuptools -version = 51.3.2 +version = 51.3.3 author = Python Packaging Authority author_email = distutils-sig@python.org description = Easily download, build, install, upgrade, and uninstall Python packages diff --git a/setuptools/dist.py b/setuptools/dist.py index 172d66b..050388d 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -122,7 +122,7 @@ def single_line(val): # quick and dirty validation for description pypa/setuptools#1390 if '\n' in val: # TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")` - warnings.UserWarning("newlines not allowed and will break in the future") + warnings.warn("newlines not allowed and will break in the future") val = val.replace('\n', ' ') return val