commit 8e6f9c577b86aba6c805e30ffbe1463b842bc606 Author: Adrian Schröter Date: Wed Sep 25 15:54:05 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-pytest-mpi revision 46eb54dae9501dae7d777bec010e050a diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/pytest-mpi-0.6.tar.gz b/pytest-mpi-0.6.tar.gz new file mode 100644 index 0000000..0789a6d --- /dev/null +++ b/pytest-mpi-0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09b3cd3511f8f3cd4d205f54d4a7223724fed0ab68b872ed1123d312152325a9 +size 35329 diff --git a/python-pytest-mpi.changes b/python-pytest-mpi.changes new file mode 100644 index 0000000..72968c0 --- /dev/null +++ b/python-pytest-mpi.changes @@ -0,0 +1,70 @@ +------------------------------------------------------------------- +Tue May 28 07:30:07 UTC 2024 - Daniel Garcia + +- Skip some tests that produces a Segmentation fault in s390x + +------------------------------------------------------------------- +Thu Nov 10 15:24:16 UTC 2022 - Daniel Garcia + +- Disable again test_fixtures that produces a Segmentation fault in i586 + +------------------------------------------------------------------- +Tue Nov 8 12:44:13 UTC 2022 - Daniel Garcia + +- Remove pml/ob1 option for tests, bsc#1205139 + +------------------------------------------------------------------- +Tue Nov 8 11:27:29 UTC 2022 - Daniel Garcia + +- Disable test_fixtures that produces a Segmentation fault in i586 + +------------------------------------------------------------------- +Tue Nov 8 10:21:48 UTC 2022 - Daniel Garcia + +- Use pml ob1 to run tests + +------------------------------------------------------------------- +Tue Nov 8 09:45:07 UTC 2022 - Daniel Garcia + +- 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 + +- add pytest-mpi-pr37-sybil3.patch -- gh#aragilar/pytest-mpi#37 + +------------------------------------------------------------------- +Sun Sep 26 15:50:10 UTC 2021 - Hans-Peter Jansen + +- Fix build for SLES/Leaps + +------------------------------------------------------------------- +Sun Sep 26 14:12:36 UTC 2021 - Hans-Peter Jansen + +- Fix build for Tumbleweed + +------------------------------------------------------------------- +Mon Mar 15 10:19:55 UTC 2021 - Ben Greiner + +- 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 + +- 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 + +- Initial package. diff --git a/python-pytest-mpi.spec b/python-pytest-mpi.spec new file mode 100644 index 0000000..660ed70 --- /dev/null +++ b/python-pytest-mpi.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-pytest-mpi +# +# Copyright (c) 2024 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 +donttest="test_fixtures" +%if "%{_arch}" == "s390x" +# Exclude some test_mpi_ that fails for s390x arch with Segmentation fault +donttest+=" or test_mpi_with_mpi or test_mpi_only_mpi or test_mpi_skip_under_mpi or test_mpi_xfail or test_mpi_xfail_under_mpi" +%endif + +%pytest -v -p pytester --runpytest=subprocess -k "not ($donttest)" + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ + +%changelog