summaryrefslogtreecommitdiff
path: root/spec/frontend/packages_and_registries/package_registry/components/details/__snapshots__/pypi_installation_spec.js.snap
blob: b2375da7b118744f4f2b6409e87adfa1492e0276 (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
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`PypiInstallation renders all the messages 1`] = `
<div>
  <div
    class="gl-display-flex gl-justify-content-space-between gl-align-items-center"
  >
    <h3
      class="gl-font-lg"
    >
      Installation
    </h3>
     
    <div>
      <div
        class="dropdown b-dropdown gl-dropdown btn-group"
        id="__BVID__27"
        lazy=""
      >
        <!---->
        <button
          aria-expanded="false"
          aria-haspopup="true"
          class="btn dropdown-toggle btn-default btn-md gl-button gl-dropdown-toggle"
          id="__BVID__27__BV_toggle_"
          type="button"
        >
          <!---->
           
          <!---->
           
          <span
            class="gl-dropdown-button-text"
          >
            Show PyPi commands
          </span>
           
          <svg
            aria-hidden="true"
            class="gl-button-icon dropdown-chevron gl-icon s16"
            data-testid="chevron-down-icon"
            role="img"
          >
            <use
              href="#chevron-down"
            />
          </svg>
        </button>
        <ul
          aria-labelledby="__BVID__27__BV_toggle_"
          class="dropdown-menu"
          role="menu"
          tabindex="-1"
        >
          <!---->
        </ul>
      </div>
    </div>
  </div>
   
  <fieldset
    aria-describedby="installation-pip-command-group__BV_description_"
    class="form-group gl-form-group"
    id="installation-pip-command-group"
  >
    <legend
      class="bv-no-focus-ring col-form-label pt-0 col-form-label"
      id="installation-pip-command-group__BV_label_"
      tabindex="-1"
    >
      
      
      
      <!---->
       
      <!---->
    </legend>
    <div
      aria-labelledby="installation-pip-command-group__BV_label_"
      class="bv-no-focus-ring"
      role="group"
      tabindex="-1"
    >
      <div
        data-testid="pip-command"
        id="installation-pip-command"
      >
        <label
          for="instruction-input_5"
        >
          Pip Command
        </label>
         
        <div
          class="gl-mb-3"
        >
          <div
            class="input-group gl-mb-3"
          >
            <input
              class="form-control gl-font-monospace"
              data-testid="instruction-input"
              id="instruction-input_5"
              readonly="readonly"
              type="text"
            />
             
            <span
              class="input-group-append"
              data-testid="instruction-button"
            >
              <button
                aria-label="Copy Pip command"
                aria-live="polite"
                class="btn input-group-text btn-default btn-md gl-button btn-default-secondary btn-icon"
                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="clipboard-button-6"
                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="#copy-to-clipboard"
                  />
                </svg>
                  
                <!---->
              </button>
            </span>
          </div>
        </div>
      </div>
      <!---->
      <!---->
      <small
        class="form-text text-muted"
        id="installation-pip-command-group__BV_description_"
        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/pypi
username = __token__
password = &lt;your personal access token&gt;
      </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>
`;