Skip to content

Conversation

@bastimeyer
Copy link
Member

The stacklevel of the DeprecationWarning raised by pkg_resources got changed in setuptools 68.0.0, so we have to adjust our warnings filter.

pycountry is still importing pkg_resources.


From the last scheduled CI runner on master:
https://github.com/streamlink/streamlink/actions/runs/5328587588/jobs/9653353840#step:5:268

../../../../../opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/pycountry/__init__.py:10
  /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/pycountry/__init__.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

The stacklevel of the DeprecationWarning raised by `pkg_resources`
got changed in setuptools 68.0.0, so we have to adjust our warnings
filter.

`pycountry` is still importing `pkg_resources`.
@bastimeyer bastimeyer merged commit f0236e1 into streamlink:master Jun 21, 2023
@bastimeyer bastimeyer deleted the tests/ignore-pycountry-deprecationwarning branch June 21, 2023 16:12
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.

1 participant