2020
2121class PythonRepositoryViewSet (core_viewsets .RepositoryViewSet , ModifyRepositoryActionMixin ):
2222 """
23- A ViewSet for PythonRepository.
23+ PythonRepository represents a single Python repository, to which content can be
24+ synced, added, or removed.
2425 """
2526
2627 endpoint_name = 'python'
2728 queryset = python_models .PythonRepository .objects .all ()
2829 serializer_class = python_serializers .PythonRepositorySerializer
2930
3031 @extend_schema (
31- description = "Trigger an asynchronous task to sync Python content." ,
3232 summary = "Sync from remote" ,
3333 responses = {202 : AsyncOperationResponseSerializer }
3434 )
@@ -37,7 +37,7 @@ def sync(self, request, pk):
3737 """
3838 <!-- User-facing documentation, rendered as html-->
3939 Trigger an asynchronous task to sync python content. The sync task will retrieve Python
40- content from the specified `Remote` and " update the specified `Respository`, creating a
40+ content from the specified `Remote` and update the specified `Respository`, creating a
4141 new `RepositoryVersion`.
4242 """
4343 repository = self .get_object ()
@@ -72,11 +72,12 @@ class PythonRepositoryVersionViewSet(core_viewsets.RepositoryVersionViewSet):
7272class PythonDistributionViewSet (core_viewsets .DistributionViewSet ):
7373 """
7474 <!-- User-facing documentation, rendered as html-->
75- Pulp Python Distributions are used to distribute
76- <a href="../restapi.html#tag/publications">Python Publications.</a> <b> Pulp Python
75+ Pulp Python Distributions are used to distribute Python content from
76+ <a href="./#tag/Repositories:-Python">Python Repositories</a> or
77+ <a href="./#tag/Publications:-Pypi">Python Publications.</a> <b> Pulp Python
7778 Distributions should not be confused with "Python Distribution" as defined by the Python
78- community.</b> In Pulp usage, Python content is refered to as <a
79- href="../restapi.html #tag/content ">Python Package Content.</a>
79+ community.</b> In Pulp usage, Python content is referred to as <a
80+ href="./ #tag/Content:-Packages ">Python Package Content.</a>
8081 """
8182
8283 endpoint_name = 'pypi'
@@ -134,7 +135,6 @@ class PythonRemoteViewSet(core_viewsets.RemoteViewSet):
134135 serializer_class = python_serializers .PythonRemoteSerializer
135136
136137 @extend_schema (
137- description = "Create a remote from a Bandersnatch config" ,
138138 summary = "Create from Bandersnatch" ,
139139 responses = {201 : python_serializers .PythonRemoteSerializer },
140140 )
@@ -143,8 +143,7 @@ class PythonRemoteViewSet(core_viewsets.RemoteViewSet):
143143 def from_bandersnatch (self , request ):
144144 """
145145 <!-- User-facing documentation, rendered as html-->
146- Takes the fields specified in the Bandersnatch config and creates a Python Remote from
147- it.
146+ Takes the fields specified in the Bandersnatch config and creates a Python Remote from it.
148147 """
149148 serializer = self .get_serializer (data = request .data )
150149 serializer .is_valid (raise_exception = True )
@@ -196,7 +195,6 @@ class PythonPublicationViewSet(core_viewsets.PublicationViewSet):
196195 serializer_class = python_serializers .PythonPublicationSerializer
197196
198197 @extend_schema (
199- description = "Trigger an asynchronous task to publish python content." ,
200198 responses = {202 : AsyncOperationResponseSerializer }
201199 )
202200 def create (self , request ):
0 commit comments