mirror of
https://git.zavage.net/Zavage-Software/smileyface.git
synced 2026-06-25 18:12:48 -06:00
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:
parent
141eb6f09e
commit
1a5530f1db
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user