Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-backports.entry_points_selectable for openSUSE:Factory checked in at 2021-10-04 18:38:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-backports.entry_points_selectable (Old) and /work/SRC/openSUSE:Factory/.python-backports.entry_points_selectable.new.2443 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.entry_points_selectable" Mon Oct 4 18:38:59 2021 rev:2 rq:922239 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-backports.entry_points_selectable/python-backports.entry_points_selectable.changes 2021-09-10 23:42:05.174608859 +0200 +++ /work/SRC/openSUSE:Factory/.python-backports.entry_points_selectable.new.2443/python-backports.entry_points_selectable.changes 2021-10-04 18:39:07.365975438 +0200 @@ -1,0 +2,8 @@ +Wed Sep 29 15:44:11 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Clean requirements +- Reactivate python2 for Leap targets + * keep backports/__init__.py for python2 + gh#jaraco/backports.entry_points_selectable#5 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-backports.entry_points_selectable.spec ++++++ --- /var/tmp/diff_new_pack.7vvlX2/_old 2021-10-04 18:39:07.969976419 +0200 +++ /var/tmp/diff_new_pack.7vvlX2/_new 2021-10-04 18:39:07.969976419 +0200 @@ -17,8 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# See pep#0420 ... implicit namespace packages are available only in Python 3.3 -%define skip_python2 1 +%bcond_without python2 Name: python-backports.entry_points_selectable Version: 1.1.0 Release: 0 @@ -26,21 +25,19 @@ License: MIT URL: https://github.com/jaraco/backports.entry_points_selectable Source: https://files.pythonhosted.org/packages/source/b/backports.entry_points_selectable/backports.entry_points_selectable-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{python_module importlib-metadata if %python-base < 3.7} +BuildRequires: %{python_module pytest >= 4.6} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module toml} +%if %{with python2} +BuildRequires: python-backports +%endif BuildRequires: fdupes -BuildRequires: %{python_module importlib_metadata} -BuildRequires: %{python_module pytest >= 4.6} -BuildRequires: %{python_module pytest-flake8} -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-black >= 0.3.7} -BuildRequires: %{python_module pytest-mypy} -# BuildRequires: %%{python_module pytest-checkdocs >= 2.4} -# BuildRequires: %%{python_module pytest-enabler >= 1.0.1} -# # For docs -# BuildRequires: %%{python_module Sphinx} -# BuildRequires: %%{python_module jaraco.packaging >= 8.2} -# BuildRequires: %%{python_module rst.linker >= 1.9} +BuildRequires: python-rpm-macros +%ifpython2 +Requires: python-backports +%endif BuildArch: noarch %python_subpackages @@ -56,23 +53,30 @@ %install %python_install -# PEP-420 allows implicit packages without an additional __init__.py -%{python_expand # remove explicit __init__.py files -rm -v %{buildroot}%{$python_sitelib}/backports/__init__.py \ +# PEP-420 allows implicit packages without an additional __init__.py for python >= 3.3, +# gh#jaraco/backports.entry_points_selectable#5 +%{python_expand # remove explicit __init__.py files (unless we need it for the python2 tests) +if [ "${python_flavor}" != "python2" ]; then + rm -v %{buildroot}%{$python_sitelib}/backports/__init__.py* \ %{buildroot}%{$python_sitelib}/backports/__pycache__/__init__.* -%fdupes %{buildroot}%{$python_sitelib} + %fdupes %{buildroot}%{$python_sitelib} +fi } %check -%pytest +%pytest --pyargs backports %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE %dir %{python_sitelib}/backports -%{python_sitelib}/backports.entry_points_selectable* -%{python_sitelib}/backports/entry_points_selectable.py -%dir %{python_sitelib}/backports/__pycache__ +%ifpython2 +# provided by python2-backports +%exclude %{python_sitelib}/backports/__init__.py* +%endif +%{python_sitelib}/backports/entry_points_selectable.py* +%pycache_only %dir %{python_sitelib}/backports/__pycache__ %pycache_only %{python_sitelib}/backports/__pycache__/* +%{python_sitelib}/backports.entry_points_selectable-%{version}*-info %changelog