• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kivy / python-for-android / 3770732673

pending completion
3770732673

push

github

GitHub
Merge pull request #2718 from kivy/release-2022.12.20

877 of 2011 branches covered (43.61%)

Branch coverage included in aggregate %.

38 of 86 new or added lines in 16 files covered. (44.19%)

4515 of 6886 relevant lines covered (65.57%)

2.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/pythonforandroid/recipes/sdl2_image/__init__.py
1
import os
4✔
2
import sh
4✔
3
from pythonforandroid.logger import shprint
4✔
4
from pythonforandroid.recipe import BootstrapNDKRecipe
4✔
5
from pythonforandroid.util import current_directory
4✔
6

7

8
class LibSDL2Image(BootstrapNDKRecipe):
4✔
9
    version = '2.6.2'
4✔
10
    url = 'https://github.com/libsdl-org/SDL_image/releases/download/release-{version}/SDL2_image-{version}.tar.gz'
4✔
11
    dir_name = 'SDL2_image'
4✔
12

13
    patches = ['enable-webp.patch']
4✔
14

15
    def prebuild_arch(self, arch):
4✔
16
        # We do not have a folder for each arch on BootstrapNDKRecipe, so we
17
        # need to skip the external deps download if we already have done it.
NEW
18
        external_deps_dir = os.path.join(self.get_build_dir(arch.arch), "external")
×
NEW
19
        if not os.path.exists(os.path.join(external_deps_dir, "libwebp")):
×
NEW
20
            with current_directory(external_deps_dir):
×
NEW
21
                shprint(sh.Command("./download.sh"))
×
NEW
22
        super().prebuild_arch(arch)
×
23

24

25
recipe = LibSDL2Image()
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc