Commit ccb7257
test: Add PKG-INFO to egg-info mocks for Python 3.15 compatibility
Python 3.15's importlib.metadata now strictly requires PKG-INFO files
in egg-info directories when accessing the requires property. Without it,
self.metadata is None and triggers AttributeError when reading d.requires.
Although reported as a regression, upstream chose to enforce this requirement
rather than handle missing metadata gracefully.
python/cpython#143387
In near future, it will raise MetadataNotFound(FileNotFoundError).
python/cpython#1462341 parent 832b93e commit ccb7257
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
194 | 201 | | |
195 | 202 | | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
201 | | - | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
| |||
0 commit comments