-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Labels
Description
Got this running tests against Python 3.11.
../../../.local/share/virtualenvs/datasette-big-local-6Yn-280V/lib/python3.11/site-packages/datasette/app.py:14: in <module>
import pkg_resources
../../../.local/share/virtualenvs/datasette-big-local-6Yn-280V/lib/python3.11/site-packages/pkg_resources/__init__.py:121: in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
E DeprecationWarning: pkg_resources is deprecated as an API
I ran with pytest -Werror --pdb -x to get the debugger for that warning, but it turned out searching the code worked better. It's used in these two places:
datasette/datasette/plugins.py
Lines 43 to 50 in 5890a20
| if pkg_resources.resource_isdir(plugin.__name__, "static"): | |
| static_path = pkg_resources.resource_filename( | |
| plugin.__name__, "static" | |
| ) | |
| if pkg_resources.resource_isdir(plugin.__name__, "templates"): | |
| templates_path = pkg_resources.resource_filename( | |
| plugin.__name__, "templates" | |
| ) |
Line 1037 in 5890a20
| info["pysqlite3"] = pkg_resources.get_distribution(package).version |
Reactions are currently unavailable