Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies #696

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
9 changes: 4 additions & 5 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,15 +44,14 @@ 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(requests.get(url), "shelf-reader")

assert len(project_page.packages) == 2
for package in project_page.packages:
assert package.filename in PYTHON_XS_FIXTURE_CHECKSUMS
relative_path = f"{distro.base_path}/{package.filename}?redirect="
assert urljoin(pulp_content_url, relative_path) in package.url
digests = package.get_digests()
assert PYTHON_XS_FIXTURE_CHECKSUMS[package.filename] == digests["sha256"]
assert PYTHON_XS_FIXTURE_CHECKSUMS[package.filename] == package.digests["sha256"]


@pytest.mark.parallel
Expand All @@ -65,7 +64,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(requests.get(url), "shelf-reader")

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
Loading