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

kivy / python-for-android / 14420258271

12 Apr 2025 01:55PM UTC coverage: 59.141% (+0.03%) from 59.111%
14420258271

push

github

web-flow
Add `SDL3` bootstrap (alongside `SDL3`, `SDL3_ttf`, `SDL3_mixer`, `SDL3_image` recipes) for Kivy `3.0.0` (#3125)

* Add SDL3 bootstrap

* Avoid some DRY issues + minor fixes + version bump

1054 of 2383 branches covered (44.23%)

Branch coverage included in aggregate %.

112 of 160 new or added lines in 14 files covered. (70.0%)

1 existing line in 1 file now uncovered.

4960 of 7786 relevant lines covered (63.7%)

2.54 hits per line

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

54.55
/pythonforandroid/recipes/sdl3_ttf/__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 LibSDL3TTF(BootstrapNDKRecipe):
4✔
9
    version = "3.2.2"
4✔
10
    url = "https://github.com/libsdl-org/SDL_ttf/releases/download/release-{version}/SDL3_ttf-{version}.tar.gz"
4✔
11
    dir_name = "SDL3_ttf"
4✔
12

13
    def get_include_dirs(self, arch):
4✔
NEW
14
        return [
×
15
            os.path.join(
16
                self.ctx.bootstrap.build_dir, "jni", "SDL3_ttf", "include"
17
            ),
18
            os.path.join(
19
                self.ctx.bootstrap.build_dir,
20
                "jni",
21
                "SDL3_ttf",
22
                "include",
23
                "SDL3_ttf",
24
            ),
25
        ]
26

27
    def prebuild_arch(self, arch):
4✔
28
        # We do not have a folder for each arch on BootstrapNDKRecipe, so we
29
        # need to skip the external deps download if we already have done it.
NEW
30
        external_deps_dir = os.path.join(
×
31
            self.get_build_dir(arch.arch), "external"
32
        )
NEW
33
        if not os.path.exists(os.path.join(external_deps_dir, "harfbuzz")):
×
NEW
34
            with current_directory(external_deps_dir):
×
NEW
35
                shprint(sh.Command("./download.sh"))
×
NEW
36
        super().prebuild_arch(arch)
×
37

38

39
recipe = LibSDL3TTF()
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

© 2025 Coveralls, Inc