diff --git a/4.2.0.tar.gz b/4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..96b26f84932a3a79009bcdcecc827d91f770df6a Binary files /dev/null and b/4.2.0.tar.gz differ diff --git a/python-stestr.spec b/python-stestr.spec index f58cd350da34f5e5e82a77365a7699f00913f162..9d8362e1e696a49c95f51bd6dd6072931ab6f7c5 100644 --- a/python-stestr.spec +++ b/python-stestr.spec @@ -1,12 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-stestr -Version: 4.1.0 -Release: 1 +Version: 4.2.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/fe/83/8c1929b09370801b398595a43216f15acfcafbb6195301b5ea62aa8b98d6/stestr-4.1.0.tar.gz +Source0: https://github.com/mtreinish/stestr/archive/refs/tags/%{version}.tar.gz BuildArch: noarch +Patch0: stestr-fix-license.patch %description A parallel Python test runner built around subunit @@ -27,6 +28,7 @@ BuildRequires: python3-fixtures BuildRequires: python3-testtools BuildRequires: python3-pyyaml BuildRequires: python3-voluptuous +BuildRequires: python3-flit-core # BuildRequires: python3-subunit2sql # General requires Requires: python3-future @@ -49,49 +51,30 @@ Provides: python3-stestr-doc A parallel Python test runner built around subunit %prep -%autosetup -n stestr-%{version} +%autosetup -n stestr-%{version} -p1 %build -%py3_build +%pyproject_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 -# %{__python3} setup.py test - -%files -n python3-stestr -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%pyproject_install + +%files -n python3-stestr +%{_bindir}/stestr +%{python3_sitelib}/stestr/* +%{python3_sitelib}/stestr-*.dist-info/ %changelog +* Mon Oct 13 2025 dongqi - 4.2.0-2 +- Add BuildRequires python3-flit-core + +* Mon Oct 13 2025 dongqi - 4.2.0-1 +- Update package to version 4.2.0 +- make repo initialization respect pyproject.tom +- Disable checks failure on coverage +- Remove Python 3.7 support +- Modify python build macro + * Tue Mar 26 2024 GuoCe - 4.1.0-1 - Update package to version 4.1.0 diff --git a/stestr-4.1.0.tar.gz b/stestr-4.1.0.tar.gz deleted file mode 100644 index cda54c24a216a1243671233cbfa0f589ab1e6c18..0000000000000000000000000000000000000000 Binary files a/stestr-4.1.0.tar.gz and /dev/null differ diff --git a/stestr-fix-license.patch b/stestr-fix-license.patch new file mode 100644 index 0000000000000000000000000000000000000000..228408a95a5d6cf9bd91bc5fb4dc7cc86c91b881 --- /dev/null +++ b/stestr-fix-license.patch @@ -0,0 +1,12 @@ +diff -Nur stestr-4.2.0.old/pyproject.toml stestr-4.2.0.new/pyproject.toml +--- stestr-4.2.0.old/pyproject.toml 2025-10-13 10:56:55.495219209 +0800 ++++ stestr-4.2.0.new/pyproject.toml 2025-10-13 10:58:04.673988302 +0800 +@@ -6,7 +6,7 @@ + name = "stestr" + authors = [{name = "Matthew Treinish", email = "mtreinish@kortar.org"}] + readme = "README.rst" +-license = "Apache-2.0" ++license = {text = "Apache-2.0"} + dynamic = ["version"] + description = "A parallel Python test runner built around subunit" + classifiers = [