diff --git a/python-stestr.spec b/python-stestr.spec index 58e080bdb46ec9d7a7f28d056e8cb9cd044a4e5d..ea5a134bc71498c09a480ab162f8f25854bed10b 100644 --- a/python-stestr.spec +++ b/python-stestr.spec @@ -1,86 +1,77 @@ %global _empty_manifest_terminate_build 0 +Name: python-stestr +Version: 2.1.0 +Release: 2 +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/d5/96/5bfe962427b4d373371c9d5a3575ac9a7c20d9813837a8014efc1955a2fd/stestr-2.1.0.tar.gz +BuildArch: noarch +%description +stestr is parallel Python test runner designed to execute unittest test suites using multiple processes to split up execution of a test suite. -Name: python-stestr -Version: 3.0.1 -Release: 4 -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 -%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. +%package -n python2-stestr +Summary: A parallel Python test runner built around subunit +Provides: python2-stestr +BuildRequires: python2-pbr +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pip +%description -n python2-stestr +stestr is parallel Python test runner designed to execute unittest test suites using multiple processes to split up execution of a test suite. -%package -n python3-stestr -Summary: A test runner runner similar to testrepository -BuildRequires: git -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 help +Summary: Development documents and examples for stestr +Provides: python2-stestr-doc +%description help +stestr is parallel Python test runner designed to execute unittest test suites using multiple processes to split up execution of a test suite. -%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. %prep -%autosetup -n stestr-%{version} -S git -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-2.1.0 %build -%py3_build +%py2_build %install -%py3_install -ln -s stestr %{buildroot}/%{_bindir}/stestr-3 -ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version} +%py2_install +cp %{buildroot}/%{_bindir}/stestr %{buildroot}/%{_bindir}/stestr-2 +ln -sf %{_bindir}/stestr-2 %{buildroot}/%{_bindir}/stestr-%{python2_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 || : - -%files -n python3-stestr -%license LICENSE -%doc README.rst +%files -n python2-stestr -f filelist.lst +%dir %{python2_sitelib}/* %{_bindir}/stestr* -%{python3_sitelib}/stestr -%{python3_sitelib}/stestr-*.egg-info -%changelog -* Mon Dec 28 2020 liksh - 3.0.1-4 -- Remove python2 support +%files help -f doclist.lst +%{_docdir}/* -* Fri Nov 20 2020 Python_Bot +%changelog +* Thu Apr 29 2021 openstack-sig - Package Spec generated - - diff --git a/stestr-2.1.0.tar.gz b/stestr-2.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f4e4c7510d2f0330bfe078d6aeb6805e7b83185f Binary files /dev/null and b/stestr-2.1.0.tar.gz differ diff --git a/stestr-3.0.1.tar.gz b/stestr-3.0.1.tar.gz deleted file mode 100644 index 1b8804579a6a0a7c2ebf9a748c7d29009e02bf43..0000000000000000000000000000000000000000 Binary files a/stestr-3.0.1.tar.gz and /dev/null differ