Skip to content
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
1 change: 1 addition & 0 deletions CHANGES/+preliminary-md-24-support.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure uploading packages with metadata spec 2.4 is supported.
13 changes: 13 additions & 0 deletions pulp_python/tests/functional/api/test_crud_content_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,16 @@ def test_upload_requires_python(python_content_factory):
content = python_content_factory(filename, url=package.url)
assert content.requires_python == ">=3.8"
break


@pytest.mark.parallel
def test_upload_metadata_24_spec(python_content_factory):
"""Test that packages using metadata spec 2.4 can be uploaded to pulp."""
filename = "urllib3-2.3.0-py3-none-any.whl"
with PyPISimple() as client:
page = client.get_project_page("urllib3")
for package in page.packages:
if package.filename == filename:
content = python_content_factory(filename, url=package.url)
assert content.metadata_version == "2.4"
break
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers=[
requires-python = ">=3.9"
dependencies = [
"pulpcore>=3.49.0,<3.85",
"pkginfo>=1.10.0,<1.12.0", # Twine has <1.11 in their requirements
"pkginfo>=1.10.0,<1.13.0",
"bandersnatch>=6.3,<7.0", # Anything >6.3 requires Python 3.10+
"pypi-simple>=1.5.0,<2.0",
]
Expand Down