Accepting request 854374 from home:badshah400:branches:devel:languages:python:numeric
New package: pytest-mpi, an MPI plugin for pytest OBS-URL: https://build.opensuse.org/request/show/854374 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pytest-mpi?expand=0&rev=1
This commit is contained in:
commit
4d2ccb8fd4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
pytest-mpi-0.4.tar.gz
Normal file
3
pytest-mpi-0.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8879c82a9e837bdb49a1675858a13ef22e61e379c983fd37491f876c299b8b31
|
||||
size 34410
|
4
python-pytest-mpi.changes
Normal file
4
python-pytest-mpi.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 4 13:23:28 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Initial package.
|
69
python-pytest-mpi.spec
Normal file
69
python-pytest-mpi.spec
Normal file
@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file for package python-pytest-mpi
|
||||
#
|
||||
# Copyright (c) 2020 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/
|
||||
#
|
||||
|
||||
|
||||
%define modname pytest_mpi
|
||||
# Module supports only python3
|
||||
%define skip_python2 1
|
||||
Name: python-pytest-mpi
|
||||
Version: 0.4
|
||||
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
|
||||
Requires: python-sybil
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mpi4py}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sybil}
|
||||
BuildRequires: openmpi2
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
mpi plugin for pytest to collect information from openmpi-based tests.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-mpi-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PATH=${PATH}:%{_libdir}/mpi/gcc/openmpi2/bin
|
||||
source %{_libdir}/mpi/gcc/openmpi2/bin/mpivars.sh
|
||||
# include `-p pytester` as pytester needs to be manually activated (see https://pytest-mpi.readthedocs.io/en/latest/contributing.html)
|
||||
# Also see gh#aragilar/pytest-mpi#14 for tow failing tests disabled here
|
||||
%pytest -v -p pytester -k 'not test_mpi_with_mpi and not test_mpi_only_mpi'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/%{modname}/
|
||||
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user