Compare commits

..

No commits in common. "085a1047fca8056f8cc46683a2fb73784bc1b1a1" and "9115617e2044f0f62a56b982457418838b7f2b78" have entirely different histories.

3 changed files with 62 additions and 92 deletions

View File

@ -1,112 +1,81 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-stestr
Version: 4.1.0
Release: 1
Summary: A parallel Python test runner built around subunit
License: Apache-2.0
URL: http://stestr.readthedocs.io/en/latest/
Source0: https://files.pythonhosted.org/packages/fe/83/8c1929b09370801b398595a43216f15acfcafbb6195301b5ea62aa8b98d6/stestr-4.1.0.tar.gz
BuildArch: noarch
%description
A parallel Python test runner built around subunit
%package -n python3-stestr Name: python-stestr
Summary: A parallel Python test runner built around subunit Version: 3.0.1
Provides: python-stestr Release: 5
# Base build requires Summary: A test runner runner similar to testrepository
BuildRequires: python3-devel License: Apache-2.0
BuildRequires: python3-setuptools URL: http://stestr.readthedocs.io/en/latest/
BuildRequires: python3-pbr Source0: https://files.pythonhosted.org/packages/a4/20/7be12e9e605f9149cf6b4cbd76465832a377e26699a86beefb42e2235099/stestr-3.0.1.tar.gz
BuildRequires: python3-pip BuildArch: noarch
BuildRequires: python3-wheel
# General requires %description
BuildRequires: python3-future stestr is a fork of the testrepository that concentrates on being a \
BuildRequires: python3-cliff dedicated test runner for python projects. The generic abstraction layers \
BuildRequires: python3-subunit which enabled testr to work with any subunit emitting runner are gone. \
BuildRequires: python3-fixtures stestr hard codes python-subunit-isms into how it works.
BuildRequires: python3-testtools
BuildRequires: python3-pyyaml %package -n python3-stestr
BuildRequires: python3-voluptuous Summary: A test runner runner similar to testrepository
# BuildRequires: python3-subunit2sql BuildRequires: python3-devel
# General requires BuildRequires: python3-setuptools
Requires: python3-future BuildRequires: python3-pbr
Requires: python3-pbr BuildRequires: python3-pip
Requires: python3-cliff BuildRequires: python3-mock
Requires: python3-subunit BuildRequires: python3-future
Requires: python3-fixtures BuildRequires: python3-subunit
Requires: python3-testtools BuildRequires: python3-fixtures
Requires: python3-pyyaml BuildRequires: python3-six
Requires: python3-voluptuous BuildRequires: python3-sqlalchemy
# Requires: python3-subunit2sql BuildRequires: python3-testtools
BuildRequires: python3-PyYAML
BuildRequires: python3-ddt
BuildRequires: python3-cliff
BuildRequires: python3-voluptuous
Requires: python3-pbr
Requires: python3-future
Requires: python3-subunit
Requires: python3-fixtures
Requires: python3-six
Requires: python3-testtools
Requires: python3-PyYAML
Requires: python3-cliff
Requires: python3-voluptuous
%description -n python3-stestr %description -n python3-stestr
A parallel Python test runner built around subunit stestr is a fork of the testrepository that concentrates on being a \
dedicated test runner for python projects. The generic abstraction layers \
%package help which enabled testr to work with any subunit emitting runner are gone. \
Summary: A parallel Python test runner built around subunit stestr hard codes python-subunit-isms into how it works.
Provides: python3-stestr-doc
%description help
A parallel Python test runner built around subunit
%prep %prep
%autosetup -n stestr-%{version} %autosetup -n stestr-%{version} -p1
rm -rf stestr.egg-info
rm -f test-requirements.txt requirements.txt
sed -i 's/pbr>=2.0.0/pbr/g' setup.py
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} ln -s stestr %{buildroot}/%{_bindir}/stestr-3
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version}
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 %check
# %{__python3} setup.py test export PATH=%{buildroot}/%{_bindir}:$PATH
rm -fr .stestr
PYTHON=%{__python3} %{__python3} setup.py test || :
%files -n python3-stestr -f filelist.lst %files -n python3-stestr
%dir %{python3_sitelib}/* %license LICENSE
%doc README.rst
%files help -f doclist.lst %{_bindir}/stestr*
%{_docdir}/* %{python3_sitelib}/stestr
%{python3_sitelib}/stestr-*.egg-info
%changelog %changelog
* Tue Mar 26 2024 GuoCe <guoce@kylinos.cn> - 4.1.0-1
- Update package to version 4.1.0
* Wed Dec 07 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.0.1-1
- Update package to version 4.0.1
* Tue Jul 26 2022 renliang16 <renliang@uniontech.com> - 3.2.1-1
- Upgrade package python3-stestr to version 3.2.1
* Thu Aug 12 2021 huangtianhua <huangtianhua@huawei.com> - 3.1.0-2
- Adds ln stestr-3 and stestr-%{python3_version}
* Tue Aug 10 2021 OpenStack_SIG <openstack@openeuler.org> - 3.1.0-1
- update to 3.1.0
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.0.1-5 * Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.0.1-5
- DESC: delete -S git from %autosetup, and delete BuildRequires git - DESC: delete -S git from %autosetup, and delete BuildRequires git
@ -116,3 +85,4 @@ mv %{buildroot}/doclist.lst .
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org> * Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated

BIN
stestr-3.0.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.