Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pip-api for openSUSE:Factory checked in at 2023-02-07 18:49:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pip-api (Old) and /work/SRC/openSUSE:Factory/.python-pip-api.new.4462 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pip-api" Tue Feb 7 18:49:30 2023 rev:7 rq:1063545 version:0.0.30 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pip-api/python-pip-api.changes 2020-03-27 00:25:01.048248296 +0100 +++ /work/SRC/openSUSE:Factory/.python-pip-api.new.4462/python-pip-api.changes 2023-02-07 18:49:39.539316745 +0100 @@ -1,0 +2,30 @@ +Tue Feb 7 05:18:53 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 0.0.30: + * Support editable project location (#148) + * Do not treat `--trusted-host` as a requirement (#136) + * Expose whether a requirement is editable (#131) + * Use correct long flag for requirements (#118) + * Support for hashed requirements (#126) + * Drop support for Python 3.6, test against pip==22.0.x (#127) + * Pass PIP_DISABLE_PIP_VERSION_CHECK to all invocations (#114) + * Support the --path parameter when calling pip list (#112) + * Add support for parsing URL requirements (#109) + * Allow installed_distributions to be filtered for global distributions (#103) + * Support Python 3.10 + * Allow requirement markers to be parsed (#99) + * Use pip list's JSON output for installed_distributions (#93) + * Drop support for Python 3.5 (#94) + * Add type hints (#97) + * Ensure environment vars are passed to subprocess call (#68) + * Drop support for Python 2.7 + * Add experimental PEP 650 support + * Fix issue with handling LegacyVersions (#66) + * Support Python 3.9 +- Add patch support-packaging-changes.patch: + * Drop a test parameter that doesn't work with our version of packaging. +- Include non-shipped test data as test-data.tar.gz. +- Switch to GitHub tarball for tests. +- Refresh unvendor.patch + +------------------------------------------------------------------- Old: ---- pip-api-0.0.14.tar.gz New: ---- pip-api-0.0.30.tar.gz support-packaging-changes.patch test-data.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pip-api.spec ++++++ --- /var/tmp/diff_new_pack.JLRjZs/_old 2023-02-07 18:49:40.087319691 +0100 +++ /var/tmp/diff_new_pack.JLRjZs/_new 2023-02-07 18:49:40.095319733 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pip-api # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pip-api -Version: 0.0.14 +Version: 0.0.30 Release: 0 Summary: The official unofficial pip API License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/di/pip-api -Source: https://files.pythonhosted.org/packages/source/p/pip-api/pip-api-%{version}.tar.gz +Source0: https://github.com/di/pip-api/releases/download/%{version}/pip-api-%{version}.tar.gz +Source1: test-data.tar.gz +# PATCH-FIX-OPENSUSE We do not want a vendored packaging. Patch0: unvendor.patch +# PATCH-FIX-OPENSUSE Remove a test parameter that is broken with our shipped +# packaging. +Patch1: support-packaging-changes.patch BuildRequires: %{python_module packaging >= 20.3} BuildRequires: %{python_module pip} BuildRequires: %{python_module pretend} @@ -34,7 +37,6 @@ BuildRequires: %{python_module virtualenv} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-packaging >= 20.3 Requires: python-pip BuildArch: noarch %python_subpackages @@ -43,8 +45,7 @@ The official unofficial pip API. %prep -%setup -q -n pip-api-%{version} -%patch0 -p1 +%autosetup -p1 -a 1 -n pip-api-%{version} rm -Rf ./pip_api/_vendor %build @@ -55,15 +56,13 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# All the following download stuff using pip thus skip them: -# test_installed_distributions -# test_all_the_right_pips -# test_isolation -%pytest -v -k 'not (test_installed_distributions or test_all_the_right_pips or test_isolation)' +# Broken with current packaging +%pytest -k 'not test_installed_distributions_legacy_version' %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pip_api +%{python_sitelib}/pip_api*info %changelog ++++++ pip-api-0.0.14.tar.gz -> pip-api-0.0.30.tar.gz ++++++ ++++ 6265 lines of diff (skipped) ++++++ support-packaging-changes.patch ++++++ Index: pip-api-0.0.30/tests/test_parse_requirements.py =================================================================== --- pip-api-0.0.30.orig/tests/test_parse_requirements.py +++ pip-api-0.0.30/tests/test_parse_requirements.py @@ -75,14 +75,6 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// "", ), ( - # Version and URL can't be combined so this all gets parsed as a legacy version - "pip==1.3.1@{url}\n".format(url=PEP508_PIP_EXAMPLE_URL), - {"pip"}, - None, - "pip==1.3.1@" + PEP508_PIP_EXAMPLE_URL, # Note no extra space after @ - "==1.3.1@" + PEP508_PIP_EXAMPLE_URL, - ), - ( # VCS markers at the beginning of a URL get stripped away "git+" + PEP508_PIP_EXAMPLE_EGG, {"pip"}, ++++++ unvendor.patch ++++++ --- /var/tmp/diff_new_pack.JLRjZs/_old 2023-02-07 18:49:40.323320959 +0100 +++ /var/tmp/diff_new_pack.JLRjZs/_new 2023-02-07 18:49:40.327320980 +0100 @@ -1,55 +1,59 @@ -Index: pip-api-0.0.10/pip_api/__init__.py +Index: pip-api-0.0.30/pip_api/__init__.py =================================================================== ---- pip-api-0.0.10.orig/pip_api/__init__.py -+++ pip-api-0.0.10/pip_api/__init__.py -@@ -1,6 +1,6 @@ +--- pip-api-0.0.30.orig/pip_api/__init__.py ++++ pip-api-0.0.30/pip_api/__init__.py +@@ -1,7 +1,7 @@ import sys -from pip_api._vendor.packaging import version as packaging_version +-from pip_api._vendor.packaging.version import Version +from packaging import version as packaging_version ++from packaging.version import Version # Import this now because we need it below from pip_api._version import version -Index: pip-api-0.0.10/pip_api/_hash.py +Index: pip-api-0.0.30/pip_api/_hash.py =================================================================== ---- pip-api-0.0.10.orig/pip_api/_hash.py -+++ pip-api-0.0.10/pip_api/_hash.py -@@ -1,4 +1,4 @@ --from pip_api._vendor.packaging.version import Version -+from packaging.version import Version +--- pip-api-0.0.30.orig/pip_api/_hash.py ++++ pip-api-0.0.30/pip_api/_hash.py +@@ -1,6 +1,6 @@ + import os + +-from pip_api._vendor.packaging.version import Version # type: ignore ++from packaging.version import Version # type: ignore import pip_api from pip_api._call import call -Index: pip-api-0.0.10/pip_api/_installed_distributions.py +Index: pip-api-0.0.30/pip_api/_installed_distributions.py =================================================================== ---- pip-api-0.0.10.orig/pip_api/_installed_distributions.py -+++ pip-api-0.0.10/pip_api/_installed_distributions.py -@@ -3,7 +3,7 @@ import re - import pip_api +--- pip-api-0.0.30.orig/pip_api/_installed_distributions.py ++++ pip-api-0.0.30/pip_api/_installed_distributions.py +@@ -7,7 +7,7 @@ import pip_api from pip_api._call import call + from pip_api.exceptions import PipError --from pip_api._vendor.packaging.version import Version -+from packaging.version import Version +-from pip_api._vendor.packaging.version import parse # type: ignore ++from packaging.version import parse # type: ignore class Distribution: -Index: pip-api-0.0.10/pip_api/_parse_requirements.py +Index: pip-api-0.0.30/pip_api/_parse_requirements.py =================================================================== ---- pip-api-0.0.10.orig/pip_api/_parse_requirements.py -+++ pip-api-0.0.10/pip_api/_parse_requirements.py -@@ -13,7 +13,7 @@ try: # py27 - except ImportError: - from urllib import pathname2url +--- pip-api-0.0.30.orig/pip_api/_parse_requirements.py ++++ pip-api-0.0.30/pip_api/_parse_requirements.py +@@ -14,7 +14,7 @@ from typing import Any, Dict, Optional, + from urllib.parse import urljoin, unquote, urlsplit + from urllib.request import pathname2url, url2pathname --from pip_api._vendor.packaging import requirements, specifiers -+from packaging import requirements, specifiers +-from pip_api._vendor.packaging import requirements, specifiers # type: ignore ++from packaging import requirements, specifiers # type: ignore from pip_api.exceptions import PipError -Index: pip-api-0.0.10/tests/conftest.py +Index: pip-api-0.0.30/tests/conftest.py =================================================================== ---- pip-api-0.0.10.orig/tests/conftest.py -+++ pip-api-0.0.10/tests/conftest.py +--- pip-api-0.0.30.orig/tests/conftest.py ++++ pip-api-0.0.30/tests/conftest.py @@ -6,7 +6,7 @@ import pytest import pretend import virtualenv @@ -59,4 +63,17 @@ import pip_api +Index: pip-api-0.0.30/tests/test_installed_distributions.py +=================================================================== +--- pip-api-0.0.30.orig/tests/test_installed_distributions.py ++++ pip-api-0.0.30/tests/test_installed_distributions.py +@@ -2,7 +2,7 @@ import os + import pytest + + import pip_api +-from pip_api._vendor.packaging.version import parse ++from packaging.version import parse + from pip_api.exceptions import PipError + +