-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly use the ExceptionGroup shim only when needed #736
Conversation
@@ -749,8 +752,9 @@ def from_email( | |||
try: | |||
return cls.from_raw(raw, validate=validate) | |||
except ExceptionGroup as exc_group: | |||
exceptions.extend(exc_group.exceptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was never going to do anything, because exceptions
was always going to be an empty list, and it was making my editor sad because ExceptionGroup.exceptions
has an incompatible (with list[InvalidMetdata]
) type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, guess fixing this also made MyPy just generally unhappy.
@@ -251,7 +251,7 @@ def test_attributes(self): | |||
individual_exception = Exception("not important") | |||
exc = metadata.ExceptionGroup("message", [individual_exception]) | |||
assert exc.message == "message" | |||
assert exc.exceptions == [individual_exception] | |||
assert list(exc.exceptions) == [individual_exception] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The built in ExceptionGroup.exceptions
is a tuple instead of a list.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [packaging](https://togithub.com/pypa/packaging) | `==23.2` -> `==24.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pypa/packaging (packaging)</summary> ### [`v24.0`](https://togithub.com/pypa/packaging/releases/tag/24.0) [Compare Source](https://togithub.com/pypa/packaging/compare/23.2...24.0) #### What's Changed - Fix specifier matching when the specifier is long and has an epoch by [@​SpecLad](https://togithub.com/SpecLad) in [https://github.com/pypa/packaging/pull/712](https://togithub.com/pypa/packaging/pull/712) - Clarify version split/join usage by [@​uranusjr](https://togithub.com/uranusjr) in [https://github.com/pypa/packaging/pull/725](https://togithub.com/pypa/packaging/pull/725) - Default optional metadata values to None by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/734](https://togithub.com/pypa/packaging/pull/734) - Stop using deprecated/removed keys by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/739](https://togithub.com/pypa/packaging/pull/739) - Correctly use the ExceptionGroup shim only when needed by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/736](https://togithub.com/pypa/packaging/pull/736) - Update CHANGELOG entry about `validate` kwarg by [@​pradyunsg](https://togithub.com/pradyunsg) in [https://github.com/pypa/packaging/pull/731](https://togithub.com/pypa/packaging/pull/731) - Support --disable-gil builds (PEP 703) in packaging.tags by [@​colesbury](https://togithub.com/colesbury) in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - Skip `test_glibc_version_string_ctypes_raise_oserror` if `ctypes` is unavailable by [@​kevinchang96](https://togithub.com/kevinchang96) in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - Enable CodeQL by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/743](https://togithub.com/pypa/packaging/pull/743) - PEP 703: Rename `Py_NOGIL` to `Py_GIL_DISABLED` by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/pypa/packaging/pull/747](https://togithub.com/pypa/packaging/pull/747) - Replace PEP references with PUG links by [@​jeanas](https://togithub.com/jeanas) in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - Remove coverage ignore for non-existent file by [@​shenanigansd](https://togithub.com/shenanigansd) in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - Update URLs by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/764](https://togithub.com/pypa/packaging/pull/764) - Configure dependabot by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/757](https://togithub.com/pypa/packaging/pull/757) - Hash pin github actions by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/758](https://togithub.com/pypa/packaging/pull/758) - Apply some refurb suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/763](https://togithub.com/pypa/packaging/pull/763) - Appply some bugbear suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/761](https://togithub.com/pypa/packaging/pull/761) - Apply some ruff suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/772](https://togithub.com/pypa/packaging/pull/772) - Add riscv64 as a supported manylinux architecture by [@​markdryan](https://togithub.com/markdryan) in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) #### New Contributors - [@​colesbury](https://togithub.com/colesbury) made their first contribution in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - [@​kevinchang96](https://togithub.com/kevinchang96) made their first contribution in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - [@​jeanas](https://togithub.com/jeanas) made their first contribution in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - [@​shenanigansd](https://togithub.com/shenanigansd) made their first contribution in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - [@​markdryan](https://togithub.com/markdryan) made their first contribution in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) **Full Changelog**: pypa/packaging@23.2...24.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/canonical/charmcraft). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [packaging](https://togithub.com/pypa/packaging) | major | `==23.2` -> `==24.0` | --- ### Release Notes <details> <summary>pypa/packaging (packaging)</summary> ### [`v24.0`](https://togithub.com/pypa/packaging/releases/tag/24.0) [Compare Source](https://togithub.com/pypa/packaging/compare/23.2...24.0) #### What's Changed - Fix specifier matching when the specifier is long and has an epoch by [@​SpecLad](https://togithub.com/SpecLad) in [https://github.com/pypa/packaging/pull/712](https://togithub.com/pypa/packaging/pull/712) - Clarify version split/join usage by [@​uranusjr](https://togithub.com/uranusjr) in [https://github.com/pypa/packaging/pull/725](https://togithub.com/pypa/packaging/pull/725) - Default optional metadata values to None by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/734](https://togithub.com/pypa/packaging/pull/734) - Stop using deprecated/removed keys by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/739](https://togithub.com/pypa/packaging/pull/739) - Correctly use the ExceptionGroup shim only when needed by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/736](https://togithub.com/pypa/packaging/pull/736) - Update CHANGELOG entry about `validate` kwarg by [@​pradyunsg](https://togithub.com/pradyunsg) in [https://github.com/pypa/packaging/pull/731](https://togithub.com/pypa/packaging/pull/731) - Support --disable-gil builds (PEP 703) in packaging.tags by [@​colesbury](https://togithub.com/colesbury) in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - Skip `test_glibc_version_string_ctypes_raise_oserror` if `ctypes` is unavailable by [@​kevinchang96](https://togithub.com/kevinchang96) in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - Enable CodeQL by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/743](https://togithub.com/pypa/packaging/pull/743) - PEP 703: Rename `Py_NOGIL` to `Py_GIL_DISABLED` by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/pypa/packaging/pull/747](https://togithub.com/pypa/packaging/pull/747) - Replace PEP references with PUG links by [@​jeanas](https://togithub.com/jeanas) in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - Remove coverage ignore for non-existent file by [@​shenanigansd](https://togithub.com/shenanigansd) in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - Update URLs by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/764](https://togithub.com/pypa/packaging/pull/764) - Configure dependabot by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/757](https://togithub.com/pypa/packaging/pull/757) - Hash pin github actions by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/758](https://togithub.com/pypa/packaging/pull/758) - Apply some refurb suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/763](https://togithub.com/pypa/packaging/pull/763) - Appply some bugbear suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/761](https://togithub.com/pypa/packaging/pull/761) - Apply some ruff suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/772](https://togithub.com/pypa/packaging/pull/772) - Add riscv64 as a supported manylinux architecture by [@​markdryan](https://togithub.com/markdryan) in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) #### New Contributors - [@​colesbury](https://togithub.com/colesbury) made their first contribution in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - [@​kevinchang96](https://togithub.com/kevinchang96) made their first contribution in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - [@​jeanas](https://togithub.com/jeanas) made their first contribution in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - [@​shenanigansd](https://togithub.com/shenanigansd) made their first contribution in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - [@​markdryan](https://togithub.com/markdryan) made their first contribution in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) **Full Changelog**: pypa/packaging@23.2...24.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjI3OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [packaging](https://togithub.com/pypa/packaging) | `==23.2` -> `==24.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pypa/packaging (packaging)</summary> ### [`v24.0`](https://togithub.com/pypa/packaging/releases/tag/24.0) [Compare Source](https://togithub.com/pypa/packaging/compare/23.2...24.0) #### What's Changed - Fix specifier matching when the specifier is long and has an epoch by [@​SpecLad](https://togithub.com/SpecLad) in [https://github.com/pypa/packaging/pull/712](https://togithub.com/pypa/packaging/pull/712) - Clarify version split/join usage by [@​uranusjr](https://togithub.com/uranusjr) in [https://github.com/pypa/packaging/pull/725](https://togithub.com/pypa/packaging/pull/725) - Default optional metadata values to None by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/734](https://togithub.com/pypa/packaging/pull/734) - Stop using deprecated/removed keys by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/739](https://togithub.com/pypa/packaging/pull/739) - Correctly use the ExceptionGroup shim only when needed by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/736](https://togithub.com/pypa/packaging/pull/736) - Update CHANGELOG entry about `validate` kwarg by [@​pradyunsg](https://togithub.com/pradyunsg) in [https://github.com/pypa/packaging/pull/731](https://togithub.com/pypa/packaging/pull/731) - Support --disable-gil builds (PEP 703) in packaging.tags by [@​colesbury](https://togithub.com/colesbury) in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - Skip `test_glibc_version_string_ctypes_raise_oserror` if `ctypes` is unavailable by [@​kevinchang96](https://togithub.com/kevinchang96) in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - Enable CodeQL by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/743](https://togithub.com/pypa/packaging/pull/743) - PEP 703: Rename `Py_NOGIL` to `Py_GIL_DISABLED` by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/pypa/packaging/pull/747](https://togithub.com/pypa/packaging/pull/747) - Replace PEP references with PUG links by [@​jeanas](https://togithub.com/jeanas) in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - Remove coverage ignore for non-existent file by [@​shenanigansd](https://togithub.com/shenanigansd) in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - Update URLs by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/764](https://togithub.com/pypa/packaging/pull/764) - Configure dependabot by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/757](https://togithub.com/pypa/packaging/pull/757) - Hash pin github actions by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/758](https://togithub.com/pypa/packaging/pull/758) - Apply some refurb suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/763](https://togithub.com/pypa/packaging/pull/763) - Appply some bugbear suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/761](https://togithub.com/pypa/packaging/pull/761) - Apply some ruff suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/772](https://togithub.com/pypa/packaging/pull/772) - Add riscv64 as a supported manylinux architecture by [@​markdryan](https://togithub.com/markdryan) in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) #### New Contributors - [@​colesbury](https://togithub.com/colesbury) made their first contribution in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - [@​kevinchang96](https://togithub.com/kevinchang96) made their first contribution in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - [@​jeanas](https://togithub.com/jeanas) made their first contribution in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - [@​shenanigansd](https://togithub.com/shenanigansd) made their first contribution in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - [@​markdryan](https://togithub.com/markdryan) made their first contribution in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) **Full Changelog**: pypa/packaging@23.2...24.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/GoogleCloudPlatform/generative-ai). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [packaging](https://togithub.com/pypa/packaging) | `==23.2` -> `==24.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pypa/packaging (packaging)</summary> ### [`v24.0`](https://togithub.com/pypa/packaging/releases/tag/24.0) [Compare Source](https://togithub.com/pypa/packaging/compare/23.2...24.0) #### What's Changed - Fix specifier matching when the specifier is long and has an epoch by [@​SpecLad](https://togithub.com/SpecLad) in [https://github.com/pypa/packaging/pull/712](https://togithub.com/pypa/packaging/pull/712) - Clarify version split/join usage by [@​uranusjr](https://togithub.com/uranusjr) in [https://github.com/pypa/packaging/pull/725](https://togithub.com/pypa/packaging/pull/725) - Default optional metadata values to None by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/734](https://togithub.com/pypa/packaging/pull/734) - Stop using deprecated/removed keys by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/739](https://togithub.com/pypa/packaging/pull/739) - Correctly use the ExceptionGroup shim only when needed by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/736](https://togithub.com/pypa/packaging/pull/736) - Update CHANGELOG entry about `validate` kwarg by [@​pradyunsg](https://togithub.com/pradyunsg) in [https://github.com/pypa/packaging/pull/731](https://togithub.com/pypa/packaging/pull/731) - Support --disable-gil builds (PEP 703) in packaging.tags by [@​colesbury](https://togithub.com/colesbury) in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - Skip `test_glibc_version_string_ctypes_raise_oserror` if `ctypes` is unavailable by [@​kevinchang96](https://togithub.com/kevinchang96) in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - Enable CodeQL by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/743](https://togithub.com/pypa/packaging/pull/743) - PEP 703: Rename `Py_NOGIL` to `Py_GIL_DISABLED` by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/pypa/packaging/pull/747](https://togithub.com/pypa/packaging/pull/747) - Replace PEP references with PUG links by [@​jeanas](https://togithub.com/jeanas) in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - Remove coverage ignore for non-existent file by [@​shenanigansd](https://togithub.com/shenanigansd) in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - Update URLs by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/764](https://togithub.com/pypa/packaging/pull/764) - Configure dependabot by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/757](https://togithub.com/pypa/packaging/pull/757) - Hash pin github actions by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/758](https://togithub.com/pypa/packaging/pull/758) - Apply some refurb suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/763](https://togithub.com/pypa/packaging/pull/763) - Appply some bugbear suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/761](https://togithub.com/pypa/packaging/pull/761) - Apply some ruff suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/772](https://togithub.com/pypa/packaging/pull/772) - Add riscv64 as a supported manylinux architecture by [@​markdryan](https://togithub.com/markdryan) in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) #### New Contributors - [@​colesbury](https://togithub.com/colesbury) made their first contribution in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - [@​kevinchang96](https://togithub.com/kevinchang96) made their first contribution in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - [@​jeanas](https://togithub.com/jeanas) made their first contribution in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - [@​shenanigansd](https://togithub.com/shenanigansd) made their first contribution in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - [@​markdryan](https://togithub.com/markdryan) made their first contribution in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) **Full Changelog**: pypa/packaging@23.2...24.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/GoogleCloudPlatform/generative-ai). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [packaging](https://togithub.com/pypa/packaging) | `==23.2` -> `==24.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/packaging/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/packaging/23.2/24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pypa/packaging (packaging)</summary> ### [`v24.0`](https://togithub.com/pypa/packaging/releases/tag/24.0) [Compare Source](https://togithub.com/pypa/packaging/compare/23.2...24.0) #### What's Changed - Fix specifier matching when the specifier is long and has an epoch by [@​SpecLad](https://togithub.com/SpecLad) in [https://github.com/pypa/packaging/pull/712](https://togithub.com/pypa/packaging/pull/712) - Clarify version split/join usage by [@​uranusjr](https://togithub.com/uranusjr) in [https://github.com/pypa/packaging/pull/725](https://togithub.com/pypa/packaging/pull/725) - Default optional metadata values to None by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/734](https://togithub.com/pypa/packaging/pull/734) - Stop using deprecated/removed keys by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/739](https://togithub.com/pypa/packaging/pull/739) - Correctly use the ExceptionGroup shim only when needed by [@​dstufft](https://togithub.com/dstufft) in [https://github.com/pypa/packaging/pull/736](https://togithub.com/pypa/packaging/pull/736) - Update CHANGELOG entry about `validate` kwarg by [@​pradyunsg](https://togithub.com/pradyunsg) in [https://github.com/pypa/packaging/pull/731](https://togithub.com/pypa/packaging/pull/731) - Support --disable-gil builds (PEP 703) in packaging.tags by [@​colesbury](https://togithub.com/colesbury) in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - Skip `test_glibc_version_string_ctypes_raise_oserror` if `ctypes` is unavailable by [@​kevinchang96](https://togithub.com/kevinchang96) in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - Enable CodeQL by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/743](https://togithub.com/pypa/packaging/pull/743) - PEP 703: Rename `Py_NOGIL` to `Py_GIL_DISABLED` by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/pypa/packaging/pull/747](https://togithub.com/pypa/packaging/pull/747) - Replace PEP references with PUG links by [@​jeanas](https://togithub.com/jeanas) in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - Remove coverage ignore for non-existent file by [@​shenanigansd](https://togithub.com/shenanigansd) in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - Update URLs by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/764](https://togithub.com/pypa/packaging/pull/764) - Configure dependabot by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/757](https://togithub.com/pypa/packaging/pull/757) - Hash pin github actions by [@​joycebrum](https://togithub.com/joycebrum) in [https://github.com/pypa/packaging/pull/758](https://togithub.com/pypa/packaging/pull/758) - Apply some refurb suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/763](https://togithub.com/pypa/packaging/pull/763) - Appply some bugbear suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/761](https://togithub.com/pypa/packaging/pull/761) - Apply some ruff suggestions by [@​DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos) in [https://github.com/pypa/packaging/pull/772](https://togithub.com/pypa/packaging/pull/772) - Add riscv64 as a supported manylinux architecture by [@​markdryan](https://togithub.com/markdryan) in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) #### New Contributors - [@​colesbury](https://togithub.com/colesbury) made their first contribution in [https://github.com/pypa/packaging/pull/728](https://togithub.com/pypa/packaging/pull/728) - [@​kevinchang96](https://togithub.com/kevinchang96) made their first contribution in [https://github.com/pypa/packaging/pull/741](https://togithub.com/pypa/packaging/pull/741) - [@​jeanas](https://togithub.com/jeanas) made their first contribution in [https://github.com/pypa/packaging/pull/750](https://togithub.com/pypa/packaging/pull/750) - [@​shenanigansd](https://togithub.com/shenanigansd) made their first contribution in [https://github.com/pypa/packaging/pull/752](https://togithub.com/pypa/packaging/pull/752) - [@​markdryan](https://togithub.com/markdryan) made their first contribution in [https://github.com/pypa/packaging/pull/751](https://togithub.com/pypa/packaging/pull/751) **Full Changelog**: pypa/packaging@23.2...24.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/GoogleCloudPlatform/generative-ai). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Fixes #735