Commit 7b88c87
refactor(pypi): split out a hub_builder helper from the extension code (#3243)
This is a somewhat tedious refactor, where I am just moving code around
(and sometimes renaming various parameters).
I am not modifying and/or fixing any bugs other than more error messages
in one place since I noticed there was a lack of validation. The main
idea is to create a `hub_builder` so that we could also use it for
`pip.configure` calls and/or use it for `py.lock` file parsing and reuse
code. I hope that moving it to a separate file makes it a little bit
more obvious what pieces are used to create a hub repository.
What is more, since the pip extension is reproducible, I have removed
some code that was sorting the output.
Work towards #2747
---------
Co-authored-by: Richard Levasseur <[email protected]>1 parent b8e32c4 commit 7b88c87
File tree
3 files changed
+650
-536
lines changed- python/private/pypi
3 files changed
+650
-536
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | 118 | | |
121 | | - | |
122 | 119 | | |
123 | | - | |
124 | | - | |
| 120 | + | |
125 | 121 | | |
126 | | - | |
127 | | - | |
| 122 | + | |
128 | 123 | | |
129 | 124 | | |
130 | 125 | | |
| |||
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
170 | 186 | | |
171 | 187 | | |
172 | 188 | | |
| |||
0 commit comments