Accepting request 830007 from home:mcalabkova:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/830007 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=51
This commit is contained in:
parent
14a57cca27
commit
4d736bc6df
13
pytest6.patch
Normal file
13
pytest6.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 27 12:38:55 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Add patch to fix building with new pytest 6.0.1:
|
||||
* pytest6.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 10:38:24 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -26,6 +26,7 @@ License: BSD-3-Clause
|
||||
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 @@ A collection of tools for internationalizing Python applications.
|
||||
%prep
|
||||
%setup -q -n Babel-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
Loading…
Reference in New Issue
Block a user