Debian Patches

Status for python-flask-marshmallow/1.2.1-1

Patch Description Author Forwarded Bugs Origin Last update
docs-Don-t-use-external-intersphinx.patch docs: Don't use external intersphinx
Use objects.inv information from local installed packages.
The packaging of marshmallow-sqlalchemy doesn't provide a -doc package
yet we could use for referencing to.
Carsten Schoenert <c.schoenert@t-online.de> not-needed 2023-04-09
tests-Ignore-tests-in-test_sqla.py-if-Flask-is-y-3.x.patch tests: Ignore tests in test_sqla.py if Flask is y 3.x
The test do fail with

tests/test_core.py ...... [ 15%]
tests/test_fields.py ..................... [ 67%]
tests/test_sqla.py EEEEEEEE [ 87%]
tests/test_validate.py ..... [100%]

==================================== ERRORS ====================================
_______ ERROR at setup of TestSQLAlchemy.test_can_initialize_extensions ________

self = <tests.test_sqla.TestSQLAlchemy object at 0x7fa619296e40>

@pytest.fixture
def extapp(self):
> app_ = Flask("extapp")

tests/test_sqla.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/flask/app.py:566: in __init__
super().__init__(
/usr/lib/python3/dist-packages/flask/scaffold.py:112: in __init__
root_path = get_root_path(self.import_name)
/usr/lib/python3/dist-packages/flask/helpers.py:611: in get_root_path
loader = pkgutil.get_loader(import_name)
/usr/lib/python3.12/pkgutil.py:273: in get_loader
warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
"""Warn that *name* is deprecated or should be removed.

RuntimeError is raised if *remove* specifies a major/minor tuple older than
the current Python version or the same version but past the alpha.

The *message* argument is formatted with *name* and *remove* as a Python
version (e.g. "3.11").

"""
remove_formatted = f"{remove[0]}.{remove[1]}"
if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
raise RuntimeError(msg)
else:
msg = message.format(name=name, remove=remove_formatted)
> warn(msg, DeprecationWarning, stacklevel=3)
E DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

This is due a strict checking within Python as Flask < 3.x is provoking
the import that than is throwing this warning.

Should be no problem at the end as we move to Flask >= 3.x any way. This
patch can be dropped once Flask 3.x has entered the archive.
Carsten Schoenert <c.schoenert@t-online.de> not-needed 2024-01-21

All known versions for source package 'python-flask-marshmallow'

Links