Commit 5c66fe9
committed
CI: Remove old scipy-wheels-nightly uploads to ensure space
Remove all but the last "${N_LATEST_UPLOADS}" package version uploads
to the matplotlib scipy-wheels-nightly index to ensure space. To do this,
rely on the output form of `anaconda show` to be able to filter on the item
delimiter character sequence for each version currently uploaded.
As an explicit example:
```
$ anaconda show scipy-wheels-nightly/matplotlib
Using Anaconda API: https://api.anaconda.org
Name: matplotlib
Summary:
Access: public
Package Types: pypi
Versions:
+ 3.6.0.dev2553+g3245d395d9
+ 3.6.0.dev2569+g3522217386
+ 3.6.0.dev2573+g3eadeacc06
To install this package with pypi run:
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple matplotlib
```
shows that by filtering on '+' and then stripping ' + ' one can obtain a
newline separated list of all package uploads, where they _most recent_
uploads are listed last. After stripping off the "${N_LATEST_UPLOADS}" lines
that correspond to the package versions to keep for testing, the remaining (older)
package uploads can be removed with `anaconda remove`.
Resolves the space problem in https://github.com/matplotlib/matplotlib Issue 227571 parent d2f87e8 commit 5c66fe9
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments