pulp-python 3.11.0__tar.gz → 3.11.1__tar.gz
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-3.11.0 → pulp-python-3.11.1}/CHANGES.rst +13 -1
- {pulp-python-3.11.0 → pulp-python-3.11.1}/PKG-INFO +11 -11
- {pulp-python-3.11.0 → pulp-python-3.11.1}/functest_requirements.txt +1 -1
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/__init__.py +1 -1
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/sync.py +28 -5
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/PKG-INFO +11 -11
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/entry_points.txt +0 -1
- {pulp-python-3.11.0 → pulp-python-3.11.1}/setup.py +1 -1
- pulp-python-3.11.1/unittest_requirements.txt +2 -0
- pulp-python-3.11.0/unittest_requirements.txt +0 -2
- {pulp-python-3.11.0 → pulp-python-3.11.1}/COMMITMENT +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/COPYRIGHT +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/LICENSE +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/MANIFEST.in +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/README.md +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0001_initial.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0003_new_sync_filters.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0004_DATA_swap_distribution_model.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0005_pythonpackagecontent_sha256.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0006_pythonrepository_autopublish.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0007_pythonpackagecontent_mv-2-1.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0008_pythonpackagecontent_unique_sha256.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0009_pythondistribution_allow_uploads.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0010_update_json_field.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0011_alter_pythondistribution_distribution_ptr_and_more.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/modelresource.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/models.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/serializers.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/pypi/views.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/serializers.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/settings.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/publish.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/tasks/upload.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/urls.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/utils.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/viewsets.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/apache.conf +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/webserver_snippets/nginx.conf +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_auto_publish.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_consume_content.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_content_unit.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_publications.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_remotes.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_download_content.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_export_import.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_full_mirror.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_pypi_apis.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_sync.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/conftest.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/constants.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/utils.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/unit/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/unit/test_models.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/post/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/post/test_publish.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/pre/__init__.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/upgrade/pre/test_publish.py +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/SOURCES.txt +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/dependency_links.txt +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/requires.txt +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python.egg-info/top_level.txt +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/pyproject.toml +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/requirements.txt +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/setup.cfg +0 -0
- {pulp-python-3.11.0 → pulp-python-3.11.1}/test_requirements.txt +0 -0
|
@@ -13,6 +13,19 @@ Changelog
|
|
|
13
13
|
|
|
14
14
|
.. towncrier release notes start
|
|
15
15
|
|
|
16
|
+
3.11.1 (2024-04-11)
|
|
17
|
+
===================
|
|
18
|
+
|
|
19
|
+
Bugfixes
|
|
20
|
+
--------
|
|
21
|
+
|
|
22
|
+
- Fixed tls_validation not being disabled when set to false on the remote.
|
|
23
|
+
`#653 <https://github.com/pulp/pulp_python/issues/653>`__
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
----
|
|
27
|
+
|
|
28
|
+
|
|
16
29
|
3.11.0 (2023-11-08)
|
|
17
30
|
===================
|
|
18
31
|
|
|
@@ -21,7 +34,6 @@ Features
|
|
|
21
34
|
--------
|
|
22
35
|
|
|
23
36
|
- Added pulpcore 3.40 compatibility.
|
|
24
|
-
`#40 <https://github.com/pulp/pulp_python/issues/40>`__
|
|
25
37
|
- Added import export support of python content.
|
|
26
38
|
`#579 <https://github.com/pulp/pulp_python/issues/579>`__
|
|
27
39
|
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-python
|
|
3
|
-
Version: 3.11.
|
|
3
|
+
Version: 3.11.1
|
|
4
4
|
Summary: pulp-python plugin for the Pulp Project
|
|
5
5
|
Home-page: https://www.pulpproject.org
|
|
6
6
|
Author: Pulp Project Developers
|
|
7
7
|
Author-email: pulp-list@redhat.com
|
|
8
8
|
License: GPLv2+
|
|
9
|
-
Description: # pulp_python
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
A Pulp plugin to support hosting your own pip compatible Python packages.
|
|
14
|
-
|
|
15
|
-
For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
|
|
16
|
-
[Pulp project page](https://pulpproject.org).
|
|
17
|
-
|
|
18
|
-
Platform: UNKNOWN
|
|
19
9
|
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
|
|
20
10
|
Classifier: Operating System :: POSIX :: Linux
|
|
21
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -26,3 +16,13 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
26
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
17
|
Requires-Python: >=3.8
|
|
28
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
|
|
21
|
+
# pulp_python
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
A Pulp plugin to support hosting your own pip compatible Python packages.
|
|
26
|
+
|
|
27
|
+
For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
|
|
28
|
+
[Pulp project page](https://pulpproject.org).
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import logging
|
|
2
|
+
import tempfile
|
|
3
|
+
from typing import Optional, Any, AsyncGenerator
|
|
2
4
|
|
|
5
|
+
import aiohttp
|
|
3
6
|
from aiohttp import ClientResponseError, ClientError
|
|
4
7
|
from lxml.etree import LxmlError
|
|
5
8
|
from gettext import gettext as _
|
|
6
|
-
from os import environ
|
|
9
|
+
from os import environ
|
|
7
10
|
|
|
8
11
|
from rest_framework import serializers
|
|
9
12
|
|
|
@@ -111,9 +114,10 @@ class PythonBanderStage(Stage):
|
|
|
111
114
|
"""
|
|
112
115
|
If includes is specified, then only sync those,else try to sync all other packages
|
|
113
116
|
"""
|
|
114
|
-
# Prevent bandersnatch from reading actual .netrc file, set to
|
|
117
|
+
# Prevent bandersnatch from reading actual .netrc file, set to empty file
|
|
115
118
|
# See discussion on https://github.com/pulp/pulp_python/issues/581
|
|
116
|
-
|
|
119
|
+
fake_netrc = tempfile.NamedTemporaryFile(dir=".", delete=False)
|
|
120
|
+
environ["NETRC"] = fake_netrc.name
|
|
117
121
|
# TODO Change Bandersnatch internal API to take proxy settings in from config parameters
|
|
118
122
|
if proxy_url := self.remote.proxy_url:
|
|
119
123
|
if self.remote.proxy_username or self.remote.proxy_password:
|
|
@@ -126,7 +130,7 @@ class PythonBanderStage(Stage):
|
|
|
126
130
|
# Bandersnatch includes leading slash when forming API urls
|
|
127
131
|
url = self.remote.url.rstrip("/")
|
|
128
132
|
# local & global timeouts defaults to 10secs and 5 hours
|
|
129
|
-
async with
|
|
133
|
+
async with PulpMaster(url, tls=self.remote.tls_validation) as master:
|
|
130
134
|
deferred_download = self.remote.policy != Remote.IMMEDIATE
|
|
131
135
|
workers = self.remote.download_concurrency or self.remote.DEFAULT_DOWNLOAD_CONCURRENCY
|
|
132
136
|
async with ProgressReport(
|
|
@@ -148,6 +152,25 @@ class PythonBanderStage(Stage):
|
|
|
148
152
|
await pmirror.synchronize(packages_to_sync)
|
|
149
153
|
|
|
150
154
|
|
|
155
|
+
class PulpMaster(Master):
|
|
156
|
+
"""
|
|
157
|
+
Pulp Master Class for Pulp specific overrides
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
def __init__(self, *args, tls=True, **kwargs):
|
|
161
|
+
self.tls = tls
|
|
162
|
+
super().__init__(*args, **kwargs)
|
|
163
|
+
|
|
164
|
+
async def get(
|
|
165
|
+
self, path: str, required_serial: Optional[int], **kw: Any
|
|
166
|
+
) -> AsyncGenerator[aiohttp.ClientResponse, None]:
|
|
167
|
+
"""Support tls=false"""
|
|
168
|
+
if not self.tls:
|
|
169
|
+
kw["ssl"] = False
|
|
170
|
+
async for r in super().get(path, required_serial, **kw):
|
|
171
|
+
yield r
|
|
172
|
+
|
|
173
|
+
|
|
151
174
|
class PulpMirror(Mirror):
|
|
152
175
|
"""
|
|
153
176
|
Pulp Mirror Class to perform syncing using Bandersnatch
|
|
@@ -257,4 +280,4 @@ class PulpMirror(Mirror):
|
|
|
257
280
|
TODO
|
|
258
281
|
This should have some error checking
|
|
259
282
|
"""
|
|
260
|
-
|
|
283
|
+
logger.error("Sync encountered an error: ", exc_info=exception)
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-python
|
|
3
|
-
Version: 3.11.
|
|
3
|
+
Version: 3.11.1
|
|
4
4
|
Summary: pulp-python plugin for the Pulp Project
|
|
5
5
|
Home-page: https://www.pulpproject.org
|
|
6
6
|
Author: Pulp Project Developers
|
|
7
7
|
Author-email: pulp-list@redhat.com
|
|
8
8
|
License: GPLv2+
|
|
9
|
-
Description: # pulp_python
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
A Pulp plugin to support hosting your own pip compatible Python packages.
|
|
14
|
-
|
|
15
|
-
For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
|
|
16
|
-
[Pulp project page](https://pulpproject.org).
|
|
17
|
-
|
|
18
|
-
Platform: UNKNOWN
|
|
19
9
|
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
|
|
20
10
|
Classifier: Operating System :: POSIX :: Linux
|
|
21
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -26,3 +16,13 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
26
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
17
|
Requires-Python: >=3.8
|
|
28
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
|
|
21
|
+
# pulp_python
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
A Pulp plugin to support hosting your own pip compatible Python packages.
|
|
26
|
+
|
|
27
|
+
For more information, please see the [documentation](https://docs.pulpproject.org/pulp_python/) or the
|
|
28
|
+
[Pulp project page](https://pulpproject.org).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0003_new_sync_filters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/app/migrations/0010_update_json_field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_auto_publish.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_consume_content.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_content_unit.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_publications.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_crud_remotes.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_download_content.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_export_import.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_full_mirror.py
RENAMED
|
File without changes
|
{pulp-python-3.11.0 → pulp-python-3.11.1}/pulp_python/tests/functional/api/test_pypi_apis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|