From: JinWang An Date: Mon, 27 Mar 2023 08:03:00 +0000 (+0900) Subject: Imported Upstream version 67.3.1 X-Git-Tag: upstream/67.3.1^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13bf2b558d6c4a5a6895c55bd43e08d7bc2d694b;p=platform%2Fupstream%2Fpython-setuptools.git Imported Upstream version 67.3.1 --- diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 2caed86..573fc76 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 67.3.0 +current_version = 67.3.1 commit = True tag = True diff --git a/CHANGES.rst b/CHANGES.rst index 8c289f0..e2229e8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +v67.3.1 +------- + + +Misc +^^^^ +* #3823: Fixes ``egg_info`` code path triggered during integration with ``pip``. + + v67.3.0 ------- diff --git a/setup.cfg b/setup.cfg index 129a935..30bb742 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = setuptools -version = 67.3.0 +version = 67.3.1 author = Python Packaging Authority author_email = distutils-sig@python.org description = Easily download, build, install, upgrade, and uninstall Python packages diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index afcde5a..e40df9b 100644 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -250,7 +250,8 @@ class egg_info(InfoCommon, Command): # to the version info # pd = self.distribution._patched_dist - if pd is not None and pd.key == self.egg_name.lower(): + key = getattr(pd, "key", None) or getattr(pd, "name", None) + if pd is not None and key == self.egg_name.lower(): pd._version = self.egg_version pd._parsed_version = packaging.version.Version(self.egg_version) self.distribution._patched_dist = None