pytest/pytest.spec
2020-12-09 16:30:07 +08:00

101 lines
2.6 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-pytest
Version: 6.0.2
Release: 1
Summary: pytest: simple powerful testing with Python
License: MIT
URL: https://docs.pytest.org/en/latest/
Source0: https://files.pythonhosted.org/packages/d4/df/bd7c25c4fe809a17315b3fc9878edf48d31dde7b431b6836848b063c0428/pytest-6.0.2.tar.gz
BuildArch: noarch
Requires: python3-attrs
Requires: python3-iniconfi
Requires: python3-packagin
Requires: python3-pluggy
Requires: python3-py
Requires: python3-tom
Requires: python3-pathlib2
Requires: python3-importlib-metadata
Requires: python3-atomicwrites
Requires: python3-colorama
Requires: python3-mypy
Requires: python3-argcomplete
Requires: python3-hypothesis
Requires: python3-mock
Requires: python3-nose
Requires: python3-requests
Requires: python3-xmlschema
%global _description \
The pytest framework makes it easy to write small tests,\
yet scales to support complex functional testing for\
applications and libraries.
%description
%{_description}
%package -n python3-pytest
Summary: pytest: simple powerful testing with Python
Provides: python-pytest
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%description -n python3-pytest
%{_description}
%package help
Summary: Development documents and examples for pytest
Provides: python3-pytest-doc
%description help
%{_description}
%prep
%autosetup -n pytest-6.0.2
%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 -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_pkgdocdir}
%changelog
* Mon Dec 9 2020 baizhonggui <baizhonggui@huawei.com> - 6.0.2-1
- Update to 6.0.2
* Mon Nov 2 2020 wutao <wutao61@huawei.com> - 3.6.4-4
- disable python2
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 3.6.4-2
- Package init