Accepting request 1035099 from devel:languages:python:numeric

- Remove pml/ob1 option for tests, bsc#1205139

- Disable test_fixtures that produces a Segmentation fault in i586

- Use pml ob1 to run tests

- Remove pytest-mpi-pr37-sybil3.patch, not needed anymore
- Update to 0.6:
  * Again no codebase changes, testing/CI and packaging fixes only.
  * Update Azure Pipelines to use latest images (so CI runs again)
  * Update versioneer to work on future Python versions.
  * Fix doctests infrastructure

OBS-URL: https://build.opensuse.org/request/show/1035099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mpi?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2022-11-10 16:33:09 +00:00 committed by Git OBS Bridge
commit 73c20647c0
5 changed files with 37 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad392f5cd3f72ed0aeb9bb9e6f77554d79f3b81f72e3526ba60ae34fc2d4359e
size 33787

BIN
pytest-mpi-0.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,32 +0,0 @@
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,33 @@
-------------------------------------------------------------------
Thu Nov 10 15:24:16 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Disable again test_fixtures that produces a Segmentation fault in i586
-------------------------------------------------------------------
Tue Nov 8 12:44:13 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove pml/ob1 option for tests, bsc#1205139
-------------------------------------------------------------------
Tue Nov 8 11:27:29 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Disable test_fixtures that produces a Segmentation fault in i586
-------------------------------------------------------------------
Tue Nov 8 10:21:48 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Use pml ob1 to run tests
-------------------------------------------------------------------
Tue Nov 8 09:45:07 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove pytest-mpi-pr37-sybil3.patch, not needed anymore
- Update to 0.6:
* Again no codebase changes, testing/CI and packaging fixes only.
* Update Azure Pipelines to use latest images (so CI runs again)
* Update versioneer to work on future Python versions.
* Fix doctests infrastructure
-------------------------------------------------------------------
Mon Dec 27 15:58:20 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mpi
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,14 +27,12 @@
# mpi4py depends on numpy, which is not available for python36
%define skip_python36 1
Name: python-pytest-mpi
Version: 0.5
Version: 0.6
Release: 0
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
@ -65,7 +63,8 @@ mpi plugin for pytest to collect information from openmpi-based tests.
%check
export PATH=${PATH}:%{_libdir}/mpi/gcc/%{mpiver}/bin
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
%pytest -v -p pytester --runpytest=subprocess
# Exclude test_fixtures, it fails for i586 arch with Segmentation fault
%pytest -v -p pytester --runpytest=subprocess -k 'not test_fixtures'
%files %{python_files}
%doc README.md