From 7fcbbed2cb27f6a5f40ae8b55d323ecd1494e21d Mon Sep 17 00:00:00 2001 From: Gerrod Date: Tue, 2 Aug 2022 16:04:03 -0400 Subject: [PATCH] Merge pull request #555 from gerrod3/bander-5.3 Fix sync failure with bandersnatch==5.3.0 (cherry picked from commit dd3cc1d2f593391a1803ff32293f7264b99bf913) --- CHANGES/554.bugfix | 1 + pulp_python/app/tasks/sync.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 CHANGES/554.bugfix diff --git a/CHANGES/554.bugfix b/CHANGES/554.bugfix new file mode 100644 index 000000000..d0cf5201a --- /dev/null +++ b/CHANGES/554.bugfix @@ -0,0 +1 @@ +Fixed syncing failing when using bandersnatch 5.3.0 diff --git a/pulp_python/app/tasks/sync.py b/pulp_python/app/tasks/sync.py index 8e19b6e2f..064f2e388 100644 --- a/pulp_python/app/tasks/sync.py +++ b/pulp_python/app/tasks/sync.py @@ -240,7 +240,7 @@ async def create_content(self, pkg): await self.python_stage.put(dc) - def finalize_sync(self): + def finalize_sync(self, *args, **kwargs): """No work to be done currently""" pass diff --git a/requirements.txt b/requirements.txt index e6c644912..8e3b588bc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pulpcore>=3.17.0,<3.25 pkginfo~=1.8.2 packaging~=21.3 -bandersnatch~=5.0 +bandersnatch>=5.0.0,<5.4 pypi-simple~=0.9.0