Accepting request 942802 from home:bnavigator:py310
- add pytest-mpi-pr37-sybil3.patch -- gh#aragilar/pytest-mpi#37 OBS-URL: https://build.opensuse.org/request/show/942802 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pytest-mpi?expand=0&rev=11
This commit is contained in:
parent
f944e97b47
commit
56e276e4fe
32
pytest-mpi-pr37-sybil3.patch
Normal file
32
pytest-mpi-pr37-sybil3.patch
Normal 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',
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user