File tree 3 files changed +16
-1
lines changed
pulp_python/tests/functional/api
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 1
1
import pytest
2
2
3
3
from urllib .parse import urljoin
4
+ from pypi_simple import PyPISimple
4
5
5
6
from pulpcore .tests .functional .utils import PulpTaskError
6
7
from pulp_python .tests .functional .constants import (
@@ -108,3 +109,16 @@ def test_content_crud(
108
109
monitor_task (response .task )
109
110
msg = "The uploaded artifact's sha256 checksum does not match the one provided"
110
111
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 1
1
pulpcore >= 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
3
3
bandersnatch >= 6.1 ,< 6.2
4
4
pypi-simple >= 0.9.0 ,< 1.0.0
You can’t perform that action at this time.
0 commit comments