File: remove_importlib_resources_backport.patch

package info (click to toggle)
flask-security 5.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,448 kB
  • sloc: python: 23,247; javascript: 204; makefile: 138
file content (23 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Forwarded: https://github.com/pallets-eco/flask-security/pull/1101

--- a/flask_security/babel.py
+++ b/flask_security/babel.py
@@ -16,7 +16,7 @@
 from collections.abc import Iterable
 import atexit
 from contextlib import ExitStack
-from importlib_resources import files, as_file
+from importlib.resources import files, as_file
 
 from flask import current_app
 from .utils import config_value as cv
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -46,7 +46,6 @@
     "passlib>=1.7.4;python_version<'3.12'",
     "libpass>=1.9.0;python_version>='3.12'",
     "wtforms>=3.0.0",  # for form-level errors
-    "importlib_resources>=5.10.0",
 ]
 
 [project.optional-dependencies]