Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pip for openSUSE:Factory 
checked in at 2024-02-02 15:45:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pip (Old)
 and      /work/SRC/openSUSE:Factory/.python-pip.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pip"

Fri Feb  2 15:45:01 2024 rev:64 rq:1136254 version:23.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pip/python-pip.changes    2023-12-19 
23:15:47.237434820 +0100
+++ /work/SRC/openSUSE:Factory/.python-pip.new.1815/python-pip.changes  
2024-02-02 15:45:22.956589671 +0100
@@ -1,0 +2,8 @@
+Fri Dec 22 16:06:25 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Drop deprecated setup.py installmethod, bootstrap PEP517 with
+  built-in pip instead
+- python3XX-pip-wheel can now be a regular subpackage
+- Drop obsolete python2 directives in specfile
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pip.spec ++++++
--- /var/tmp/diff_new_pack.EafT9L/_old  2024-02-02 15:45:24.584648641 +0100
+++ /var/tmp/diff_new_pack.EafT9L/_new  2024-02-02 15:45:24.600649220 +0100
@@ -20,24 +20,18 @@
 %if "%{flavor}" == "test"
 %define psuffix -test
 %bcond_without test
-%bcond_with wheel
-%else
-%if "%{flavor}" == "wheel"
-%define psuffix -wheel
-%bcond_without wheel
-%bcond_with test
 %else
 %define psuffix %{nil}
 %bcond_with test
-%bcond_with wheel
-%endif
 %endif
-%global skip_python2 1
 %if 0%{?suse_version} > 1500
 %bcond_without libalternatives
 %else
 %bcond_with libalternatives
 %endif
+
+# in order to avoid rewriting for subpackage generator
+%define mypython python
 %{?sle15_python_module_pythons}
 Name:           python-pip%{psuffix}
 Version:        23.3.2
@@ -54,12 +48,12 @@
 Patch1:         distutils-reproducible-compile.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools >= 40.8.0}
+# The rpm python-wheel build is bootstrap friendly since 0.42
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros >= 20210929
 Requires:       ca-certificates
 Requires:       coreutils
-Requires:       python-setuptools
-Requires:       python-xml
 Recommends:     ca-certificates-mozilla
 BuildArch:      noarch
 %if %{with libalternatives}
@@ -71,6 +65,7 @@
 %endif
 %if %{with test}
 # Test requirements:
+BuildRequires:  %{python_module pip = %{version}}
 BuildRequires:  %{python_module PyYAML}
 BuildRequires:  %{python_module Werkzeug}
 BuildRequires:  %{python_module cryptography}
@@ -82,15 +77,8 @@
 BuildRequires:  %{python_module scripttest}
 BuildRequires:  %{python_module setuptools-wheel}
 BuildRequires:  %{python_module virtualenv >= 1.10}
-BuildRequires:  %{python_module wheel}
 BuildRequires:  ca-certificates
 BuildRequires:  git-core
-%if 0%{?suse_version} <= 1500
-BuildRequires:  %{python_module mock}
-%endif
-%endif
-%if %{with wheel}
-BuildRequires:  %{python_module wheel}
 %endif
 %python_subpackages
 
@@ -99,6 +87,14 @@
 finding packages, so packages that were made easy_installable should be
 pip-installable as well.
 
+%package wheel
+Summary:        The pip wheel for custom tests and install requirements
+Requires:       %mypython(abi) = %python_version
+
+%description wheel
+This packages provides the pip wheel as separate file for cases where
+the wheel needs to be used directly in test or install setups
+
 %prep
 # Unbundling is not advised by upstream. See src/pip/_vendor/README.rst
 # Exception: Use our own cabundle. Adapted patch from python-certifi package
@@ -121,32 +117,31 @@
 sed -i '/\.exe/d' setup.py
 
 %build
-%if ! %{with wheel}
-%python_build
-%else
-%python_exec setup.py bdist_wheel --universal
+%if !%{with test}
+%{python_expand # bootstrap with built-in pip
+$python -m venv build/env
+build/env/bin/python -m ensurepip
+export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
+%{$python_pyproject_wheel}
+}
 %endif
 
-%if !%{with test} && !%{with wheel}
 %install
-%python_install
+%if !%{with test}
+%{python_expand # use pip bootstrapped above
+export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
+%{$python_pyproject_install}
+install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl
+%fdupes %{buildroot}%{$python_sitelib}
+}
 %python_clone -a %{buildroot}%{_bindir}/pip
 %python_clone -a %{buildroot}%{_bindir}/pip3
-# if we just cloned to pip3-2.7 delete it
-rm -f %{buildroot}%{_bindir}/pip3-2*
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%endif
-
-%if %{with wheel}
-%python_expand install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels 
dist/*.whl
+%python_expand %fdupes %{buildroot}%{_bindir}
 %endif
 
 %if %{with test}
 %check
-export PYTHONPATH=$(pwd)/build/lib
-# Looks broken with 22.3.1
-donttest="test_pip_self_version_check_calls_underlying_implementation"
-%pytest -m "not network" -k "not ($donttest)" tests/unit
+%pytest -m "not network" tests/unit
 %endif
 
 %pre
@@ -157,36 +152,27 @@
 # If libalternatives is used: Removing old update-alternatives entries.
 %python_libalternatives_reset_alternative pip
 
-%if !%{with test} && !%{with wheel}
 %post
 # keep the alternative groups separate. Users could decide to let pip and pip3 
point to
 # different flavors
 %python_install_alternative pip
-%if "%{python_flavor}" != "python2"
 %python_install_alternative pip3
-%endif
 
 %postun
 %python_uninstall_alternative pip
 %python_uninstall_alternative pip3
-%endif
 
+%if !%{with test}
 %files %{python_files}
-%if !%{with test} && !%{with wheel}
 %license LICENSE.txt
 %doc AUTHORS.txt NEWS.rst README.rst
 %python_alternative %{_bindir}/pip
-%if "%{python_flavor}" == "python2"
-%{_bindir}/pip2
-%else
 %python_alternative %{_bindir}/pip3
-%endif
 %{_bindir}/pip%{python_bin_suffix}
-%{python_sitelib}/pip-%{version}*-info
+%{python_sitelib}/pip-%{version}.dist-info
 %{python_sitelib}/pip
-%endif
 
-%if %{with wheel}
+%files %{python_files wheel}
 %dir %{python_sitelib}/../wheels
 %{python_sitelib}/../wheels/*
 %endif

++++++ _multibuild ++++++
--- /var/tmp/diff_new_pack.EafT9L/_old  2024-02-02 15:45:24.884659508 +0100
+++ /var/tmp/diff_new_pack.EafT9L/_new  2024-02-02 15:45:24.924660957 +0100
@@ -1,5 +1,4 @@
 <multibuild>
   <package>test</package>
-  <package>wheel</package>
 </multibuild>
 

Reply via email to