forked from orbit-oss/flask
Merge branch '2.3.x'
This commit is contained in:
commit
935ee742b4
8 changed files with 22 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ["--py38-plus"]
|
args: ["--py38-plus"]
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder-python-imports
|
||||||
rev: v3.9.0
|
rev: v3.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
Version 2.3.3
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Unreleased
|
||||||
|
|
||||||
|
- Python 3.12 compatibility.
|
||||||
|
- Update Werkzeug requirement to >=2.3.5.
|
||||||
|
|
||||||
|
|
||||||
Version 2.3.2
|
Version 2.3.2
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ classifiers = [
|
||||||
]
|
]
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Werkzeug>=2.3.3",
|
"Werkzeug>=2.3.5",
|
||||||
"Jinja2>=3.1.2",
|
"Jinja2>=3.1.2",
|
||||||
"itsdangerous>=2.1.2",
|
"itsdangerous>=2.1.2",
|
||||||
"click>=8.1.3",
|
"click>=8.1.3",
|
||||||
|
|
@ -54,8 +54,8 @@ version = {attr = "flask.__version__"}
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
filterwarnings = [
|
filterwarnings = [
|
||||||
"error",
|
"error",
|
||||||
# change in Python 3.12 alpha causes warning from inside pytest
|
# change in Python 3.12 causes warning from inside pytest
|
||||||
"ignore:onerror argument:DeprecationWarning",
|
"ignore:ast:DeprecationWarning",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
Werkzeug==2.3.3
|
Werkzeug==2.3.5
|
||||||
Jinja2==3.1.2
|
Jinja2==3.1.2
|
||||||
MarkupSafe==2.1.1
|
MarkupSafe==2.1.1
|
||||||
itsdangerous==2.1.2
|
itsdangerous==2.1.2
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SHA1:0b58503b99aabc227b7f39357216d676d9987a12
|
# SHA1:c4bfd085a9d4e81c583daf70671803d5e388c656
|
||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile-multi
|
# This file is autogenerated by pip-compile-multi
|
||||||
# To update, run:
|
# To update, run:
|
||||||
|
|
@ -18,5 +18,5 @@ markupsafe==2.1.1
|
||||||
# -r requirements/tests-pallets-min.in
|
# -r requirements/tests-pallets-min.in
|
||||||
# jinja2
|
# jinja2
|
||||||
# werkzeug
|
# werkzeug
|
||||||
werkzeug==2.3.3
|
werkzeug==2.3.5
|
||||||
# via -r requirements/tests-pallets-min.in
|
# via -r requirements/tests-pallets-min.in
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ from .templating import render_template_string as render_template_string
|
||||||
from .templating import stream_template as stream_template
|
from .templating import stream_template as stream_template
|
||||||
from .templating import stream_template_string as stream_template_string
|
from .templating import stream_template_string as stream_template_string
|
||||||
|
|
||||||
__version__ = "2.3.2"
|
__version__ = "2.3.3.dev"
|
||||||
|
|
||||||
|
|
||||||
def __getattr__(name):
|
def __getattr__(name):
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import importlib.util
|
||||||
import os
|
import os
|
||||||
import pkgutil
|
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|
@ -575,7 +575,8 @@ def get_root_path(import_name: str) -> str:
|
||||||
return os.path.dirname(os.path.abspath(mod.__file__))
|
return os.path.dirname(os.path.abspath(mod.__file__))
|
||||||
|
|
||||||
# Next attempt: check the loader.
|
# Next attempt: check the loader.
|
||||||
loader = pkgutil.get_loader(import_name)
|
spec = importlib.util.find_spec(import_name)
|
||||||
|
loader = spec.loader if spec is not None else None
|
||||||
|
|
||||||
# Loader does not exist or we're referring to an unloaded main
|
# Loader does not exist or we're referring to an unloaded main
|
||||||
# module or a main module without path (interactive sessions), go
|
# module or a main module without path (interactive sessions), go
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ from __future__ import annotations
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
import pkgutil
|
|
||||||
import sys
|
import sys
|
||||||
import typing as t
|
import typing as t
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
@ -856,7 +855,8 @@ def _find_package_path(import_name):
|
||||||
return os.path.dirname(root_spec.origin)
|
return os.path.dirname(root_spec.origin)
|
||||||
|
|
||||||
# we were unable to find the `package_path` using PEP 451 loaders
|
# we were unable to find the `package_path` using PEP 451 loaders
|
||||||
loader = pkgutil.get_loader(root_mod_name)
|
spec = importlib.util.find_spec(root_mod_name)
|
||||||
|
loader = spec.loader if spec is not None else None
|
||||||
|
|
||||||
if loader is None or root_mod_name == "__main__":
|
if loader is None or root_mod_name == "__main__":
|
||||||
# import name is not found, or interactive/main module
|
# import name is not found, or interactive/main module
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue