pulp-python 3.13.2__py3-none-any.whl → 3.13.4__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.
- pulp_python/app/__init__.py +1 -1
- pulp_python/app/tasks/sync.py +15 -2
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info}/METADATA +4 -3
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info}/RECORD +8 -8
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info}/WHEEL +1 -1
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info}/entry_points.txt +0 -0
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info/licenses}/LICENSE +0 -0
- {pulp_python-3.13.2.dist-info → pulp_python-3.13.4.dist-info}/top_level.txt +0 -0
pulp_python/app/__init__.py
CHANGED
pulp_python/app/tasks/sync.py
CHANGED
|
@@ -3,9 +3,11 @@ import logging
|
|
|
3
3
|
from aiohttp import ClientResponseError, ClientError
|
|
4
4
|
from lxml.etree import LxmlError
|
|
5
5
|
from gettext import gettext as _
|
|
6
|
+
from functools import partial
|
|
6
7
|
|
|
7
8
|
from rest_framework import serializers
|
|
8
9
|
|
|
10
|
+
from pulpcore.plugin.download import HttpDownloader
|
|
9
11
|
from pulpcore.plugin.models import Artifact, ProgressReport, Remote, Repository
|
|
10
12
|
from pulpcore.plugin.stages import (
|
|
11
13
|
DeclarativeArtifact,
|
|
@@ -112,11 +114,22 @@ class PythonBanderStage(Stage):
|
|
|
112
114
|
"""
|
|
113
115
|
# Bandersnatch includes leading slash when forming API urls
|
|
114
116
|
url = self.remote.url.rstrip("/")
|
|
117
|
+
downloader = self.remote.get_downloader(url=url)
|
|
118
|
+
if not isinstance(downloader, HttpDownloader):
|
|
119
|
+
raise ValueError("Only HTTP(S) is supported for python syncing")
|
|
120
|
+
|
|
115
121
|
async with Master(url) as master:
|
|
116
122
|
# Replace the session with the remote's downloader session
|
|
117
123
|
old_session = master.session
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
master.session = downloader.session
|
|
125
|
+
|
|
126
|
+
# Set up master.get with remote's auth & proxy settings
|
|
127
|
+
master.get = partial(
|
|
128
|
+
master.get,
|
|
129
|
+
auth=downloader.auth,
|
|
130
|
+
proxy=downloader.proxy,
|
|
131
|
+
proxy_auth=downloader.proxy_auth,
|
|
132
|
+
)
|
|
120
133
|
|
|
121
134
|
deferred_download = self.remote.policy != Remote.IMMEDIATE
|
|
122
135
|
workers = self.remote.download_concurrency or self.remote.DEFAULT_DOWNLOAD_CONCURRENCY
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp-python
|
|
3
|
-
Version: 3.13.
|
|
3
|
+
Version: 3.13.4
|
|
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
|
|
@@ -23,8 +23,9 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: pulpcore<3.85,>=3.49.0
|
|
25
25
|
Requires-Dist: pkginfo<1.13.0,>=1.10.0
|
|
26
|
-
Requires-Dist: bandersnatch<
|
|
26
|
+
Requires-Dist: bandersnatch<6.4,>=6.3.0
|
|
27
27
|
Requires-Dist: pypi-simple<2.0,>=1.5.0
|
|
28
|
+
Dynamic: license-file
|
|
28
29
|
|
|
29
30
|
# pulp_python
|
|
30
31
|
|
|
@@ -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=
|
|
3
|
+
pulp_python/app/__init__.py,sha256=2CL8Apn4v0badGu89li4xNsybiOsg1kQbBnNgKer_1c,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
|
|
@@ -32,7 +32,7 @@ pulp_python/app/pypi/serializers.py,sha256=6ivjOQx0cuokiyy4DZNPHR7YnMAZLQ-rnr_7i
|
|
|
32
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
|
-
pulp_python/app/tasks/sync.py,sha256=
|
|
35
|
+
pulp_python/app/tasks/sync.py,sha256=oRjpvXGBXkDp5HWZwBKHH8Xyx--tV3i1lYVntjuaRH8,10434
|
|
36
36
|
pulp_python/app/tasks/upload.py,sha256=5dC5LP0aH6YADZ1DypxvZDoon0hNVRHVj3eVPsFM1CQ,3537
|
|
37
37
|
pulp_python/app/webserver_snippets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
pulp_python/app/webserver_snippets/apache.conf,sha256=3frHSl2YV_8pJPscaFxMVo7HmxGJdb8XVmfdLtCxzoA,97
|
|
@@ -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.
|
|
61
|
-
pulp_python-3.13.
|
|
62
|
-
pulp_python-3.13.
|
|
63
|
-
pulp_python-3.13.
|
|
64
|
-
pulp_python-3.13.
|
|
65
|
-
pulp_python-3.13.
|
|
60
|
+
pulp_python-3.13.4.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
|
|
61
|
+
pulp_python-3.13.4.dist-info/METADATA,sha256=EtKnbjxSYKE5WBb_At0vQCJqtu54qZteTswuqsMC6N8,1582
|
|
62
|
+
pulp_python-3.13.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
63
|
+
pulp_python-3.13.4.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
|
|
64
|
+
pulp_python-3.13.4.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
|
|
65
|
+
pulp_python-3.13.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|