diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:03:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:03:49 +0000 |
commit | 03c67406852a6bc35ac463a6a3735c403ee1478e (patch) | |
tree | 2aaf032d1c994a06cb1f6e648d08f5d654ab5aa5 | |
parent | 163e214df8323666117f75ae1943867a931aa62e (diff) |
automatic import of python-pytest-mpi
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pytest-mpi.spec | 154 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 156 insertions, 0 deletions
@@ -0,0 +1 @@ +/pytest-mpi-0.6.tar.gz diff --git a/python-pytest-mpi.spec b/python-pytest-mpi.spec new file mode 100644 index 0000000..25c7cf5 --- /dev/null +++ b/python-pytest-mpi.spec @@ -0,0 +1,154 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytest-mpi +Version: 0.6 +Release: 1 +Summary: pytest plugin to collect information from tests +License: 3-clause BSD +URL: https://pytest-mpi.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6c/db/b9d4b23750eb91865787656dce02a2864397aa1ee130df00ec73d3954e7e/pytest-mpi-0.6.tar.gz +BuildArch: noarch + +Requires: python3-pytest + +%description +`pytest_mpi` is a plugin for pytest providing some useful tools when running +tests under MPI, and testing MPI-related code. + +To run a test only when using MPI, use the `pytest.mark.mpi` marker like: +:: + + @pytest.mark.mpi + def test_mpi(): + pass + + +Further documentation can be found at `<https://pytest-mpi.readthedocs.io>`_. + +Bug reports and suggestions should be filed at +`<https://github.com/aragilar/pytest-mpi/issues>`_. + + +|Documentation Status| |Build Status| |Coverage Status| + +.. |Documentation Status| image:: https://readthedocs.org/projects/pytest-mpi/badge/?version=latest + :target: http://pytest-mpi.readthedocs.org/en/latest/?badge=latest +.. |Build Status| image:: https://travis-ci.org/aragilar/pytest-mpi.svg?branch=master + :target: https://travis-ci.org/aragilar/pytest-mpi +.. |Coverage Status| image:: https://codecov.io/github/aragilar/pytest-mpi/coverage.svg?branch=master + :target: https://codecov.io/github/aragilar/pytest-mpi?branch=master + + + + +%package -n python3-pytest-mpi +Summary: pytest plugin to collect information from tests +Provides: python-pytest-mpi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pytest-mpi +`pytest_mpi` is a plugin for pytest providing some useful tools when running +tests under MPI, and testing MPI-related code. + +To run a test only when using MPI, use the `pytest.mark.mpi` marker like: +:: + + @pytest.mark.mpi + def test_mpi(): + pass + + +Further documentation can be found at `<https://pytest-mpi.readthedocs.io>`_. + +Bug reports and suggestions should be filed at +`<https://github.com/aragilar/pytest-mpi/issues>`_. + + +|Documentation Status| |Build Status| |Coverage Status| + +.. |Documentation Status| image:: https://readthedocs.org/projects/pytest-mpi/badge/?version=latest + :target: http://pytest-mpi.readthedocs.org/en/latest/?badge=latest +.. |Build Status| image:: https://travis-ci.org/aragilar/pytest-mpi.svg?branch=master + :target: https://travis-ci.org/aragilar/pytest-mpi +.. |Coverage Status| image:: https://codecov.io/github/aragilar/pytest-mpi/coverage.svg?branch=master + :target: https://codecov.io/github/aragilar/pytest-mpi?branch=master + + + + +%package help +Summary: Development documents and examples for pytest-mpi +Provides: python3-pytest-mpi-doc +%description help +`pytest_mpi` is a plugin for pytest providing some useful tools when running +tests under MPI, and testing MPI-related code. + +To run a test only when using MPI, use the `pytest.mark.mpi` marker like: +:: + + @pytest.mark.mpi + def test_mpi(): + pass + + +Further documentation can be found at `<https://pytest-mpi.readthedocs.io>`_. + +Bug reports and suggestions should be filed at +`<https://github.com/aragilar/pytest-mpi/issues>`_. + + +|Documentation Status| |Build Status| |Coverage Status| + +.. |Documentation Status| image:: https://readthedocs.org/projects/pytest-mpi/badge/?version=latest + :target: http://pytest-mpi.readthedocs.org/en/latest/?badge=latest +.. |Build Status| image:: https://travis-ci.org/aragilar/pytest-mpi.svg?branch=master + :target: https://travis-ci.org/aragilar/pytest-mpi +.. |Coverage Status| image:: https://codecov.io/github/aragilar/pytest-mpi/coverage.svg?branch=master + :target: https://codecov.io/github/aragilar/pytest-mpi?branch=master + + + + +%prep +%autosetup -n pytest-mpi-0.6 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pytest-mpi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6-1 +- Package Spec generated @@ -0,0 +1 @@ +238fa3586f868e1caeeac3858cc6ffec pytest-mpi-0.6.tar.gz |