Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pip-tools for 
openSUSE:Factory checked in at 2022-04-08 00:28:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pip-tools (Old)
 and      /work/SRC/openSUSE:Factory/.python-pip-tools.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pip-tools"

Fri Apr  8 00:28:25 2022 rev:3 rq:967526 version:6.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pip-tools/python-pip-tools.changes        
2022-03-22 20:21:01.596922689 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pip-tools.new.1900/python-pip-tools.changes  
    2022-04-08 00:29:03.149422360 +0200
@@ -1,0 +2,15 @@
+Thu Apr  7 11:42:20 UTC 2022 - [email protected]
+
+- version update to 6.6.0
+  Features:
+  - Add support for pip>=22.1 
([#1607](https://github.com/jazzband/pip-tools/pull/1607)).
+    Thanks @atugushev
+  Bug Fixes:
+  - Ensure `pip-compile --dry-run --quiet` still shows what would be done, 
while omitting
+    the dry run message 
([#1592](https://github.com/jazzband/pip-tools/pull/1592)). Thanks
+    @AndydeCleyre
+  - Fix `--generate-hashes` when hashes are computed from files
+    ([#1540](https://github.com/jazzband/pip-tools/pull/1540)). Thanks @RazerM
+- python-mock is not required for build
+
+-------------------------------------------------------------------

Old:
----
  pip-tools-6.5.1.tar.gz

New:
----
  pip-tools-6.6.0.tar.gz

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

Other differences:
------------------
++++++ python-pip-tools.spec ++++++
--- /var/tmp/diff_new_pack.l7Gfov/_old  2022-04-08 00:29:03.625416994 +0200
+++ /var/tmp/diff_new_pack.l7Gfov/_new  2022-04-08 00:29:03.633416904 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pip-tools
-Version:        6.5.1
+Version:        6.6.0
 Release:        0
 Summary:        Tool to keep pinned dependencies up to date
 License:        BSD-3-Clause
@@ -40,7 +40,6 @@
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module click >= 7}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pep517}
 BuildRequires:  %{python_module pip >= 21.2}
 BuildRequires:  %{python_module pytest-xdist}

++++++ pip-tools-6.5.1.tar.gz -> pip-tools-6.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/.github/workflows/ci.yml 
new/pip-tools-6.6.0/.github/workflows/ci.yml
--- old/pip-tools-6.5.1/.github/workflows/ci.yml        2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/.github/workflows/ci.yml        2022-04-06 
09:33:46.000000000 +0200
@@ -33,7 +33,9 @@
           - os: Ubuntu
             python-version: 3.11-dev
             pip-version: latest
-
+          - os: Ubuntu
+            python-version: 3.7
+            pip-version: main
     env:
       PY_COLORS: 1
       TOXENV: pip${{ matrix.pip-version }}-coverage
@@ -42,7 +44,7 @@
       - uses: actions/checkout@master
       - name: Set up Python ${{ matrix.python-version }} from GitHub
         if: "!endsWith(matrix.python-version, '-dev')"
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
       - name: Set up Python ${{ matrix.python-version }} from deadsnakes
@@ -52,23 +54,14 @@
           python-version: ${{ matrix.python-version }}
       - name: Log python version info (${{ matrix.python-version }})
         run: python --version --version
+      - name: Get pip cache dir
+        id: pip-cache
+        run: |
+          echo "::set-output name=dir::$(pip cache dir)"
       - name: Pip cache
         uses: actions/cache@v2
         with:
-          path: >-
-            ${{
-              runner.os == 'Linux' &&
-              '~/.cache/pip'
-              || ''
-            }}${{
-              runner.os == 'macOS' &&
-              '~/Library/Caches/pip'
-              || ''
-            }}${{
-              runner.os == 'Windows' &&
-              '~\AppData\Local\pip\Cache'
-              || ''
-            }}
+          path: ${{ steps.pip-cache.outputs.dir }}
           key: >-
             ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}-${{
             hashFiles('setup.py') }}-${{ hashFiles('tox.ini') }}-${{
@@ -109,7 +102,7 @@
     steps:
       - uses: actions/checkout@master
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/.github/workflows/cron.yml 
new/pip-tools-6.6.0/.github/workflows/cron.yml
--- old/pip-tools-6.5.1/.github/workflows/cron.yml      2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/.github/workflows/cron.yml      2022-04-06 
09:33:46.000000000 +0200
@@ -30,26 +30,17 @@
     steps:
       - uses: actions/checkout@master
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
+      - name: Get pip cache dir
+        id: pip-cache
+        run: |
+          echo "::set-output name=dir::$(pip cache dir)"
       - name: Pip cache
         uses: actions/cache@v2
         with:
-          path: >-
-            ${{
-              runner.os == 'Linux' &&
-              '~/.cache/pip'
-              || ''
-            }}${{
-              runner.os == 'macOS' &&
-              '~/Library/Caches/pip'
-              || ''
-            }}${{
-              runner.os == 'Windows' &&
-              '~\AppData\Local\pip\Cache'
-              || ''
-            }}
+          path: ${{ steps.pip-cache.outputs.dir }}
           key: >-
             ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}-${{
             hashFiles('setup.py') }}-${{ hashFiles('tox.ini') }}-${{
@@ -85,26 +76,17 @@
     steps:
       - uses: actions/checkout@master
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
+      - name: Get pip cache dir
+        id: pip-cache
+        run: |
+          echo "::set-output name=dir::$(pip cache dir)"
       - name: Pip cache
         uses: actions/cache@v2
         with:
-          path: >-
-            ${{
-              runner.os == 'Linux' &&
-              '~/.cache/pip'
-              || ''
-            }}${{
-              runner.os == 'macOS' &&
-              '~/Library/Caches/pip'
-              || ''
-            }}${{
-              runner.os == 'Windows' &&
-              '~\AppData\Local\pip\Cache'
-              || ''
-            }}
+          path: ${{ steps.pip-cache.outputs.dir }}
           key: >-
             ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}-${{
             hashFiles('setup.py') }}-${{ hashFiles('tox.ini') }}-${{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/.github/workflows/qa.yml 
new/pip-tools-6.6.0/.github/workflows/qa.yml
--- old/pip-tools-6.5.1/.github/workflows/qa.yml        2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/.github/workflows/qa.yml        2022-04-06 
09:33:46.000000000 +0200
@@ -27,26 +27,17 @@
     steps:
       - uses: actions/checkout@master
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
+      - name: Get pip cache dir
+        id: pip-cache
+        run: |
+          echo "::set-output name=dir::$(pip cache dir)"
       - name: Pip cache
         uses: actions/cache@v2
         with:
-          path: >-
-            ${{
-              runner.os == 'Linux' &&
-              '~/.cache/pip'
-              || ''
-            }}${{
-              runner.os == 'macOS' &&
-              '~/Library/Caches/pip'
-              || ''
-            }}${{
-              runner.os == 'Windows' &&
-              '~\AppData\Local\pip\Cache'
-              || ''
-            }}
+          path: ${{ steps.pip-cache.outputs.dir }}
           key: >-
             ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}-${{
             hashFiles('setup.py') }}-${{ hashFiles('tox.ini') }}-${{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/.github/workflows/release.yml 
new/pip-tools-6.6.0/.github/workflows/release.yml
--- old/pip-tools-6.5.1/.github/workflows/release.yml   2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/.github/workflows/release.yml   2022-04-06 
09:33:46.000000000 +0200
@@ -14,12 +14,12 @@
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           fetch-depth: 0
 
       - name: Set up Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: 3.9
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/.pre-commit-config.yaml 
new/pip-tools-6.6.0/.pre-commit-config.yaml
--- old/pip-tools-6.5.1/.pre-commit-config.yaml 2022-02-08 11:12:15.000000000 
+0100
+++ new/pip-tools-6.6.0/.pre-commit-config.yaml 2022-04-06 09:33:46.000000000 
+0200
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/psf/black
-    rev: 22.1.0
+    rev: 22.3.0
     hooks:
       - id: black
         args: [--target-version=py36]
@@ -9,7 +9,7 @@
     hooks:
       - id: isort
   - repo: https://github.com/asottile/pyupgrade
-    rev: v2.31.0
+    rev: v2.31.1
     hooks:
       - id: pyupgrade
         args: [--py37-plus]
@@ -20,7 +20,7 @@
         additional_dependencies:
           - flake8-pytest-style
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v0.931
+    rev: v0.942
     hooks:
       - id: mypy
         # Avoid error: Duplicate module named 'setup'
@@ -33,12 +33,12 @@
           - toml==0.10.2
           - pip==20.3.4
   - repo: https://github.com/PyCQA/bandit
-    rev: 1.7.2
+    rev: 1.7.4
     hooks:
       - id: bandit
         args: [--ini, .bandit]
         exclude: ^tests/
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v2.5.1
+    rev: v2.6.2
     hooks:
       - id: prettier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/CHANGELOG.md 
new/pip-tools-6.6.0/CHANGELOG.md
--- old/pip-tools-6.5.1/CHANGELOG.md    2022-02-08 11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/CHANGELOG.md    2022-04-06 09:33:46.000000000 +0200
@@ -1,3 +1,18 @@
+## 6.6.0 (2022-04-06)
+
+Features:
+
+- Add support for pip>=22.1 
([#1607](https://github.com/jazzband/pip-tools/pull/1607)).
+  Thanks @atugushev
+
+Bug Fixes:
+
+- Ensure `pip-compile --dry-run --quiet` still shows what would be done, while 
omitting
+  the dry run message 
([#1592](https://github.com/jazzband/pip-tools/pull/1592)). Thanks
+  @AndydeCleyre
+- Fix `--generate-hashes` when hashes are computed from files
+  ([#1540](https://github.com/jazzband/pip-tools/pull/1540)). Thanks @RazerM
+
 ## 6.5.1 (2022-02-08)
 
 Bug Fixes:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/PKG-INFO new/pip-tools-6.6.0/PKG-INFO
--- old/pip-tools-6.5.1/PKG-INFO        2022-02-08 11:12:35.601934700 +0100
+++ new/pip-tools-6.6.0/PKG-INFO        2022-04-06 09:34:00.712910700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pip-tools
-Version: 6.5.1
+Version: 6.6.0
 Summary: pip-tools keeps your pinned dependencies fresh.
 Home-page: https://github.com/jazzband/pip-tools/
 Author: Vincent Driessen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/pip_tools.egg-info/PKG-INFO 
new/pip-tools-6.6.0/pip_tools.egg-info/PKG-INFO
--- old/pip-tools-6.5.1/pip_tools.egg-info/PKG-INFO     2022-02-08 
11:12:35.000000000 +0100
+++ new/pip-tools-6.6.0/pip_tools.egg-info/PKG-INFO     2022-04-06 
09:33:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pip-tools
-Version: 6.5.1
+Version: 6.6.0
 Summary: pip-tools keeps your pinned dependencies fresh.
 Home-page: https://github.com/jazzband/pip-tools/
 Author: Vincent Driessen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/pip_tools.egg-info/SOURCES.txt 
new/pip-tools-6.6.0/pip_tools.egg-info/SOURCES.txt
--- old/pip-tools-6.5.1/pip_tools.egg-info/SOURCES.txt  2022-02-08 
11:12:35.000000000 +0100
+++ new/pip-tools-6.6.0/pip_tools.egg-info/SOURCES.txt  2022-04-06 
09:34:00.000000000 +0200
@@ -83,6 +83,7 @@
 tests/utils.py
 tests/test_data/fake-editables.json
 tests/test_data/fake-index.json
+tests/test_data/minimal_wheels/small-fake-multi-arch-0.1.tar.gz
 tests/test_data/minimal_wheels/small_fake_a-0.1-py2.py3-none-any.whl
 tests/test_data/minimal_wheels/small_fake_a-0.2-py2.py3-none-any.whl
 tests/test_data/minimal_wheels/small_fake_a-0.3b1-py2.py3-none-any.whl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/pip_tools.egg-info/entry_points.txt 
new/pip-tools-6.6.0/pip_tools.egg-info/entry_points.txt
--- old/pip-tools-6.5.1/pip_tools.egg-info/entry_points.txt     2022-02-08 
11:12:35.000000000 +0100
+++ new/pip-tools-6.6.0/pip_tools.egg-info/entry_points.txt     2022-04-06 
09:34:00.000000000 +0200
@@ -1,4 +1,3 @@
 [console_scripts]
 pip-compile = piptools.scripts.compile:cli
 pip-sync = piptools.scripts.sync:cli
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/piptools/_compat/pip_compat.py 
new/pip-tools-6.6.0/piptools/_compat/pip_compat.py
--- old/pip-tools-6.5.1/piptools/_compat/pip_compat.py  2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/piptools/_compat/pip_compat.py  2022-04-06 
09:33:46.000000000 +0200
@@ -12,6 +12,12 @@
 PIP_VERSION = tuple(map(int, 
parse_version(pip.__version__).base_version.split(".")))
 
 
+__all__ = [
+    "get_build_tracker",
+    "update_env_context_manager",
+]
+
+
 def parse_requirements(
     filename: str,
     session: PipSession,
@@ -24,3 +30,15 @@
         filename, session, finder=finder, options=options, 
constraint=constraint
     ):
         yield install_req_from_parsed_requirement(parsed_req, 
isolated=isolated)
+
+
+if PIP_VERSION[:2] <= (22, 0):
+    from pip._internal.req.req_tracker import (
+        get_requirement_tracker as get_build_tracker,
+    )
+    from pip._internal.req.req_tracker import update_env_context_manager
+else:
+    from pip._internal.operations.build.build_tracker import (
+        get_build_tracker,
+        update_env_context_manager,
+    )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/piptools/repositories/pypi.py 
new/pip-tools-6.6.0/piptools/repositories/pypi.py
--- old/pip-tools-6.5.1/piptools/repositories/pypi.py   2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/piptools/repositories/pypi.py   2022-04-06 
09:33:46.000000000 +0200
@@ -30,7 +30,6 @@
 from pip._internal.models.wheel import Wheel
 from pip._internal.network.session import PipSession
 from pip._internal.req import InstallRequirement, RequirementSet
-from pip._internal.req.req_tracker import get_requirement_tracker
 from pip._internal.utils.hashes import FAVORITE_HASH
 from pip._internal.utils.logging import indent_log, setup_logging
 from pip._internal.utils.misc import normalize_path
@@ -41,6 +40,7 @@
 from pip._vendor.requests import RequestException, Session
 
 from .._compat import PIP_VERSION
+from .._compat.pip_compat import get_build_tracker
 from ..exceptions import NoCandidateFound
 from ..logging import log
 from ..utils import (
@@ -169,18 +169,23 @@
         ireq: InstallRequirement,
         wheel_cache: WheelCache,
     ) -> Set[InstallationCandidate]:
-        with get_requirement_tracker() as req_tracker, TempDirectory(
+        with get_build_tracker() as build_tracker, TempDirectory(
             kind="resolver"
         ) as temp_dir, indent_log():
             preparer_kwargs = {
                 "temp_build_dir": temp_dir,
                 "options": self.options,
-                "req_tracker": req_tracker,
                 "session": self.session,
                 "finder": self.finder,
                 "use_user_site": False,
                 "download_dir": download_dir,
             }
+
+            if PIP_VERSION[:2] <= (22, 0):
+                preparer_kwargs["req_tracker"] = build_tracker
+            else:
+                preparer_kwargs["build_tracker"] = build_tracker
+
             preparer = 
self.command.make_requirement_preparer(**preparer_kwargs)
 
             reqset = RequirementSet()
@@ -431,6 +436,10 @@
         Wheel.support_index_min = _wheel_support_index_min
         self._available_candidates_cache = {}
 
+        # If we don't clear this cache then it can contain results from an
+        # earlier call when allow_all_wheels wasn't active. See GH-1532
+        self.finder.find_all_candidates.cache_clear()
+
         try:
             yield
         finally:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/piptools/resolver.py 
new/pip-tools-6.6.0/piptools/resolver.py
--- old/pip-tools-6.5.1/piptools/resolver.py    2022-02-08 11:12:15.000000000 
+0100
+++ new/pip-tools-6.6.0/piptools/resolver.py    2022-04-06 09:33:46.000000000 
+0200
@@ -6,11 +6,11 @@
 import click
 from pip._internal.req import InstallRequirement
 from pip._internal.req.constructors import install_req_from_line
-from pip._internal.req.req_tracker import update_env_context_manager
 
 from piptools.cache import DependencyCache
 from piptools.repositories.base import BaseRepository
 
+from ._compat.pip_compat import update_env_context_manager
 from .logging import log
 from .utils import (
     UNSAFE_PACKAGES,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/piptools/writer.py 
new/pip-tools-6.6.0/piptools/writer.py
--- old/pip-tools-6.5.1/piptools/writer.py      2022-02-08 11:12:15.000000000 
+0100
+++ new/pip-tools-6.6.0/piptools/writer.py      2022-04-06 09:33:46.000000000 
+0200
@@ -245,8 +245,11 @@
     ) -> None:
 
         for line in self._iter_lines(results, unsafe_requirements, markers, 
hashes):
-            log.info(line)
-            if not self.dry_run:
+            if self.dry_run:
+                # Bypass the log level to always print this during a dry run
+                log.log(line)
+            else:
+                log.info(line)
                 self.dst_file.write(unstyle(line).encode())
                 self.dst_file.write(os.linesep.encode())
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/tests/test_cli_compile.py 
new/pip-tools-6.6.0/tests/test_cli_compile.py
--- old/pip-tools-6.5.1/tests/test_cli_compile.py       2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/tests/test_cli_compile.py       2022-04-06 
09:33:46.000000000 +0200
@@ -801,8 +801,9 @@
 def test_quiet_option(runner):
     with open("requirements", "w"):
         pass
-    out = runner.invoke(cli, ["--quiet", "-n", "requirements"])
-    # Pinned requirements result has not been written to output.
+    out = runner.invoke(cli, ["--quiet", "requirements"])
+    # Pinned requirements result has not been written to stdout or stderr:
+    assert not out.stdout_bytes
     assert not out.stderr_bytes
 
 
@@ -818,8 +819,12 @@
     with open("requirements", "w"):
         pass
     out = runner.invoke(cli, ["--dry-run", "--quiet", "requirements"])
-    # Dry-run message has not been written to output.
-    assert not out.stderr_bytes
+    # Neither dry-run message nor pinned requirements written to output:
+    assert not out.stdout_bytes
+    # Dry-run message has not been written to stderr:
+    assert "dry-run" not in out.stderr.lower()
+    # Pinned requirements (just the header in this case) *are* written to 
stderr:
+    assert "# " in out.stderr
 
 
 def test_generate_hashes_with_editable(pip_conf, runner):
@@ -1858,12 +1863,13 @@
     pytest.param(
         "setup.py",
         """
-            from setuptools import setup
+            from setuptools import setup, find_packages
 
             setup(
                 name="sample_lib",
                 version=0.1,
                 install_requires=["small-fake-a==0.1", "small-fake-b==0.2"],
+                packages=find_packages(),
                 extras_require={
                     "dev": ["small-fake-c==0.3", "small-fake-d==0.4"],
                     "test": ["small-fake-e==0.5", "small-fake-f==0.6"],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pip-tools-6.5.1/tests/test_repository_pypi.py 
new/pip-tools-6.6.0/tests/test_repository_pypi.py
--- old/pip-tools-6.5.1/tests/test_repository_pypi.py   2022-02-08 
11:12:15.000000000 +0100
+++ new/pip-tools-6.6.0/tests/test_repository_pypi.py   2022-04-06 
09:33:46.000000000 +0200
@@ -15,9 +15,16 @@
         
"sha256:8d4d131cd05338e09f461ad784297efea3652e542c5fabe04a62358429a6175e",
         
"sha256:ad05e1371eb99f257ca00f791b755deb22e752393eb8e75bc01d651715b02ea9",
         
"sha256:24afa5b317b302f356fd3fc3b1cfb0aad114d509cf635ea9566052424191b944",
+        
"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
     }
 
     ireq = from_line("small-fake-multi-arch==0.1")
+
+    # pip caches the candidates for the current system, which means
+    # allow_all_wheels won't have the desired effect unless the cache is
+    # cleared. See GH-1532
+    assert pypi_repository.get_hashes(ireq) < expected
+
     with pypi_repository.allow_all_wheels():
         assert pypi_repository.get_hashes(ireq) == expected
     captured = capsys.readouterr()

Reply via email to