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

kivy / python-for-android / 14427382821

13 Apr 2025 07:31AM UTC coverage: 59.228% (+0.09%) from 59.141%
14427382821

Pull #3139

github

web-flow
Merge ef12c6333 into 58d148bf8
Pull Request #3139: `kivy` and `pyjnius`: switch to `PyProjectRecipe`

1054 of 2375 branches covered (44.38%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 2 files covered. (75.0%)

4 existing lines in 1 file now uncovered.

4957 of 7774 relevant lines covered (63.76%)

2.54 hits per line

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

60.0
/pythonforandroid/recipes/pyjnius/__init__.py
1
from pythonforandroid.recipe import CythonRecipe, 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 = [('genericndkbuild', 'sdl2', 'sdl3'), 'six']
4✔
13
    site_packages_name = 'jnius'
4✔
14

15
    patches = [
4✔
16
        "use_cython.patch",
17
        ('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild')),
18
        ('sdl3_jnienv_getter.patch', will_build('sdl3')),
19
    ]
20

21
    def get_recipe_env(self, arch):
4✔
22
        env = super().get_recipe_env(arch)
×
NEW
23
        env.update(CythonRecipe.get_recipe_env(self, arch))
×
24
        # NDKPLATFORM is our switch for detecting Android platform, so can't be None
25
        env['NDKPLATFORM'] = "NOTNONE"
×
26
        return env
×
27

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

34

35
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