pulp-python 3.13.0__py3-none-any.whl → 3.13.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ class PulpPythonPluginAppConfig(PulpPluginAppConfig):
10
10
 
11
11
  name = "pulp_python.app"
12
12
  label = "python"
13
- version = "3.13.0"
13
+ version = "3.13.2"
14
14
  python_package_name = "pulp-python"
15
15
  domain_compatible = True
16
16
 
@@ -51,7 +51,8 @@ from pulp_python.app import tasks
51
51
 
52
52
  log = logging.getLogger(__name__)
53
53
 
54
- BASE_CONTENT_URL = urljoin(settings.CONTENT_ORIGIN, settings.CONTENT_PATH_PREFIX)
54
+ ORIGIN_HOST = settings.CONTENT_ORIGIN if settings.CONTENT_ORIGIN else settings.PYPI_API_HOSTNAME
55
+ BASE_CONTENT_URL = urljoin(ORIGIN_HOST, settings.CONTENT_PATH_PREFIX)
55
56
 
56
57
 
57
58
  class PyPIMixin:
pulp_python/app/utils.py CHANGED
@@ -315,7 +315,8 @@ def python_content_to_download_info(content, base_path, domain=None):
315
315
 
316
316
  content_artifact = content.contentartifact_set.first()
317
317
  artifact = find_artifact()
318
- origin = settings.CONTENT_ORIGIN.strip("/")
318
+ origin = settings.CONTENT_ORIGIN or settings.PYPI_API_HOSTNAME or ""
319
+ origin = origin.strip("/")
319
320
  prefix = settings.CONTENT_PATH_PREFIX.strip("/")
320
321
  base_path = base_path.strip("/")
321
322
  components = [origin, prefix, base_path, content.filename]
@@ -134,3 +134,16 @@ def test_upload_requires_python(python_content_factory):
134
134
  content = python_content_factory(filename, url=package.url)
135
135
  assert content.requires_python == ">=3.8"
136
136
  break
137
+
138
+
139
+ @pytest.mark.parallel
140
+ def test_upload_metadata_24_spec(python_content_factory):
141
+ """Test that packages using metadata spec 2.4 can be uploaded to pulp."""
142
+ filename = "urllib3-2.3.0-py3-none-any.whl"
143
+ with PyPISimple() as client:
144
+ page = client.get_project_page("urllib3")
145
+ for package in page.packages:
146
+ if package.filename == filename:
147
+ content = python_content_factory(filename, url=package.url)
148
+ assert content.metadata_version == "2.4"
149
+ break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pulp-python
3
- Version: 3.13.0
3
+ Version: 3.13.2
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -22,7 +22,7 @@ Requires-Python: >=3.9
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  Requires-Dist: pulpcore<3.85,>=3.49.0
25
- Requires-Dist: pkginfo<1.12.0,>=1.10.0
25
+ Requires-Dist: pkginfo<1.13.0,>=1.10.0
26
26
  Requires-Dist: bandersnatch<7.0,>=6.3
27
27
  Requires-Dist: pypi-simple<2.0,>=1.5.0
28
28
 
@@ -1,6 +1,6 @@
1
1
  pulp_python/__init__.py,sha256=BfGFMACxdZWJMiAhkn0BW-k_iKULe-nVCcQ6g0sX89k,65
2
2
  pulp_python/pytest_plugin.py,sha256=VYkopWyPqdeh7nQKh-v9fZFIRNHNBnB-p8-0FOyq_KM,7515
3
- pulp_python/app/__init__.py,sha256=wg1htcFl-dhW5SIp2l5jtFp_bJthWmaC6-FKlnriA_Y,2488
3
+ pulp_python/app/__init__.py,sha256=rv3o6PJMqpf3Kr7yKai1WsYKWAL0Kf1thQpotRlpesc,2488
4
4
  pulp_python/app/global_access_conditions.py,sha256=y8NwdgAoaB5iY7EzSBoCQOgVopSHpVMc55FKJmCGGlI,1081
5
5
  pulp_python/app/modelresource.py,sha256=dogoBWibBmQyFpcV-Hp1lu7D2WwSECa5PEShWSIg7mg,1248
6
6
  pulp_python/app/models.py,sha256=NiwmFI0cQmSn3zdiR1dCv-QCqaUB7iMTTOY42r0ugIU,10440
@@ -8,7 +8,7 @@ pulp_python/app/replica.py,sha256=DaBq5biQARMePmoHuAZbYSn3oRR-VOHztzuw8MCxQA0,18
8
8
  pulp_python/app/serializers.py,sha256=BkqQ7Pg6vMAh2McoLetY-yFB8U0VOrAPRPMIHmPlGXc,14922
9
9
  pulp_python/app/settings.py,sha256=F-TFLcol3nXK2IHpb9yIv-KIXj2OPibQ8FuyCCCFCT0,227
