Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
085a1047fc
!22 [sync] PR-21: Update package to version 4.1.0
From: @openeuler-sync-bot 
Reviewed-by: @han-guangyu 
Signed-off-by: @han-guangyu
2024-03-29 02:15:49 +00:00
GuoCe
9f2bff2fee Update package to version 4.1.0
(cherry picked from commit e412a1bf3de10825a2c8c9965b17bdd5658f3a4b)
2024-03-27 17:41:15 +08:00
openeuler-ci-bot
719bf73fff
!20 Update package
From: @liqiuyu123 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
2022-12-12 08:34:19 +00:00
liqiuyu123
3cbbb6edfb update version to 4.0.1 2022-12-07 15:00:19 +08:00
openeuler-ci-bot
36154e44ad
!18 Update package stestr of version 3.2.1
From: @renliang16 
Reviewed-by: @han-guangyu 
Signed-off-by: @han-guangyu
2022-07-27 06:41:37 +00:00
renliang16
0baa2509d0 Update package stestr of version 3.2.1 2022-07-27 06:15:45 +00:00
openeuler-ci-bot
a1e568e8cc !13 Adds ln stestr-3 and stestr-%{python3_version} back
From: @huangtianhua
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang
2021-08-12 12:08:09 +00:00
huangtianhua
52aa2cb0c3 Adds ln stestr-3 and stestr-%{python3_version} back
The command 'stestr-3' is missed after upgrade in
https://gitee.com/src-openeuler/python-stestr/pulls/12
This adds the lns back.
2021-08-12 11:35:15 +00:00
openeuler-ci-bot
8dc339d4a5 !12 update python-stestr for openstack wallaby
From: @liksh
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang
2021-08-12 03:28:50 +00:00
liksh
e18db18bf5 update to 3.1.0 2021-08-10 15:20:54 +08:00
3 changed files with 91 additions and 61 deletions

View File

@ -1,81 +1,112 @@
%global _empty_manifest_terminate_build 0
Name: python-stestr
Version: 3.0.1
Release: 5
Summary: A test runner runner similar to testrepository
License: Apache-2.0
URL: http://stestr.readthedocs.io/en/latest/
Source0: https://files.pythonhosted.org/packages/a4/20/7be12e9e605f9149cf6b4cbd76465832a377e26699a86beefb42e2235099/stestr-3.0.1.tar.gz
BuildArch: noarch
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
stestr is a fork of the testrepository that concentrates on being a \
dedicated test runner for python projects. The generic abstraction layers \
which enabled testr to work with any subunit emitting runner are gone. \
stestr hard codes python-subunit-isms into how it works.
A parallel Python test runner built around subunit
%package -n python3-stestr
Summary: A test runner runner similar to testrepository
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-mock
BuildRequires: python3-future
BuildRequires: python3-subunit
BuildRequires: python3-fixtures
BuildRequires: python3-six
BuildRequires: python3-sqlalchemy
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
%package -n python3-stestr
Summary: A parallel Python test runner built around subunit
Provides: python-stestr
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-future
BuildRequires: python3-cliff
BuildRequires: python3-subunit
BuildRequires: python3-fixtures
BuildRequires: python3-testtools
BuildRequires: python3-pyyaml
BuildRequires: python3-voluptuous
# BuildRequires: python3-subunit2sql
# General requires
Requires: python3-future
Requires: python3-pbr
Requires: python3-cliff
Requires: python3-subunit
Requires: python3-fixtures
Requires: python3-testtools
Requires: python3-pyyaml
Requires: python3-voluptuous
# Requires: python3-subunit2sql
%description -n python3-stestr
stestr is a fork of the testrepository that concentrates on being a \
dedicated test runner for python projects. The generic abstraction layers \
which enabled testr to work with any subunit emitting runner are gone. \
stestr hard codes python-subunit-isms into how it works.
A parallel Python test runner built around subunit
%package help
Summary: A parallel Python test runner built around subunit
Provides: python3-stestr-doc
%description help
A parallel Python test runner built around subunit
%prep
%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
%autosetup -n stestr-%{version}
%build
%py3_build
%install
%py3_install
ln -s stestr %{buildroot}/%{_bindir}/stestr-3
ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version}
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
export PATH=%{buildroot}/%{_bindir}:$PATH
rm -fr .stestr
PYTHON=%{__python3} %{__python3} setup.py test || :
# %{__python3} setup.py test
%files -n python3-stestr
%license LICENSE
%doc README.rst
%{_bindir}/stestr*
%{python3_sitelib}/stestr
%{python3_sitelib}/stestr-*.egg-info
%files -n python3-stestr -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%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
- DESC: delete -S git from %autosetup, and delete BuildRequires git
@ -85,4 +116,3 @@ PYTHON=%{__python3} %{__python3} setup.py test || :
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated

Binary file not shown.

BIN
stestr-4.1.0.tar.gz Normal file

Binary file not shown.