Hello community, here is the log from the commit of package python-Babel for openSUSE:Factory checked in at 2020-09-04 10:59:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Babel (Old) and /work/SRC/openSUSE:Factory/.python-Babel.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Babel" Fri Sep 4 10:59:18 2020 rev:30 rq:830015 version:2.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Babel/python-Babel.changes 2020-05-20 18:36:29.180107984 +0200 +++ /work/SRC/openSUSE:Factory/.python-Babel.new.3399/python-Babel.changes 2020-09-04 11:00:11.994658328 +0200 @@ -1,0 +2,6 @@ +Thu Aug 27 12:38:55 UTC 2020 - Marketa Calabkova <[email protected]> + +- Add patch to fix building with new pytest 6.0.1: + * pytest6.patch + +------------------------------------------------------------------- New: ---- pytest6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Babel.spec ++++++ --- /var/tmp/diff_new_pack.jnW5oT/_old 2020-09-04 11:00:13.586659181 +0200 +++ /var/tmp/diff_new_pack.jnW5oT/_new 2020-09-04 11:00:13.590659183 +0200 @@ -26,6 +26,7 @@ URL: http://babel.pocoo.org/ Source: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version}.tar.gz Patch0: python383.patch +Patch1: pytest6.patch BuildRequires: %{python_module freezegun} BuildRequires: %{python_module py >= 1.4.14} BuildRequires: %{python_module pytest >= 2.3.5} @@ -53,6 +54,7 @@ %prep %setup -q -n Babel-%{version} %patch0 -p1 +%patch1 -p1 %build %python_build ++++++ pytest6.patch ++++++ Index: Babel-2.8.0/conftest.py =================================================================== --- Babel-2.8.0.orig/conftest.py +++ Babel-2.8.0/conftest.py @@ -8,4 +8,7 @@ babel_path = local(__file__).dirpath().j def pytest_collect_file(path, parent): if babel_path.common(path) == babel_path: if path.ext == ".py": - return DoctestModule(path, parent) + try: + return DoctestModule.from_parent(parent, fspath=path) + except AttributeError: + return DoctestModule(path, parent)
