diff --git a/python-stestr.changes b/python-stestr.changes index 6af55bf..18d98f2 100644 --- a/python-stestr.changes +++ b/python-stestr.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue Aug 5 11:06:42 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 4.2.0 + * Bugfix: make repo initialization respect pyproject.toml + * Test on Python 3.12 + * Disable checks failure on coverage + * Pivot PyPI publishing to use trusted publishers + * Update package metadata for support Python versions + * Remove Python 3.7 support + * Bump codecov action version + * Remove dependency on the extras library + * Normalize paths + * Adapt to tox 4 + * Update upload-artifact action in CI + * Update black to the latest version + * Mark Python 3.13 as supported too + * Adjust rst syntax in README + * Modernize Python packaging + * Update release job to work with new packaging structure +- Add support for libalternatives +- Remove ChangeLog from %files section +- Update BuildRequires from pyproject.toml +- Use Python 3.11 on SLE-15 by default + ------------------------------------------------------------------- Thu Jan 4 23:06:52 UTC 2024 - Dirk Müller diff --git a/python-stestr.spec b/python-stestr.spec index 7488830..55e5c50 100644 --- a/python-stestr.spec +++ b/python-stestr.spec @@ -24,19 +24,35 @@ %define psuffix %{nil} %bcond_with test %endif + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?sle15_python_module_pythons} Name: python-stestr%{psuffix} -Version: 4.1.0 +Version: 4.2.0 Release: 0 Summary: A parallel Python test runner built around subunit License: Apache-2.0 URL: https://github.com/mtreinish/stestr Source: https://files.pythonhosted.org/packages/source/s/stestr/stestr-%{version}.tar.gz +BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pbr >= 2.0.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun):update-alternatives +%endif Requires: python-PyYAML >= 3.10.0 Requires: python-cliff >= 2.8.0 Requires: python-dbm @@ -46,8 +62,6 @@ Requires: python-python-subunit >= 1.4.0 Requires: python-testtools >= 2.2.0 Requires: python-tomlkit >= 0.11.6 Requires: python-voluptuous >= 0.8.9 -Requires(post): update-alternatives -Requires(postun):update-alternatives BuildArch: noarch %if %{with test} BuildRequires: %{python_module SQLAlchemy} @@ -94,6 +108,9 @@ export LC_ALL="en_US.UTF8" %python_clone -a %{buildroot}%{_bindir}/stestr %python_expand %fdupes %{buildroot}%{$python_sitelib} +%pre +%python_libalternatives_reset_alternative stestr + %post %python_install_alternative stestr @@ -102,7 +119,7 @@ export LC_ALL="en_US.UTF8" %files %{python_files} %license LICENSE -%doc ChangeLog README.rst +%doc README.rst %python_alternative %{_bindir}/stestr %{python_sitelib}/stestr %{python_sitelib}/stestr-%{version}.dist-info diff --git a/stestr-4.1.0.tar.gz b/stestr-4.1.0.tar.gz deleted file mode 100644 index 6235082..0000000 --- a/stestr-4.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f61c369eece63c292d13599e12aa158af7685990643f24dd6fa7fabfe34e98a -size 113187 diff --git a/stestr-4.2.0.tar.gz b/stestr-4.2.0.tar.gz new file mode 100644 index 0000000..58d81c9 --- /dev/null +++ b/stestr-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45ec639f2d1cc372e3630613b93f37cf29d3dfe69d49d4f3f9408d37b11bc29c +size 79824