@@ -24,18 +24,20 @@ Distribution before it is consumable).
2424
2525 ```
2626 {
27- "pulp_href": "/pulp/api/v3/publications/python/pypi/cad6007d-7172-41d1-8c22-0ec95e1d242a/",
28- "pulp_created": "2021-03-09T04:30:16.686784Z",
29- "repository_version": "/pulp/api/v3/repositories/python/python/8fbb24ee-dc91-44f4-a6ee-beec60aa542d/versions/1/",
30- "repository": "/pulp/api/v3/repositories/python/python/8fbb24ee-dc91-44f4-a6ee-beec60aa542d/",
27+ "pulp_href": "/pulp/api/v3/publications/python/pypi/0196ba31-cd04-7aba-a7b4-71a98a976745/",
28+ "prn": "prn:python.pythonpublication:0196ba31-cd04-7aba-a7b4-71a98a976745",
29+ "pulp_created": "2025-05-10T12:35:48.103758Z",
30+ "pulp_last_updated": "2025-05-10T12:35:48.205361Z",
31+ "repository_version": "/pulp/api/v3/repositories/python/python/0196ba30-e15e-71ea-9867-33aeceb5a87e/versions/1/",
32+ "repository": "/pulp/api/v3/repositories/python/python/0196ba30-e15e-71ea-9867-33aeceb5a87e/",
3133 "distributions": []
3234 }
3335 ```
3436
3537## Host a Publication (Create a Distribution)
3638
3739To host a publication, (which makes it consumable by ` pip ` ), users create a distribution which
38- will serve the associated publication at ` /pypi/<distribution.base_path>/ `
40+ will serve the associated publication at ` $BASE_ADDR /pypi/$DIST_BASE_PATH/ ` .
3941
4042=== "Run"
4143
@@ -49,15 +51,22 @@ will serve the associated publication at `/pypi/<distribution.base_path>/`
4951
5052 ```
5153 {
52- "pulp_href": "/pulp/api/v3/distributions/python/pypi/4839c056-6f2b-46b9-ac5f-88eb8a7739a5/",
53- "pulp_created": "2021-03-09T04:36:48.289737Z",
54- "base_path": "foo",
55- "base_url": "/pypi/foo/",
56- "content_guard": null,
57- "pulp_labels": {},
58- "name": "foo",
59- "publication": "/pulp/api/v3/publications/python/pypi/a09111b1-6bce-43ac-aed7-2e8441c22704/"
60- }
54+ "pulp_href": "/pulp/api/v3/distributions/python/pypi/0196ba32-0be6-7f85-bbb3-cf561a4e2d88/",
55+ "prn": "prn:python.pythondistribution:0196ba32-0be6-7f85-bbb3-cf561a4e2d88",
56+ "pulp_created": "2025-05-10T12:36:04.200189Z",
57+ "pulp_last_updated": "2025-05-10T12:36:04.200232Z",
58+ "base_path": "foo",
59+ "base_url": "http://localhost:5001/pypi/foo/",
60+ "content_guard": null,
61+ "no_content_change_since": "2025-05-10T12:36:04.200232Z",
62+ "hidden": false,
63+ "pulp_labels": {},
64+ "name": "foo",
65+ "repository": null,
66+ "publication": "/pulp/api/v3/publications/python/pypi/0196ba31-cd04-7aba-a7b4-71a98a976745/",
67+ "allow_uploads": true,
68+ "remote": null
69+ }
6170 ```
6271
6372## Automate Publication and Distribution
@@ -68,7 +77,7 @@ updated automatically when new repository versions are created.
6877``` bash
6978# This configures the repository to produce new publications when a new version is created
7079pulp python repository update --name foo --autopublish
71- # This configures the distribution to be track the latest repository version for a given repository
80+ # This configures the distribution to track the latest repository version for a given repository
7281pulp python distribution update --name foo --repository foo
7382```
7483
@@ -77,7 +86,7 @@ pulp python distribution update --name foo --repository foo
7786 Functionality may not work or may be incomplete. Also, backwards compatibility when upgrading
7887 is not guaranteed.
7988
80- ## Enable Pull-Through Caching:
89+ ## Enable Pull-Through Caching
8190
8291Only packages present in your repository will be available from your index, but adding a remote source to
8392your distribution will enable the pull-through cache feature. This feature allows you to install any package
@@ -101,28 +110,26 @@ pulp python distribution update --name foo --remote bar
101110The metadata and packages can now be retrieved from the distribution:
102111
103112``` bash
104- $ http $ BASE_ADDR /pypi/foo/simple/
105- $ http $ BASE_ADDR /pypi/foo/simple/shelf-reader/
113+ http " ${ BASE_ADDR} /pypi/foo/simple/"
114+ http " ${ BASE_ADDR} /pypi/foo/simple/shelf-reader/"
106115```
107116
108117!!! note
109118 When domains are enabled, it is necessary to include the domain name within the URL, like so:
110- ` $BASE_ADDR/pypi/${ DOMAIN_NAME} /foo/simple/ `
119+ ` $BASE_ADDR/pypi/$DOMAIN_NAME/foo/simple/ `
111120
112121The content is also pip installable:
113122
114123``` bash
115- $ pip install --trusted-host localhost -i $ BASE_ADDR /pypi/foo/simple/ shelf-reader
124+ pip install --trusted-host localhost -i " ${ BASE_ADDR} /pypi/foo/simple/" shelf-reader
116125```
117126
118- If you don't want to specify the distribution path every time, you can modify your ` pip.conf `
119- file. See the [ pip docs] ( https://pip.pypa.io/en/stable/user_guide/#configuration ) for more
120- detail.:
127+ If you don't want to specify the distribution path every time, you can modify your ` pip.conf ` file:
121128
122129=== "Run"
123130
124131 ```bash
125- $ cat pip.conf
132+ cat pip.conf
126133 ```
127134
128135=== "Output"
@@ -135,5 +142,7 @@ detail.:
135142The above configuration informs ` pip ` to install from ` pulp ` :
136143
137144``` bash
138- $ pip install --trusted-host localhost shelf-reader
145+ pip install --trusted-host localhost shelf-reader
139146```
147+
148+ See the [ pip docs] ( https://pip.pypa.io/en/stable/topics/configuration ) for more details.
0 commit comments