|
Ran
|
Jobs
1
|
Files
5
|
Run time
1min
|
Badge
README BADGES
|
push
github
luma.emulator.device.asciiart: fix compatibility with Pillow ≥ 10 (#68) This accounts for two interface removals in Pillow 10: [Font size and offset methods](https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods). `PIL.ImageFont.ImageFont.getsize` was deprecated in [Pillow 3c0b8763abb2](https://github.com/python-pillow/Pillow/commit/3c0b8763a) (9.2.0, 2022-07-01) and removed in [Pillow b2301d70d104](https://github.com/python-pillow/Pillow/commit/b2301d70d) (10.0.0, 2023-07-01). `PIL.ImageFont.ImageFont.getbbox`, available since [Pillow c854bf8d1c05](https://github.com/python-pillow/Pillow/commit/c854bf8d1) (9.2.0, 2022-07-01), can be used as the basis for a replacement. Note that since [Pillow 1e5aa21fa8ad](https://github.com/python-pillow/Pillow/commit/1e5aa21fa) (10.1.0, 2023-10-25), `PIL.ImageFont.load_default` may load a `PIL.ImageFont.FreeTypeFont` instead of `PIL.ImageFont.ImageFont`, but `FreeTypeFont` has supported `getbbox` for even longer, since [Pillow 395aa946a9f1](https://github.com/python-pillow/Pillow/commit/395aa946a) (8.0.0, 2020-10-04). [Constants](https://pillow.readthedocs.io/en/stable/deprecations.html#constants). `PIL.Image.ANTIALIAS` was deprecated in [Pillow ed8073e846dd](https://github.com/python-pillow/Pillow/commit/ed8073e84) (9.1.0, 2022-04-01) and removed in [Pillow c8ec15980b00](https://github.com/python-pillow/Pillow/commit/c8ec15980) (10.0.0, 2023-07-01). `PIL.Image.Resampling.LANCZOS`, available since [Pillow f8e4e9c2dd94](https://github.com/python-pillow/Pillow/commit/f8e4e9c2d) (9.1.0, 2022-04-01), is a direct replacement. This was previously addressed for `luma.emulator.device.asciiblock` in [dae670a8e8a9](https://github.com/rm-hull/luma... (continued)
0 of 3 new or added lines in 1 file covered. (0.0%)
222 of 296 relevant lines covered (75.0%)
4.49 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 3 |
67.11 |
0.0% | luma/emulator/device.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 18615341135.1 | 5 |
75.0 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|