Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
dralley committed Jun 28, 2024
1 parent 781b976 commit 2e3d8c6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pulp_python/app/pypi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from packaging.utils import canonicalize_name
from urllib.parse import urljoin, urlparse, urlunsplit
from pathlib import PurePath
from pypi_simple.parse_stream import parse_links_stream_response
from pypi_simple import parse_links_stream_response

from pulpcore.plugin.viewsets import OperationPostponedResponse
from pulpcore.plugin.tasking import dispatch
Expand Down
4 changes: 2 additions & 2 deletions pulp_python/app/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
PythonRemote,
)
from pulp_python.app.utils import parse_metadata, PYPI_LAST_SERIAL
from pypi_simple import parse_repo_index_page
from pypi_simple import IndexPage

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

Expand Down
6 changes: 3 additions & 3 deletions pulp_python/tests/functional/api/test_full_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PYTHON_XS_FIXTURE_CHECKSUMS,
)

from pypi_simple import parse_repo_project_response
from pypi_simple import ProjectPage
from urllib.parse import urljoin, urlsplit


Expand Down Expand Up @@ -44,7 +44,7 @@ def test_pull_through_simple(python_remote_factory, python_distribution_factory,
distro = python_distribution_factory(remote=remote.pulp_href)

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

assert len(project_page.packages) == 2
for package in project_page.packages:
Expand All @@ -65,7 +65,7 @@ def test_pull_through_with_repo(
distro = python_distribution_factory(repository=repo.pulp_href, remote=remote.pulp_href)

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

assert len(project_page.packages) == 2
for package in project_page.packages:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pulpcore>=3.49.0,<3.70.0
pkginfo>=1.10.0,<1.12.0 # Twine has <1.11 in their requirements
bandersnatch>=6.1,<6.2
pypi-simple>=0.9.0,<1.0.0
bandersnatch>=6.3,<7.0 # Anything >6.3 requires Python 3.10+
pypi-simple>=1.5.0,<2.0

0 comments on commit 2e3d8c6

Please sign in to comment.