Skip to content

Commit e4390cb

Browse files
committed
Bump dependencies
[noissue]
1 parent 0546d65 commit e4390cb

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

pulp_python/app/pypi/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from packaging.utils import canonicalize_name
2424
from urllib.parse import urljoin, urlparse, urlunsplit
2525
from pathlib import PurePath
26-
from pypi_simple.parse_stream import parse_links_stream_response
26+
from pypi_simple import parse_links_stream_response
2727

2828
from pulpcore.plugin.viewsets import OperationPostponedResponse
2929
from pulpcore.plugin.tasking import dispatch

pulp_python/app/tasks/sync.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
PythonRemote,
2424
)
2525
from pulp_python.app.utils import parse_metadata, PYPI_LAST_SERIAL
26-
from pypi_simple import parse_repo_index_page
26+
from pypi_simple import IndexPage
2727

2828
from bandersnatch.mirror import Mirror
2929
from bandersnatch.master import Master
@@ -226,7 +226,7 @@ async def determine_packages_to_sync(self):
226226
downloader = self.python_stage.remote.get_downloader(url=url)
227227
result = await downloader.run()
228228
with open(result.path) as f:
229-
index = parse_repo_index_page(f.read())
229+
index = IndexPage.from_html(f.read())
230230
self.packages_to_sync.update({p: 0 for p in index.projects})
231231
self.target_serial = result.headers.get(PYPI_LAST_SERIAL, 0)
232232

pulp_python/tests/functional/api/test_full_mirror.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
PYTHON_XS_FIXTURE_CHECKSUMS,
88
)
99

10-
from pypi_simple import parse_repo_project_response
10+
from pypi_simple import ProjectPage
1111
from urllib.parse import urljoin, urlsplit
1212

1313

@@ -44,15 +44,14 @@ def test_pull_through_simple(python_remote_factory, python_distribution_factory,
4444
distro = python_distribution_factory(remote=remote.pulp_href)
4545

4646
url = f"{distro.base_url}simple/shelf-reader/"
47-
project_page = parse_repo_project_response("shelf-reader", requests.get(url))
47+
project_page = ProjectPage.from_response(requests.get(url), "shelf-reader")
4848

4949
assert len(project_page.packages) == 2
5050
for package in project_page.packages:
5151
assert package.filename in PYTHON_XS_FIXTURE_CHECKSUMS
5252
relative_path = f"{distro.base_path}/{package.filename}?redirect="
5353
assert urljoin(pulp_content_url, relative_path) in package.url
54-
digests = package.get_digests()
55-
assert PYTHON_XS_FIXTURE_CHECKSUMS[package.filename] == digests["sha256"]
54+
assert PYTHON_XS_FIXTURE_CHECKSUMS[package.filename] == package.digests["sha256"]
5655

5756

5857
@pytest.mark.parallel
@@ -65,7 +64,7 @@ def test_pull_through_with_repo(
6564
distro = python_distribution_factory(repository=repo.pulp_href, remote=remote.pulp_href)
6665

6766
url = urljoin(distro.base_url, "simple/shelf-reader/")
68-
project_page = parse_repo_project_response("shelf-reader", requests.get(url))
67+
project_page = ProjectPage.from_response(requests.get(url), "shelf-reader")
6968

7069
assert len(project_page.packages) == 2
7170
for package in project_page.packages:

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pulpcore>=3.49.0,<3.70.0
22
pkginfo>=1.10.0,<1.12.0 # Twine has <1.11 in their requirements
3-
bandersnatch>=6.1,<6.2
4-
pypi-simple>=0.9.0,<1.0.0
3+
bandersnatch>=6.3,<7.0 # Anything >6.3 requires Python 3.10+
4+
pypi-simple>=1.5.0,<2.0

0 commit comments

Comments
 (0)