pulp-python 3.26.1__py3-none-any.whl → 3.27.1__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/global_access_conditions.py +0 -1
- pulp_python/app/replica.py +3 -3
- pulp_python/app/serializers.py +13 -3
- pulp_python/app/tasks/publish.py +0 -1
- pulp_python/app/utils.py +0 -1
- pulp_python/app/viewsets.py +22 -4
- pulp_python/pytest_plugin.py +0 -1
- pulp_python/tests/functional/api/test_domains.py +0 -5
- pulp_python/tests/functional/api/test_export_import.py +0 -1
- pulp_python/tests/functional/api/test_pypi_apis.py +0 -1
- pulp_python/tests/functional/constants.py +0 -1
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/METADATA +1 -1
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/RECORD +18 -18
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/WHEEL +0 -0
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/entry_points.txt +0 -0
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/licenses/LICENSE +0 -0
- {pulp_python-3.26.1.dist-info → pulp_python-3.27.1.dist-info}/top_level.txt +0 -0
pulp_python/app/__init__.py
CHANGED
pulp_python/app/replica.py
CHANGED
|
@@ -31,14 +31,14 @@ class PythonReplicator(Replicator):
|
|
|
31
31
|
def url(self, upstream_distribution):
|
|
32
32
|
# Ignore distributions that are only pull-through
|
|
33
33
|
repo, pub = upstream_distribution["repository"], upstream_distribution["publication"]
|
|
34
|
-
|
|
34
|
+
repo_ver = upstream_distribution.get("repository_version")
|
|
35
|
+
if repo or pub or repo_ver:
|
|
35
36
|
return super().url(upstream_distribution)
|
|
36
37
|
|
|
37
38
|
return None
|
|
38
39
|
|
|
39
40
|
def repository_extra_fields(self, remote):
|
|
40
|
-
|
|
41
|
-
return {"autopublish": True}
|
|
41
|
+
return {"autopublish": False}
|
|
42
42
|
|
|
43
43
|
def sync_params(self, repository, remote):
|
|
44
44
|
return {"remote_pk": str(remote.pk), "repository_pk": str(repository.pk), "mirror": True}
|
pulp_python/app/serializers.py
CHANGED
|
@@ -4,6 +4,7 @@ import tempfile
|
|
|
4
4
|
from gettext import gettext as _
|
|
5
5
|
from django.conf import settings
|
|
6
6
|
from django.db.utils import IntegrityError
|
|
7
|
+
from drf_spectacular.utils import extend_schema_serializer
|
|
7
8
|
from packaging.requirements import Requirement
|
|
8
9
|
from rest_framework import serializers
|
|
9
10
|
from pypi_attestations import AttestationError
|
|
@@ -29,10 +30,14 @@ from pulp_python.app.utils import (
|
|
|
29
30
|
parse_project_metadata,
|
|
30
31
|
)
|
|
31
32
|
|
|
32
|
-
|
|
33
33
|
log = logging.getLogger(__name__)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
@extend_schema_serializer(
|
|
37
|
+
deprecate_fields=[
|
|
38
|
+
"autopublish",
|
|
39
|
+
]
|
|
40
|
+
)
|
|
36
41
|
class PythonRepositorySerializer(core_serializers.RepositorySerializer):
|
|
37
42
|
"""
|
|
38
43
|
Serializer for Python Repositories.
|
|
@@ -41,7 +46,7 @@ class PythonRepositorySerializer(core_serializers.RepositorySerializer):
|
|
|
41
46
|
autopublish = serializers.BooleanField(
|
|
42
47
|
help_text=_(
|
|
43
48
|
"Whether to automatically create publications for new repository versions, "
|
|
44
|
-
"and update any distributions pointing to this repository."
|
|
49
|
+
"and update any distributions pointing to this repository. [Deprecated]"
|
|
45
50
|
),
|
|
46
51
|
default=False,
|
|
47
52
|
required=False,
|
|
@@ -52,6 +57,11 @@ class PythonRepositorySerializer(core_serializers.RepositorySerializer):
|
|
|
52
57
|
model = python_models.PythonRepository
|
|
53
58
|
|
|
54
59
|
|
|
60
|
+
@extend_schema_serializer(
|
|
61
|
+
deprecate_fields=[
|
|
62
|
+
"publication",
|
|
63
|
+
]
|
|
64
|
+
)
|
|
55
65
|
class PythonDistributionSerializer(core_serializers.DistributionSerializer):
|
|
56
66
|
"""
|
|
57
67
|
Serializer for Pulp distributions for the Python type.
|
|
@@ -59,7 +69,7 @@ class PythonDistributionSerializer(core_serializers.DistributionSerializer):
|
|
|
59
69
|
|
|
60
70
|
publication = core_serializers.DetailRelatedField(
|
|
61
71
|
required=False,
|
|
62
|
-
help_text=_("Publication to be served"),
|
|
72
|
+
help_text=_("Publication to be served. [Deprecated]"),
|
|
63
73
|
view_name_pattern=r"publications(-.*/.*)?-detail",
|
|
64
74
|
queryset=core_models.Publication.objects.exclude(complete=False),
|
|
65
75
|
allow_null=True,
|
pulp_python/app/tasks/publish.py
CHANGED
pulp_python/app/utils.py
CHANGED
pulp_python/app/viewsets.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from bandersnatch.configuration import BandersnatchConfig
|
|
2
2
|
from django.db import transaction
|
|
3
|
-
from drf_spectacular.utils import extend_schema
|
|
3
|
+
from drf_spectacular.utils import extend_schema, extend_schema_view
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from rest_framework import status
|
|
6
6
|
from rest_framework.decorators import action
|
|
@@ -605,11 +605,21 @@ class PythonRemoteViewSet(core_viewsets.RemoteViewSet, core_viewsets.RolesMixin)
|
|
|
605
605
|
return Response(remote.data, status=status.HTTP_201_CREATED, headers=headers)
|
|
606
606
|
|
|
607
607
|
|
|
608
|
+
@extend_schema_view(
|
|
609
|
+
list=extend_schema(deprecated=True),
|
|
610
|
+
add_role=extend_schema(deprecated=True),
|
|
611
|
+
remove_role=extend_schema(deprecated=True),
|
|
612
|
+
list_roles=extend_schema(deprecated=True),
|
|
613
|
+
my_permissions=extend_schema(deprecated=True),
|
|
614
|
+
)
|
|
608
615
|
class PythonPublicationViewSet(core_viewsets.PublicationViewSet, core_viewsets.RolesMixin):
|
|
609
616
|
"""
|
|
610
|
-
<!-- User-facing documentation, rendered as html-->
|
|
611
617
|
Python Publications refer to the Python Package content in a repository version, and include
|
|
612
|
-
metadata about that content.
|
|
618
|
+
metadata about that content. [Deprecated] See
|
|
619
|
+
https://pulpproject.org/pulp_python/docs/user/guides/host/#migrating-off-publications for more
|
|
620
|
+
information.
|
|
621
|
+
|
|
622
|
+
Use a repository or repository-version to serve content instead.
|
|
613
623
|
|
|
614
624
|
"""
|
|
615
625
|
|
|
@@ -677,7 +687,7 @@ class PythonPublicationViewSet(core_viewsets.PublicationViewSet, core_viewsets.R
|
|
|
677
687
|
"python.pythonpublication_viewer": ["python.view_pythonpublication"],
|
|
678
688
|
}
|
|
679
689
|
|
|
680
|
-
@extend_schema(responses={202: AsyncOperationResponseSerializer})
|
|
690
|
+
@extend_schema(responses={202: AsyncOperationResponseSerializer}, deprecated=True)
|
|
681
691
|
def create(self, request):
|
|
682
692
|
"""
|
|
683
693
|
<!-- User-facing documentation, rendered as html-->
|
|
@@ -698,3 +708,11 @@ class PythonPublicationViewSet(core_viewsets.PublicationViewSet, core_viewsets.R
|
|
|
698
708
|
kwargs={"repository_version_pk": str(repository_version.pk)},
|
|
699
709
|
)
|
|
700
710
|
return core_viewsets.OperationPostponedResponse(result, request)
|
|
711
|
+
|
|
712
|
+
@extend_schema(deprecated=True)
|
|
713
|
+
def retrieve(self, request, *args, **kwargs):
|
|
714
|
+
return super().retrieve(request, *args, **kwargs)
|
|
715
|
+
|
|
716
|
+
@extend_schema(deprecated=True)
|
|
717
|
+
def destroy(self, request, *args, **kwargs):
|
|
718
|
+
return super().destroy(request, *args, **kwargs)
|
pulp_python/pytest_plugin.py
CHANGED
|
@@ -12,7 +12,6 @@ from pulp_python.tests.functional.constants import (
|
|
|
12
12
|
)
|
|
13
13
|
from urllib.parse import urlsplit
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
pytestmark = pytest.mark.skipif(not settings.DOMAIN_ENABLED, reason="Domain not enabled")
|
|
17
16
|
|
|
18
17
|
|
|
@@ -182,7 +181,6 @@ def test_domain_content_replication(
|
|
|
182
181
|
python_bindings.ContentPackagesApi,
|
|
183
182
|
python_bindings.RepositoriesPythonApi,
|
|
184
183
|
python_bindings.RemotesPythonApi,
|
|
185
|
-
python_bindings.PublicationsPypiApi,
|
|
186
184
|
python_bindings.DistributionsPypiApi,
|
|
187
185
|
):
|
|
188
186
|
result = api_client.list(pulp_domain=replica_domain.name)
|
|
@@ -204,9 +202,6 @@ def test_domain_content_replication(
|
|
|
204
202
|
|
|
205
203
|
response = python_bindings.ContentPackagesApi.list(pulp_domain=replica_domain.name)
|
|
206
204
|
assert PYTHON_SM_PACKAGE_COUNT + 1 == response.count
|
|
207
|
-
response = python_bindings.PublicationsPypiApi.list(pulp_domain=replica_domain.name)
|
|
208
|
-
assert 2 == response.count
|
|
209
|
-
add_to_cleanup(python_bindings.PublicationsPypiApi, response.results[0])
|
|
210
205
|
assert 1 == python_bindings.RepositoriesPythonApi.list(pulp_domain=replica_domain.name).count
|
|
211
206
|
assert 1 == python_bindings.DistributionsPypiApi.list(pulp_domain=replica_domain.name).count
|
|
212
207
|
assert 1 == python_bindings.RemotesPythonApi.list(pulp_domain=replica_domain.name).count
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
pulp_python/__init__.py,sha256=GIuTLoBTc-07dSLJUh8xrZPRz8x-jJ61pfR0J1IjnzI,65
|
|
2
|
-
pulp_python/pytest_plugin.py,sha256=
|
|
3
|
-
pulp_python/app/__init__.py,sha256=
|
|
4
|
-
pulp_python/app/global_access_conditions.py,sha256=
|
|
2
|
+
pulp_python/pytest_plugin.py,sha256=EBivPJa39ZE1QaDWea9candeeJL_W_cBk6Q7Onhw4bE,8604
|
|
3
|
+
pulp_python/app/__init__.py,sha256=lH8ZYUCxMSzjk36Z-Sb0GpGzI9iCE0DBR4YtWkxyR_I,2488
|
|
4
|
+
pulp_python/app/global_access_conditions.py,sha256=MZJtyoVsr-4hRaty6mKDqh3caOHd5UKJjEWLV2crOLs,1080
|
|
5
5
|
pulp_python/app/modelresource.py,sha256=dogoBWibBmQyFpcV-Hp1lu7D2WwSECa5PEShWSIg7mg,1248
|
|
6
6
|
pulp_python/app/models.py,sha256=j2U__78AMhyYIiRKyA_o5_55EvqkZSJVh4QWmpGtX-A,14055
|
|
7
7
|
pulp_python/app/provenance.py,sha256=iyhkuNahHiTDK0Djrd4-PlgErA5SJVI0uQOIPj46tEI,2352
|
|
8
|
-
pulp_python/app/replica.py,sha256=
|
|
9
|
-
pulp_python/app/serializers.py,sha256=
|
|
8
|
+
pulp_python/app/replica.py,sha256=W60Kt9CwZSfztRi3-f82Rfp0F_zhzpOTiz35bvRFBBE,1881
|
|
9
|
+
pulp_python/app/serializers.py,sha256=ItjeHJ1qRN7dYvpxSJAdRUMJ6JsjvHoI_so4zhkTvkI,28674
|
|
10
10
|
pulp_python/app/settings.py,sha256=HXJK3rr0LVTOv1xBS5cZvVtz6j4SvFZl0PH3sLTcu2w,227
|
|
11
11
|
pulp_python/app/urls.py,sha256=dw6SQ7N6SIxHALAjTdGg3dPL3-54MVoDzUKfqXA2epI,1328
|
|
12
|
-
pulp_python/app/utils.py,sha256=
|
|
13
|
-
pulp_python/app/viewsets.py,sha256
|
|
12
|
+
pulp_python/app/utils.py,sha256=RrKEqVnsorf2UICSjR3WnH8X1m-XjoVIiZs8u0JrhfM,25776
|
|
13
|
+
pulp_python/app/viewsets.py,sha256=-UgY6uySh5TVLMv_p0dAeJQIRs9SIOrfFORFMGj9N8o,28439
|
|
14
14
|
pulp_python/app/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
pulp_python/app/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
pulp_python/app/management/commands/repair-python-metadata.py,sha256=i-mC3UYxIiHJoknRV4xZZ7cQ44lyqWshpbaeYi7as8E,4457
|
|
@@ -39,7 +39,7 @@ pulp_python/app/pypi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
39
39
|
pulp_python/app/pypi/serializers.py,sha256=w6_doLpaO8Dnzur57MYrTIqEP4I3LI8biu9ipLC66fk,5028
|
|
40
40
|
pulp_python/app/pypi/views.py,sha256=ksQflLQSwcsmoJtQG6B440rQ8CPF_bSTdWXpYJFEAg4,21006
|
|
41
41
|
pulp_python/app/tasks/__init__.py,sha256=lTFpVvpDKbqv9RC0b2RYU8Bo6svDjrA-djt16pADFr8,284
|
|
42
|
-
pulp_python/app/tasks/publish.py,sha256=
|
|
42
|
+
pulp_python/app/tasks/publish.py,sha256=Z3kWz22bKNXk2j-k1OgwOTEYcgzDzckYQjRo2hItnTA,4334
|
|
43
43
|
pulp_python/app/tasks/repair.py,sha256=_SACezEsnal8VnSGR91yTI-kJ6axZaEIBrhS1hkO8JA,11723
|
|
44
44
|
pulp_python/app/tasks/sync.py,sha256=hBA4iyY9HFbLZMFWqVJ4W3Q3NAN122QVaOSEGSSnMtc,12868
|
|
45
45
|
pulp_python/app/tasks/upload.py,sha256=12E9ihDqbe9Ihij9o6p_yuV6WF1Yyt6zPeOI2dzCEms,5697
|
|
@@ -49,7 +49,7 @@ pulp_python/app/webserver_snippets/apache.conf,sha256=3frHSl2YV_8pJPscaFxMVo7Hmx
|
|
|
49
49
|
pulp_python/app/webserver_snippets/nginx.conf,sha256=gMqZGFefsTJVVx9YRxpHVS7NMEll9CzOseYdtLr3Avc,344
|
|
50
50
|
pulp_python/tests/__init__.py,sha256=4Yz43a8s-KyhdHFb5eEhIIvH72807Y84uAHnG5bO5y0,31
|
|
51
51
|
pulp_python/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
|
-
pulp_python/tests/functional/constants.py,sha256=
|
|
52
|
+
pulp_python/tests/functional/constants.py,sha256=SvzlxGQz1I-p3JEBSqNz9qoAYfq5yhGsqtYoJpCOioU,13819
|
|
53
53
|
pulp_python/tests/functional/utils.py,sha256=ZmOVSa94o0KvH7l42YwuUAcNJo8Eb733QBH2G6nGkeQ,5901
|
|
54
54
|
pulp_python/tests/functional/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
pulp_python/tests/functional/api/test_attestations.py,sha256=_opUZT65c5H2j_8ous-nKGHmDOw8EMjxdooTIQhiXQ8,8640
|
|
@@ -58,11 +58,11 @@ pulp_python/tests/functional/api/test_consume_content.py,sha256=QUOZ_bQ_Ortzitc7
|
|
|
58
58
|
pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=GbCDRY5iaLSRvPAvhz1a3mrYu_WN2lOEnFLltT6yL54,8756
|
|
59
59
|
pulp_python/tests/functional/api/test_crud_publications.py,sha256=uoTGHbhKq_mYOYtNV8Tt9cyhzY0zsoG1DhYrfIdYcMc,5646
|
|
60
60
|
pulp_python/tests/functional/api/test_crud_remotes.py,sha256=uRo51X3MDWIls4Fdxw5unvU47_JyyLEg2w41ByvDcmY,5811
|
|
61
|
-
pulp_python/tests/functional/api/test_domains.py,sha256=
|
|
61
|
+
pulp_python/tests/functional/api/test_domains.py,sha256=owbvFxOKDuAVX2PUpsO0olAmQmIKFThBqnQtjfKbS8Y,10210
|
|
62
62
|
pulp_python/tests/functional/api/test_download_content.py,sha256=msnsKpU6TGT8eNu6e0uFa4fte6hj85OTexwOHdf66-c,4950
|
|
63
|
-
pulp_python/tests/functional/api/test_export_import.py,sha256=
|
|
63
|
+
pulp_python/tests/functional/api/test_export_import.py,sha256=QciJ7Pdv6HSv3mKGqKSNW5g9M8e9tkWcapRQ1PUxabU,4512
|
|
64
64
|
pulp_python/tests/functional/api/test_full_mirror.py,sha256=npBj0IR10JUmjZyBY99NAGc8t5Xjbzl-y__69X9Eh1E,12045
|
|
65
|
-
pulp_python/tests/functional/api/test_pypi_apis.py,sha256=
|
|
65
|
+
pulp_python/tests/functional/api/test_pypi_apis.py,sha256=sdovsmCb88aDaEqTe_RKXiBJDaAx5BRRaT1oNPbIAfo,11691
|
|
66
66
|
pulp_python/tests/functional/api/test_pypi_simple_api.py,sha256=UzO3K3GMqiDUsAMWlxy9xM3kYtnD6e2WYNtwlJWYm-U,7251
|
|
67
67
|
pulp_python/tests/functional/api/test_rbac.py,sha256=cy1RQHvWKbE4f4aPu33ZdIUBiJBnW8aOXKlDHHcCuxo,10512
|
|
68
68
|
pulp_python/tests/functional/api/test_repair.py,sha256=8tW4jgR4pAsAswsblZM2NKdGAKnh1zuH7572k2GO4ag,12908
|
|
@@ -73,9 +73,9 @@ pulp_python/tests/functional/assets/shelf-reader-0.1.tar.gz.publish.attestation,
|
|
|
73
73
|
pulp_python/tests/functional/assets/shelf_reader-0.1-py2-none-any.whl.publish.attestation,sha256=muTQ8dqYSSdx76DlaPjB1REcNIS-aak-Na0TkASxu8M,10426
|
|
74
74
|
pulp_python/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
pulp_python/tests/unit/test_models.py,sha256=TBI0yKsrdbnJSPeBFfxSqhXK7zaNvR6qg5JehGH3Pds,229
|
|
76
|
-
pulp_python-3.
|
|
77
|
-
pulp_python-3.
|
|
78
|
-
pulp_python-3.
|
|
79
|
-
pulp_python-3.
|
|
80
|
-
pulp_python-3.
|
|
81
|
-
pulp_python-3.
|
|
76
|
+
pulp_python-3.27.1.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
|
|
77
|
+
pulp_python-3.27.1.dist-info/METADATA,sha256=xvmMkitNcJEYsXIn1i4TMj5gahBcPJSsmPVGbDk06Jc,1743
|
|
78
|
+
pulp_python-3.27.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
79
|
+
pulp_python-3.27.1.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
|
|
80
|
+
pulp_python-3.27.1.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
|
|
81
|
+
pulp_python-3.27.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|