Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-console-scripts for openSUSE:Factory checked in at 2024-03-13 22:17:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-console-scripts (Old) and /work/SRC/openSUSE:Factory/.python-pytest-console-scripts.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-console-scripts" Wed Mar 13 22:17:56 2024 rev:13 rq:1157044 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-console-scripts/python-pytest-console-scripts.changes 2023-07-24 18:24:49.557748167 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-console-scripts.new.1770/python-pytest-console-scripts.changes 2024-03-13 22:18:49.532817467 +0100 @@ -1,0 +2,7 @@ +Fri Mar 8 20:17:05 UTC 2024 - Ben Greiner <c...@bnavigator.de> + +- Fix requirements for python39 (yes really) +- Make brittle test "fix" depending on the undocumented value of + unexpanded %python_bin_suffix more robust + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-console-scripts.spec ++++++ --- /var/tmp/diff_new_pack.O9qc1u/_old 2024-03-13 22:18:51.028872617 +0100 +++ /var/tmp/diff_new_pack.O9qc1u/_new 2024-03-13 22:18:51.040873060 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-console-scripts # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,14 +24,17 @@ License: MIT URL: https://github.com/kvas-it/pytest-console-scripts Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz +BuildRequires: %{python_module importlib-metadata >= 3.6 if %python-base < 3.10} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 4.0.0} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 4.0.0 +Requires: (python-importlib-metadata >= 3.6 if python-base < 3.10) BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pytest >= 4.0.0} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module virtualenv >= 20} # /SECTION @@ -57,16 +60,17 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%if 0%{?suse_version} > 1500 -sed -i 's:env python:env python3:' tests/test_run_scripts.py -%else -sed -i 's:env python:env python%{python_bin_suffix}:' tests/test_run_scripts.py -%endif -%pytest +cp tests/test_run_scripts.py template_run_scripts.py +export PYTHONDONTWRITEBYTECODE=1 +%{python_expand # +export PYTHONPATH=%{buildroot}%{$python_sitelib} +sed 's|env python|$python|' template_run_scripts.py > tests/test_run_scripts.py +$python -m pytest -v +} %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/pytest_console_scripts -%{python_sitelib}/pytest_console_scripts-%{version}*-info +%{python_sitelib}/pytest_console_scripts-%{version}.dist-info