Skip to content
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

build: only require exceptiongroup on py<3.11 #5987

Merged

Conversation

bastimeyer
Copy link
Member

  • Add python_version<"3.11" environment marker to exceptiongroup:
    It's a no-op package on Python 3.11 and above, so we don't have to require it on all Python versions.
  • Update compatibility imports
  • Update dependency docs

exceptiongroup was added in #5895.

exceptiongroup also includes a bugfix for contextlib.suppress on <3.12.1, but that shouldn't be relevant to us:
https://github.com/agronholm/exceptiongroup/blob/1.2.1/src/exceptiongroup/__init__.py#L43-L46

The reason for this dependency update is that some distros like Arch have already started phasing out their python-exceptiongroup package because of their single Python 3.12 package where this compat lib is not needed:
https://archlinux.org/todo/drop-python-exceptiongroup/

For some reason though, they simple dropped the dependency from their streamlink PKGBUILD and called it a day:
https://gitlab.archlinux.org/archlinux/packaging/packages/streamlink/-/commit/956f62c4719bebb3311fbbee337ab780ad8baf4e

- Add `python_version<"3.11"` environment marker to `exceptiongroup`:
  It's a no-op package on Python 3.11 and above, so we don't have to
  require it on all Python versions.
- Update compatibility imports
- Update dependency docs
@bastimeyer bastimeyer merged commit 63c6d03 into streamlink:master May 10, 2024
16 checks passed
@bastimeyer bastimeyer deleted the dependencies/exceptiongroup-py-lt-311 branch May 10, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant