Commit 258d27c
committed
feat(cdn): add R2 CDN bucket and /cdn/ Worker routes for WASM wheels
Creates a pywire-cdn R2 bucket and exposes it via two Worker routes:
- /cdn/simple/{package}/ — PEP 503 simple index (generated from R2 listing)
- /cdn/{key} — serve object from R2 with immutable cache headers
This hosts Pyodide WASM wheels (starting with tree-sitter-pywire) so
micropip can resolve them by package name without pinning a full URL:
micropip.install('tree-sitter-pywire',
index_urls=['https://pywire.dev/cdn/simple', 'https://pypi.org/simple'])1 parent 697b777 commit 258d27c
2 files changed
Lines changed: 52 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
| |||
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
94 | | - | |
| 106 | + | |
95 | 107 | | |
96 | 108 | | |
97 | 109 | | |
| |||
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
107 | | - | |
| 119 | + | |
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
| |||
123 | 135 | | |
124 | 136 | | |
125 | 137 | | |
126 | | - | |
| 138 | + | |
127 | 139 | | |
128 | 140 | | |
129 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 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 | + | |
15 | 47 | | |
16 | 48 | | |
17 | 49 | | |
18 | 50 | | |
19 | 51 | | |
20 | 52 | | |
21 | | - | |
| 53 | + | |
22 | 54 | | |
23 | 55 | | |
24 | 56 | | |
| |||
43 | 75 | | |
44 | 76 | | |
45 | 77 | | |
46 | | - | |
| 78 | + | |
47 | 79 | | |
48 | 80 | | |
49 | 81 | | |
50 | 82 | | |
51 | 83 | | |
52 | 84 | | |
53 | | - | |
| 85 | + | |
54 | 86 | | |
55 | 87 | | |
56 | 88 | | |
0 commit comments