10
10
  pulp_python/app/urls.py,sha256=kqS_rEVxrATP9qJzxefUy6so7CqQf0074K_0x7k_bQw,1086
11
- pulp_python/app/utils.py,sha256=xYVdMmfFi_Zusl7w_XalyA_oHglSDRBVgPsojSNuffM,13722
11
+ pulp_python/app/utils.py,sha256=C5ypuchrz8_CWRkqpDiutiHh_TYzqRz2_a-Nj-Wa9ZA,13778
12
12
  pulp_python/app/viewsets.py,sha256=S_hZm5SMrEkVxw6Oiq2LmnRpcJgjr9cZG30Yp8HD8aY,23114
13
13
  pulp_python/app/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pulp_python/app/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,7 +29,7 @@ pulp_python/app/migrations/0013_add_rbac_permissions.py,sha256=ynnxHNW4SXo5YL7hR
29
29
  pulp_python/app/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  pulp_python/app/pypi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  pulp_python/app/pypi/serializers.py,sha256=6ivjOQx0cuokiyy4DZNPHR7YnMAZLQ-rnr_7i9sGtwM,3295
32
- pulp_python/app/pypi/views.py,sha256=D4RpXYbn0KgDEll4NKdl4tIbhKdJmCHv-3IWCnUUhBU,15702
32
+ pulp_python/app/pypi/views.py,sha256=IBBFYkDRYWy_kMY7B5phcSB551kKsF3m0Cy98NTpEGc,15787
33
33
  pulp_python/app/tasks/__init__.py,sha256=wAbWAJEZDXPRChUjdxDXNHP1KVnWgH5Q_P_cHeG8LH4,172
34
34
  pulp_python/app/tasks/publish.py,sha256=H-7uqzHNqfCbkh7D5DmZqy060paTLGk3XpyGVCmVeHQ,4064
35
35
  pulp_python/app/tasks/sync.py,sha256=BT8_B7rQRFEe2gRheAXWckWt8Q2pP51eSPpMB04AeZ4,9938
@@ -44,7 +44,7 @@ pulp_python/tests/functional/utils.py,sha256=JPCEAqdbLFx89OC8J0WBtot1QD4go7hgUhG
44
44
  pulp_python/tests/functional/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  pulp_python/tests/functional/api/test_auto_publish.py,sha256=uCIt4LsO61oMk3bDs3LMQDJI8zkKqvY0b1uX16bTxzM,1747
46
46
  pulp_python/tests/functional/api/test_consume_content.py,sha256=VL5egWLGUI0F3WYUh2d_vRjyKVDsl4DeCU5_PgBvwMU,968
47
- pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=2Dg5TMVOWIy83iX16D-NfSSy_mffeD_8YS5et1m0zaA,6213
47
+ pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=-rRQasHnNVhipVfzozjhXme-hDcdnBIleOeSJ1XmsNg,6742
48
48
  pulp_python/tests/functional/api/test_crud_publications.py,sha256=FyjkyM3qMzo-Um6GZP-qGssz4sZPBx34dD2Oux3qlm0,4448
49
49
  pulp_python/tests/functional/api/test_crud_remotes.py,sha256=uRo51X3MDWIls4Fdxw5unvU47_JyyLEg2w41ByvDcmY,5811
50
50
  pulp_python/tests/functional/api/test_domains.py,sha256=ypi7cv_bJdux0bW5s218xi-iFiCAcvkmmd9rRlE9qnI,10392
@@ -57,9 +57,9 @@ pulp_python/tests/functional/api/test_repair.py,sha256=_kTa4XwxUuBbRlVFofSXWnBg1
57
57
  pulp_python/tests/functional/api/test_sync.py,sha256=EYMnscBllEQxzZAKRv2QcrT2n_r5ny0NJzsH5XrjsSY,12645
58
58
  pulp_python/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  pulp_python/tests/unit/test_models.py,sha256=TBI0yKsrdbnJSPeBFfxSqhXK7zaNvR6qg5JehGH3Pds,229
60
- pulp_python-3.13.0.dist-info/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
61
- pulp_python-3.13.0.dist-info/METADATA,sha256=s10e6GWdHv8v-HWXm8F0QZar-XqqUhZGENWhakjI5rQ,1558
62
- pulp_python-3.13.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
- pulp_python-3.13.0.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
64
- pulp_python-3.13.0.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
65
- pulp_python-3.13.0.dist-info/RECORD,,
60
+ pulp_python-3.13.2.dist-info/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
61
+ pulp_python-3.13.2.dist-info/METADATA,sha256=4e88qdFvqvbwNyQuMbI-6YBsGdQinywdMRx4VM0RQVA,1558
62
+ pulp_python-3.13.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
+ pulp_python-3.13.2.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
64
+ pulp_python-3.13.2.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
65
+ pulp_python-3.13.2.dist-info/RECORD,,