diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:30:08 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:30:08 +0000 |
| commit | 839cea31244c57c0c3258b53b27b70903869f6cc (patch) | |
| tree | ff25e8c14eb1ae5de9fef3c3a5470daf651b5945 /python-pytest-allclose.spec | |
| parent | d9fb3f28579d836f4df5ae163f93372e65e95946 (diff) | |
automatic import of python-pytest-allclose
Diffstat (limited to 'python-pytest-allclose.spec')
| -rw-r--r-- | python-pytest-allclose.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/python-pytest-allclose.spec b/python-pytest-allclose.spec new file mode 100644 index 0000000..36b4d31 --- /dev/null +++ b/python-pytest-allclose.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytest-allclose +Version: 1.0.0 +Release: 1 +Summary: Pytest fixture extending Numpy's allclose function +License: MIT license +URL: https://www.nengo.ai/pytest-allclose +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7a/7c/2b82fafea079feb080404b7611a4d07313ae816d2a35e7f2df084a3e002b/pytest-allclose-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-pytest +Requires: python3-nengo-sphinx-theme +Requires: python3-sphinx +Requires: python3-codespell +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-gitlint +Requires: python3-pylint +Requires: python3-nengo-sphinx-theme +Requires: python3-sphinx +Requires: python3-codespell +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-gitlint +Requires: python3-pylint + +%description +To use this fixture, install with + pip install pytest-allclose + +%package -n python3-pytest-allclose +Summary: Pytest fixture extending Numpy's allclose function +Provides: python-pytest-allclose +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pytest-allclose +To use this fixture, install with + pip install pytest-allclose + +%package help +Summary: Development documents and examples for pytest-allclose +Provides: python3-pytest-allclose-doc +%description help +To use this fixture, install with + pip install pytest-allclose + +%prep +%autosetup -n pytest-allclose-1.0.0 + +%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-allclose -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated |
