File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
pulp_python/tests/functional/api Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ Fixed uploads not supporting packages using metadata spec 2.3
Original file line number Diff line number Diff line change 11import pytest
22
33from urllib .parse import urljoin
4+ from pypi_simple import PyPISimple
45
56from pulpcore .tests .functional .utils import PulpTaskError
67from pulp_python .tests .functional .constants import (
@@ -108,3 +109,16 @@ def test_content_crud(
108109 monitor_task (response .task )
109110 msg = "The uploaded artifact's sha256 checksum does not match the one provided"
110111 assert msg in e .value .task .error ["description" ]
112+
113+
114+ @pytest .mark .parallel
115+ def test_upload_metadata_23_spec (python_content_factory ):
116+ """Test that packages using metadata spec 2.3 can be uploaded to pulp."""
117+ filename = "urllib3-2.2.2-py3-none-any.whl"
118+ with PyPISimple () as client :
119+ page = client .get_project_page ("urllib3" )
120+ for package in page .packages :
121+ if package .filename == filename :
122+ content = python_content_factory (filename , url = package .url )
123+ assert content .metadata_version == "2.3"
124+ break
Original file line number Diff line number Diff line change 11pulpcore >= 3.49.0 ,< 3.70.0
2- pkginfo >= 1.8.2 ,< 1.9.7
2+ pkginfo >= 1.10.0 ,< 1.12.0 # Twine has <1.11 in their requirements
33bandersnatch >= 6.1 ,< 6.2
44pypi-simple >= 0.9.0 ,< 1.0.0
You can’t perform that action at this time.
0 commit comments