blob: 05a5a718e525eefa7766aad465adb2dfec25ea56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PypiInstallation renders all the messages 1`] = `
<div>
<div
class="gl-align-items-center gl-display-flex gl-justify-content-space-between"
>
<h3
class="gl-font-lg"
>
Installation
</h3>
<div>
<div
class="gl-new-dropdown"
>
<button
aria-controls="reference-1"
aria-haspopup="listbox"
aria-labelledby="reference-0"
class="btn btn-default btn-md gl-button gl-new-dropdown-toggle"
data-testid="base-dropdown-toggle"
id="reference-0"
type="button"
>
<span
class="gl-button-text"
>
<span
class="gl-new-dropdown-button-text"
>
Show PyPi commands
</span>
<svg
aria-hidden="true"
class="gl-button-icon gl-icon gl-new-dropdown-chevron s16"
data-testid="chevron-down-icon"
role="img"
>
<use
href="file-mock#chevron-down"
/>
</svg>
</span>
</button>
<div
class="gl-new-dropdown-panel gl-w-31!"
data-testid="base-dropdown-menu"
id="reference-1"
>
<div
class="gl-new-dropdown-inner"
>
<ul
aria-labelledby="reference-0"
class="gl-new-dropdown-contents gl-new-dropdown-contents-with-scrim-overlay"
id="reference-2"
role="listbox"
tabindex="-1"
>
<li
aria-hidden="true"
class="top-scrim-wrapper"
data-testid="top-scrim"
>
<div
class="top-scrim top-scrim-light"
/>
</li>
<li
aria-hidden="true"
/>
<li
aria-selected="true"
class="gl-new-dropdown-item"
data-testid="listbox-item-pypi"
role="option"
tabindex="-1"
>
<span
class="gl-bg-gray-50! gl-new-dropdown-item-content"
>
<svg
aria-hidden="true"
class="gl-align-self-start gl-icon gl-mt-3 gl-new-dropdown-item-check-icon s16"
data-testid="dropdown-item-checkbox"
role="img"
>
<use
href="file-mock#mobile-issue-close"
/>
</svg>
<span
class="gl-new-dropdown-item-text-wrapper"
>
Show PyPi commands
</span>
</span>
</li>
<li
aria-hidden="true"
/>
<li
aria-hidden="true"
class="bottom-scrim-wrapper"
data-testid="bottom-scrim"
>
<div
class="bottom-scrim"
/>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<fieldset
class="form-group gl-form-group"
id="reference-3"
>
<legend
class="bv-no-focus-ring col-form-label pt-0"
id="reference-4"
tabindex="-1"
/>
<div>
<div
data-testid="pip-command"
id="reference-5"
>
<label
for="reference-6"
>
Pip Command
</label>
<div
class="gl-mb-3"
>
<div
class="gl-mb-3 input-group"
>
<input
class="form-control gl-font-monospace"
data-testid="instruction-input"
id="reference-6"
readonly=""
type="text"
/>
<span
class="input-group-append"
data-testid="instruction-button"
>
<button
aria-label="Copy Pip command"
aria-live="polite"
class="btn btn-default btn-default-secondary btn-icon btn-md gl-button input-group-text"
data-clipboard-handle-tooltip="false"
data-clipboard-text="pip install @gitlab-org/package-15 --index-url http://__token__:<your_personal_token>@gdk.test:3000/api/v4/projects/1/packages/pypi/simple"
id="reference-7"
title="Copy Pip command"
type="button"
>
<svg
aria-hidden="true"
class="gl-button-icon gl-icon s16"
data-testid="copy-to-clipboard-icon"
role="img"
>
<use
href="file-mock#copy-to-clipboard"
/>
</svg>
</button>
</span>
</div>
</div>
</div>
<small
class="form-text text-muted"
id="reference-8"
tabindex="-1"
>
You will need a
<a
class="gl-link"
data-testid="access-token-link"
href="/help/user/profile/personal_access_tokens"
>
personal access token
</a>
.
</small>
</div>
</fieldset>
<h3
class="gl-font-lg"
>
Registry setup
</h3>
<p>
If you haven't already done so, you will need to add the below to your
<code>
.pypirc
</code>
file.
</p>
<div
data-testid="pypi-setup-content"
>
<div>
<pre
class="gl-font-monospace"
data-testid="multiline-instruction"
>
[gitlab]repository = http://gdk.test:3000/api/v4/projects/1/packages/pypiusername = __token__password = <your personal access token>
</pre>
</div>
</div>
For more information on the PyPi registry,
<a
class="gl-link"
data-testid="pypi-docs-link"
href="/help/user/packages/pypi_repository/index"
rel="noopener"
target="_blank"
>
see the documentation
</a>
.
</div>
`;
|