|
rdobuilder |
f3e667 |
%global pypi_name stestr
|
|
rdobuilder |
f3e667 |
# Enable bootstrap
|
|
rdobuilder |
f3e667 |
%bcond_without bootstrap
|
|
rdobuilder |
f3e667 |
%global with_doc 1
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%global common_desc \
|
|
rdobuilder |
f3e667 |
stestr is a fork of the testrepository that concentrates on being a \
|
|
rdobuilder |
f3e667 |
dedicated test runner for python projects. The generic abstraction layers \
|
|
rdobuilder |
f3e667 |
which enabled testr to work with any subunit emitting runner are gone. \
|
|
rdobuilder |
f3e667 |
stestr hard codes python-subunit-isms into how it works.
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
Name: python-%{pypi_name}
|
|
rdobuilder |
f3e667 |
Version: 4.0.1
|
|
rdobuilder |
f3e667 |
Release: 1%{?dist}
|
|
rdobuilder |
f3e667 |
Summary: A test runner runner similar to testrepository
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
License: ASL 2.0
|
|
rdobuilder |
f3e667 |
URL: https://pypi.python.org/pypi/stestr
|
|
rdobuilder |
f3e667 |
Source0: %pypi_source
|
|
rdobuilder |
f3e667 |
BuildArch: noarch
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%description
|
|
rdobuilder |
f3e667 |
%{common_desc}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
rdobuilder |
f3e667 |
Summary: A test runner runner similar to testrepository
|
|
rdobuilder |
f3e667 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
rdobuilder |
f3e667 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
f3e667 |
BuildRequires: git-core
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-pbr
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-future
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-subunit >= 1.4.0
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-fixtures >= 3.0.0
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-testtools >= 2.2.0
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-PyYAML >= 3.10.0
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-cliff >= 2.8.0
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-voluptuous >= 0.8.9
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
rdobuilder |
f3e667 |
%{common_desc}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%if %{without bootstrap}
|
|
rdobuilder |
f3e667 |
%package -n python%{python3_pkgversion}-%{pypi_name}-sql
|
|
rdobuilder |
f3e667 |
Summary: sql plugin for stestr
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
BuildRequires: /usr/bin/subunit2sql-db-manage
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-%{pypi_name} = %{version}-%{release}
|
|
rdobuilder |
f3e667 |
Requires: python%{python3_pkgversion}-subunit2sql
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%description -n python%{python3_pkgversion}-%{pypi_name}-sql
|
|
rdobuilder |
f3e667 |
It contains the sql plugin for stestr.
|
|
rdobuilder |
f3e667 |
%endif
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%if 0%{?with_doc}
|
|
rdobuilder |
f3e667 |
%package -n python-%{pypi_name}-doc
|
|
rdobuilder |
f3e667 |
Summary: stestr documentation
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%description -n python-%{pypi_name}-doc
|
|
rdobuilder |
f3e667 |
%{common_desc}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
It contains the documentation for stestr.
|
|
rdobuilder |
f3e667 |
%endif
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%generate_buildrequires
|
|
rdobuilder |
f3e667 |
%pyproject_buildrequires -t %{!?with_bootstrap:-x sql}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%prep
|
|
rdobuilder |
f3e667 |
%autosetup -n %{pypi_name}-%{version} -S git
|
|
rdobuilder |
f3e667 |
sed -i '/doc8.*/d' test-requirements.txt
|
|
rdobuilder |
f3e667 |
sed -i '/hacking.*/d' test-requirements.txt
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%build
|
|
rdobuilder |
f3e667 |
%pyproject_wheel
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%if 0%{?with_doc}
|
|
rdobuilder |
f3e667 |
# generate html docs
|
|
rdobuilder |
f3e667 |
PYTHONPATH=%{pyproject_build_lib} sphinx-build doc/source doc/build/html
|
|
rdobuilder |
f3e667 |
# remove the sphinx-build leftovers
|
|
rdobuilder |
f3e667 |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
rdobuilder |
f3e667 |
%endif
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%install
|
|
rdobuilder |
f3e667 |
%pyproject_install
|
|
rdobuilder |
f3e667 |
%pyproject_save_files %{pypi_name}
|
|
rdobuilder |
f3e667 |
# compat symlinks
|
|
rdobuilder |
f3e667 |
ln -s stestr %{buildroot}/%{_bindir}/stestr-3
|
|
rdobuilder |
f3e667 |
ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version}
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%check
|
|
rdobuilder |
f3e667 |
%tox
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
|
|
rdobuilder |
f3e667 |
%license LICENSE
|
|
rdobuilder |
f3e667 |
%{_bindir}/stestr*
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%if %{without bootstrap}
|
|
rdobuilder |
f3e667 |
%files -n python%{python3_pkgversion}-%{pypi_name}-sql
|
|
rdobuilder |
f3e667 |
%{python3_sitelib}/%{pypi_name}/repository/sql.py
|
|
rdobuilder |
f3e667 |
%endif
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%if 0%{?with_doc}
|
|
rdobuilder |
f3e667 |
%files -n python-%{pypi_name}-doc
|
|
rdobuilder |
f3e667 |
%license LICENSE
|
|
rdobuilder |
f3e667 |
%doc README.rst
|
|
rdobuilder |
f3e667 |
%doc doc/build/html
|
|
rdobuilder |
f3e667 |
%endif
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
%changelog
|
|
rdobuilder |
f3e667 |
* Wed Feb 08 2023 Joel Capitao <jcapitao@redhat.com> - 4.0.1-1
|
|
rdobuilder |
f3e667 |
- Update to latest upstream (#1482280)
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-7
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-6
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 3.2.0-5
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Jul 05 2021 Miro Hrončok <mhroncok@redhat.com> - 3.2.0-2
|
|
rdobuilder |
f3e667 |
- Reintroduce the Dist Tag (e.g. fc35) to the release value
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Jun 28 2021 Joel Capitao <jcapitao@redhat.com> - 3.2.0-1
|
|
rdobuilder |
f3e667 |
- Update to 3.2.0 (#1480520)
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.6.0-9
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-8
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-7
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-6
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-5
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Dec 17 2019 Chandan Kumar <raukadah@gmail.com> - 2.6.0-1
|
|
rdobuilder |
f3e667 |
- Bumped to version 2.6.0
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-3
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Jul 23 2019 Chandan Kumar <chkumar246@gmail.com> - 2.4.0-1
|
|
rdobuilder |
f3e667 |
- Update to 2.4.0
|
|
rdobuilder |
f3e667 |
- Removed patch "Discover python executable when discover is not used"
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Jun 07 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.3.1-1
|
|
rdobuilder |
f3e667 |
- Update to 2.3.1
|
|
rdobuilder |
f3e667 |
- Included patch "Discover python executable when discover is not used"
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Thu Feb 14 2019 Yatin Karel <ykarel@redhat.com> - 2.2.0-1
|
|
rdobuilder |
f3e667 |
- Update to 2.2.0 and Enable py2 build for CentOS <= 7
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.1.0-2
|
|
rdobuilder |
f3e667 |
- Python2 binary package has been removed
|
|
rdobuilder |
f3e667 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Jul 30 2018 Chandan Kumar <chkumar246@gmail.com> - 2.1.0-1
|
|
rdobuilder |
f3e667 |
- Bump to version 2.1.0
|
|
rdobuilder |
f3e667 |
- Synced requirements for newer version
|
|
rdobuilder |
f3e667 |
- Closes-Bug RHBZ#1480520
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
|
|
rdobuilder |
f3e667 |
- Rebuilt for Python 3.7
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.0-3
|
|
rdobuilder |
f3e667 |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
f3e667 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
rdobuilder |
f3e667 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Oct 17 2017 Chandan Kumar <chkumar246@gmail.com> - 1.1.0-1
|
|
rdobuilder |
f3e667 |
- Update the spec to 1.1.0
|
|
rdobuilder |
f3e667 |
- Enable tests
|
|
rdobuilder |
f3e667 |
- Moved python2-subunit2sql under docs
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Sep 15 2017 Chandan Kumar <chkumar246@gmail.com> - 1.0.0-4
|
|
rdobuilder |
f3e667 |
- Disable tests
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Sep 15 2017 Chandan Kumar <chkumar246@gmail.com> - 1.0.0-3
|
|
rdobuilder |
f3e667 |
- Fixed test requirements and enabled subunit2sql
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Sep 15 2017 Chandan Kumar <chkumar246@gmail.com> - 1.0.0-2
|
|
rdobuilder |
f3e667 |
- Disable subunit2sql
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Fri Sep 15 2017 Chandan Kumar <chkumar246@gmail.com> - 1.0.0-1
|
|
rdobuilder |
f3e667 |
- Bumped to 1.0.0
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Thu Aug 10 2017 Chandan Kumar <chkumar246@gmail.com> - 0.5.0-4
|
|
rdobuilder |
f3e667 |
- Added -sql subpackage
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Aug 01 2017 Chandan Kumar <chkumar246@gmail.com> - 0.5.0-3
|
|
rdobuilder |
f3e667 |
- Use sed to remove pbr>=2.0.0 dependency
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Tue Aug 01 2017 Chandan Kumar <chkumar246@gmail.com> - 0.5.0-2
|
|
rdobuilder |
f3e667 |
- Fixed rpmlint errors
|
|
rdobuilder |
f3e667 |
|
|
rdobuilder |
f3e667 |
* Mon Jul 31 2017 Chandan Kumar <chkumar246@gmail.com> - 0.5.0-1
|
|
rdobuilder |
f3e667 |
- Initial package.
|