Skip to content

Commit d3dba37

Browse files
committed
Raise pkginfo upperbound requirement
This adds preliminary support for metadata spec 2.4, i.e uploads won't break
1 parent 660ed19 commit d3dba37

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure uploading packages with metadata spec 2.4 is supported.

pulp_python/tests/functional/api/test_crud_content_unit.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,15 @@ def test_upload_requires_python(python_content_factory):
134134
content = python_content_factory(filename, url=package.url)
135135
assert content.requires_python == ">=3.8"
136136
break
137+
138+
@pytest.mark.parallel
139+
def test_upload_metadata_24_spec(python_content_factory):
140+
"""Test that packages using metadata spec 2.4 can be uploaded to pulp."""
141+
filename = "urllib3-2.3.0-py3-none-any.whl"
142+
with PyPISimple() as client:
143+
page = client.get_project_page("urllib3")
144+
for package in page.packages:
145+
if package.filename == filename:
146+
content = python_content_factory(filename, url=package.url)
147+
assert content.metadata_version == "2.4"
148+
break

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers=[
2828
requires-python = ">=3.9"
2929
dependencies = [
3030
"pulpcore>=3.49.0,<3.85",
31-
"pkginfo>=1.10.0,<1.12.0", # Twine has <1.11 in their requirements
31+
"pkginfo>=1.10.0,<1.13.0",
3232
"bandersnatch>=6.3,<7.0", # Anything >6.3 requires Python 3.10+
3333
"pypi-simple>=1.5.0,<2.0",
3434
]

0 commit comments

Comments
 (0)