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

Fix DeprecationWarning from pkg_resources #465

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

craigds
Copy link
Contributor

@craigds craigds commented Apr 3, 2024

Use importlib.metadata (python 3.8+) or importlib_metadata instead.

Please confirm that the tests pass locally

I get two test fails on py312, but they don't seem related - errors connecting to solr. Other environments pass

Fixes #464

pre-commit hook installs 0.3.3, but it didn't actually work with the
pre-0.2.0-style config in pyproject.toml

https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md#020
@craigds craigds force-pushed the fix-deprecationwarning branch from 5a58eb0 to f1fcb50 Compare April 3, 2024 20:41
Use `importlib.metadata` (python 3.8+) or `importlib_metadata` instead
@craigds craigds force-pushed the fix-deprecationwarning branch from f1fcb50 to 939b99d Compare April 3, 2024 20:57
Copy link
Contributor

@cclauss cclauss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. We should drop Python < 3.8 but let's do that in a separate PR.

Thanks!

@cclauss cclauss merged commit bbd5e8d into django-haystack:master Apr 4, 2024
9 checks passed
@ecederstrand
Copy link

ecederstrand commented May 23, 2024

Any chance this could reach a release on PyPI soon? I can't run pysolr on Python 3.12 due to ModuleNotFoundError: No module named 'pkg_resources'.

EDIT: turns out v3.10.0b2 on PyPI works on Python 3.12. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeprecationWarning from pkg_resources on Python 3.10+
3 participants