!2 Update package
From: @liqiuyu123 Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
807b6c4864
BIN
0.17.1.tar.gz
BIN
0.17.1.tar.gz
Binary file not shown.
BIN
pytest-xprocess-0.19.0.tar.gz
Normal file
BIN
pytest-xprocess-0.19.0.tar.gz
Normal file
Binary file not shown.
@ -1,57 +1,78 @@
|
||||
#%global pypi_name pytest-xprocess
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pytest-xprocess
|
||||
Version: 0.19.0
|
||||
Release: 1
|
||||
Summary: Pytest plugin to manage external processes across test runs
|
||||
License: MIT
|
||||
URL: https://github.com/pytest-dev/pytest-xprocess/
|
||||
Source0: https://files.pythonhosted.org/packages/4b/f9/ba67efabd032e73e0526f6236dfe97c4860b1aa2e5d23f0a1c2f5d8d5e50/pytest-xprocess-0.19.0.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Name: python-pytest-xprocess
|
||||
Version: 0.17.1
|
||||
Release: 1
|
||||
Summary: Pytest plugin to manage external processes across test runs
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/pytest-dev/pytest-xprocess/
|
||||
Source0: https://github.com/pytest-dev/pytest-xprocess/archive/refs/tags/0.17.1.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(psutil)
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(setuptools-scm)
|
||||
Requires: python3-pytest
|
||||
Requires: python3-psutil
|
||||
|
||||
%description
|
||||
Experimental py.test <>_ plugin for managing processes across test runs.
|
||||
|
||||
%package -n python3-pytest-xprocess
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-pytest-xprocess}
|
||||
|
||||
Requires: python3dist(psutil)
|
||||
Requires: python3dist(pytest)
|
||||
Requires: python3dist(setuptools)
|
||||
%package -n python3-pytest-xprocess
|
||||
Summary: A pytest plugin for managing processes across test runs.
|
||||
Provides: python-pytest-xprocess
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools_scm
|
||||
BuildRequires: python3-setuptools
|
||||
%description -n python3-pytest-xprocess
|
||||
Experimental py.test <>_ plugin for managing processes across test runs.
|
||||
A pytest plugin for managing external processes across test runs.
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for pytest-xprocess
|
||||
Provides: python3-pytest-xprocess-doc
|
||||
%description help
|
||||
A pytest plugin for managing external processes across test runs.
|
||||
|
||||
%prep
|
||||
%autosetup -n pytest-xprocess-%{version}
|
||||
# Remove bundled egg-info
|
||||
rm -rf pytest-xprocess.egg-info
|
||||
# Remove executable bit from README
|
||||
chmod -x README.rst
|
||||
%autosetup -n pytest-xprocess-0.19.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 .
|
||||
|
||||
%check
|
||||
%files -n python3-pytest-xprocess -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files -n python3-pytest-xprocess
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
%{python3_sitelib}/pytest_xprocess.py
|
||||
%{python3_sitelib}/xprocess.py
|
||||
%{python3_sitelib}/pytest_xprocess-%{version}-py%{python3_version}.egg-info
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 01 2022 Python_Bot <Python_Bot@openeuler.org> - 0.19.0-1
|
||||
- Package Spec generated
|
||||
|
||||
* Sat Jul 17 2021 yinyongkang <yinyongkang@kylinos.cn> - 0.17.1-1
|
||||
- Init Package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user