commit d3478c77b140ab2c79336a19711b8f87b9772991 Author: tigro Date: Sun Jan 5 21:12:58 2025 +0300 import python-pytest-mpi-0.6-10.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45321f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pytest-mpi-0.6.tar.gz diff --git a/.python-pytest-mpi.metadata b/.python-pytest-mpi.metadata new file mode 100644 index 0000000..e60e5c6 --- /dev/null +++ b/.python-pytest-mpi.metadata @@ -0,0 +1 @@ +a46aea5e63fa4043fd50223f2a91b9e3d388fd10 SOURCES/pytest-mpi-0.6.tar.gz diff --git a/SPECS/python-pytest-mpi.spec b/SPECS/python-pytest-mpi.spec new file mode 100644 index 0000000..4e16e0f --- /dev/null +++ b/SPECS/python-pytest-mpi.spec @@ -0,0 +1,124 @@ +%?python_enable_dependency_generator +%global srcname pytest-mpi + +Name: python-%{srcname} +Version: 0.6 +Release: 10%{?dist} +Summary: Pytest plugin for running tests under MPI + +License: BSD +URL: https://github.com/aragilar/pytest-mpi +Source0: https://github.com/aragilar/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +pytest_mpi is a plugin for pytest providing some useful tools when running +tests under MPI, and testing MPI-related code. + + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: Pytest plugin for running tests under MPI +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-sybil >= 3.0 +BuildRequires: mpich-devel +BuildRequires: python%{python3_pkgversion}-mpi4py-mpich +BuildRequires: openmpi-devel +BuildRequires: python%{python3_pkgversion}-mpi4py-openmpi + +%description -n python%{python3_pkgversion}-%{srcname} +pytest_mpi is a plugin for pytest providing some useful tools when running +tests under MPI, and testing MPI-related code. + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%build +%py3_build + + +%install +%py3_install + + +%check +module load mpi/mpich-%{_host_cpu} +export PYTHONPATH=%{buildroot}%{python3_sitelib}:$MPI_PYTHON3_SITEARCH +py.test-%{python3_version} -p pytester --runpytest=subprocess -vv +module unload mpi/mpich-%{_host_cpu} +module load mpi/openmpi-%{_host_cpu} +export OMPI_MCA_rmaps_base_oversubscribe=1 +export PYTHONPATH=%{buildroot}%{python3_sitelib}:$MPI_PYTHON3_SITEARCH +py.test-%{python3_version} -p pytester --runpytest=subprocess -vv +module unload mpi/openmpi-%{_host_cpu} + + +%files -n python%{python3_pkgversion}-%{srcname} +%license LICENSE.txt +%doc README.md +%{python3_sitelib}/pytest_mpi/ +%{python3_sitelib}/pytest_mpi-*.egg-info/ + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 0.6-10 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.6-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 0.6-9 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 0.6-5 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.6-2 +- Rebuilt for Python 3.11 + +* Sat Mar 05 2022 Orion Poplawski - 0.6-1 +- Update to 0.6 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 09 2021 Orion Poplawski - 0.5-1 +- Update to 0.5 + +* Fri Jun 04 2021 Python Maint - 0.4-5 +- Rebuilt for Python 3.10 + +* Sat Jan 30 2021 Orion Poplawski - 0.4-4 +- Set OMPI_MCA_rmaps_base_oversubscribe=1 for openmpi tests (bz#1900524) + +* Wed Jan 27 2021 Fedora Release Engineering - 0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Nov 1 2020 Orion Poplawski - 0.4-2 +- Change URL +- Fix permissions + +* Sun Oct 11 2020 Orion Poplawski - 0.4-1 +- Initial package