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

kivy / python-for-android / 14419913182

12 Apr 2025 01:08PM UTC coverage: 59.175% (+0.06%) from 59.111%
14419913182

Pull #3139

github

web-flow
Merge e3538b561 into fbd525588
Pull Request #3139: `kivy` and `pyjnius`: switch to `PyProjectRecipe`

1048 of 2351 branches covered (44.58%)

Branch coverage included in aggregate %.

11 of 20 new or added lines in 2 files covered. (55.0%)

1 existing line in 1 file now uncovered.

4876 of 7660 relevant lines covered (63.66%)

2.53 hits per line

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

53.57
/pythonforandroid/recipes/pyjnius/__init__.py
1
from pythonforandroid.recipe import PyProjectRecipe
4✔
2
from pythonforandroid.toolchain import shprint, current_directory, info
4✔
3
from pythonforandroid.patching import will_build
4✔
4
import sh
4✔
5
from os.path import join
4✔
6

7

8
class PyjniusRecipe(PyProjectRecipe):
4✔
9
    version = '1.6.1'
4✔
10
    url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
4✔
11
    name = 'pyjnius'
4✔
12
    depends = ['six']
4✔
13
    site_packages_name = 'jnius'
4✔
14
    patches = [('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild')), "use_cython.patch"]
4✔
15

16
    def get_recipe_env(self, arch, **kwargs):
4✔
NEW
17
        env = super().get_recipe_env(arch, **kwargs)
×
18
        # NDKPLATFORM is our switch for detecting Android platform, so can't be None
19
        env['NDKPLATFORM'] = "NOTNONE"
×
NEW
20
        env['LIBLINK'] = "NOTNONE"
×
NEW
21
        env["ANDROID_PYJNIUS_CYTHON_3"] = "1"
×
NEW
22
        sdl_recipe = self.get_recipe("sdl2", self.ctx)
×
NEW
23
        env["LDFLAGS"] += " -L" + join(sdl_recipe.get_build_dir(arch.arch), "../..", "libs", arch.arch)
×
UNCOV
24
        return env
×
25

26
    def postbuild_arch(self, arch):
4✔
27
        super().postbuild_arch(arch)
×
28
        info('Copying pyjnius java class to classes build dir')
×
29
        with current_directory(self.get_build_dir(arch.arch)):
×
30
            shprint(sh.cp, '-a', join('jnius', 'src', 'org'), self.ctx.javaclass_dir)
×
31

32

33
recipe = PyjniusRecipe()
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