Accepting request 942849 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/942849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mpi?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2021-12-28 11:26:29 +00:00 committed by Git OBS Bridge
commit a5d5ecf0f3
3 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,32 @@
From 7efec75885899b3b215c579b146a1a58e2c00d8e Mon Sep 17 00:00:00 2001
From: James Tocknell <aragilar@gmail.com>
Date: Sun, 12 Dec 2021 14:50:32 +1100
Subject: [PATCH] Fix sybil conftest
---
docs/conftest.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/conftest.py b/docs/conftest.py
index 2f9a4ff..d91c8cc 100644
--- a/docs/conftest.py
+++ b/docs/conftest.py
@@ -3,14 +3,14 @@
import pytest
from sybil import Sybil
-from sybil.parsers.codeblock import CodeBlockParser
-from sybil.parsers.doctest import DocTestParser, FIX_BYTE_UNICODE_REPR
+from sybil.parsers.codeblock import PythonCodeBlockParser
+from sybil.parsers.doctest import DocTestParser
from sybil.parsers.skip import skip
pytest_collect_file = Sybil(
parsers=[
- DocTestParser(optionflags=ELLIPSIS|FIX_BYTE_UNICODE_REPR),
- CodeBlockParser(),
+ DocTestParser(optionflags=ELLIPSIS),
+ PythonCodeBlockParser(),
skip,
],
pattern='*.rst',

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 27 15:58:20 UTC 2021 - Ben Greiner <code@bnavigator.de>
- add pytest-mpi-pr37-sybil3.patch -- gh#aragilar/pytest-mpi#37
-------------------------------------------------------------------
Sun Sep 26 15:50:10 UTC 2021 - Hans-Peter Jansen <hpj@urpla.net>

View File

@ -33,6 +33,8 @@ Summary: MPI plugin for pytest
License: BSD-3-Clause
URL: https://pytest-mpi.readthedocs.io
Source: https://files.pythonhosted.org/packages/source/p/pytest-mpi/pytest-mpi-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pytest-mpi-pr37-sybil3.patch -- gh#aragilar/pytest-mpi#37
Patch0: pytest-mpi-pr37-sybil3.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -43,7 +45,7 @@ BuildArch: noarch
BuildRequires: %{python_module mpi4py}
BuildRequires: %{mpiver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sybil}
BuildRequires: %{python_module sybil >= 3}
# /SECTION
%python_subpackages
@ -51,7 +53,7 @@ BuildRequires: %{python_module sybil}
mpi plugin for pytest to collect information from openmpi-based tests.
%prep
%setup -q -n pytest-mpi-%{version}
%autosetup -p1 -n pytest-mpi-%{version}
%build
%python_build