Sync from SUSE:SLFO:Main python-pytest-mpi revision 80c50886c036c10f3ed787ec9cd27959

This commit is contained in:
Adrian Schröter 2024-05-03 22:27:17 +02:00
commit dde0dbc7c2
4 changed files with 166 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

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

Binary file not shown.

65
python-pytest-mpi.changes Normal file
View File

@ -0,0 +1,65 @@
-------------------------------------------------------------------
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>
- 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>
- Fix build for SLES/Leaps
-------------------------------------------------------------------
Sun Sep 26 14:12:36 UTC 2021 - Hans-Peter Jansen <hpj@urpla.net>
- Fix build for Tumbleweed
-------------------------------------------------------------------
Mon Mar 15 10:19:55 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 0.5
* fixes the test suite for pytest 6.2
- Skip python36 build: With NumPy 1.20, python36-numpy is no
longer available in Tumbleweed (NEP 29). Mpi4py depends on NumPy,
pytest-mpi us almost useless (and not testable) without mpi4py.
-------------------------------------------------------------------
Tue Feb 23 22:07:18 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Disable most of the test suite. The offending code not working
with pytest 6.2 is in the test suite, not the plugin code itself
gh#aragilar/pytest-mpi#17
-------------------------------------------------------------------
Fri Dec 4 13:23:28 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Initial package.

75
python-pytest-mpi.spec Normal file
View File

@ -0,0 +1,75 @@
#
# spec file for package python-pytest-mpi
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?sle_version} && 0%{?sle_version} < 150300
%define mpiver openmpi
%else
%define mpiver openmpi4
%endif
%define modname pytest_mpi
%define skip_python2 1
# mpi4py depends on numpy, which is not available for python36
%define skip_python36 1
Name: python-pytest-mpi
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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
Recommends: python-mpi4py
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mpi4py}
BuildRequires: %{mpiver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sybil >= 3}
# /SECTION
%python_subpackages
%description
mpi plugin for pytest to collect information from openmpi-based tests.
%prep
%autosetup -p1 -n pytest-mpi-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PATH=${PATH}:%{_libdir}/mpi/gcc/%{mpiver}/bin
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
# 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
%license LICENSE.txt
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
%changelog