compat: fall back to importlib_resources backport on Python 3.8

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mathew Sir Guest the best 2026-05-30 22:37:08 -06:00
parent 141eb6f09e
commit 1a5530f1db
2 changed files with 5 additions and 1 deletions

@ -27,6 +27,7 @@ click = ">=8.0"
platformdirs = ">=3.0" platformdirs = ">=3.0"
sqlparse = "*" sqlparse = "*"
selenium = ">=4.0" selenium = ">=4.0"
importlib-resources = { version = ">=5.0", python = "<3.9" }
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
black = "*" black = "*"

@ -1,7 +1,10 @@
import datetime import datetime
import os import os
from importlib.resources import files try:
from importlib.resources import files # Python 3.9+
except ImportError: # Python 3.8
from importlib_resources import files
import sqlparse import sqlparse