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

kivy / python-for-android / 18737048763

23 Oct 2025 03:56AM UTC coverage: 58.905% (+0.1%) from 58.795%
18737048763

Pull #3242

github

web-flow
Merge 29433fce0 into 96112666e
Pull Request #3242: Update to Python 3.14, remove distutils

1076 of 2438 branches covered (44.13%)

Branch coverage included in aggregate %.

13 of 16 new or added lines in 8 files covered. (81.25%)

103 existing lines in 6 files now uncovered.

5046 of 7955 relevant lines covered (63.43%)

5.06 hits per line

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

59.09
/pythonforandroid/recipes/sqlite3/__init__.py
1
from os.path import join
8✔
2
import shutil
8✔
3

4
from pythonforandroid.recipe import NDKRecipe
8✔
5
from pythonforandroid.util import ensure_dir
8✔
6

7

8
class Sqlite3Recipe(NDKRecipe):
8✔
9
    version = '3.35.5'
8✔
10
    # Don't forget to change the URL when changing the version
11
    url = 'https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip'
8✔
12
    generated_libraries = ['sqlite3']
8✔
13

14
    def should_build(self, arch):
8✔
15
        return not self.has_libs(arch, 'libsqlite3.so')
×
16

17
    def prebuild_arch(self, arch):
8✔
18
        super().prebuild_arch(arch)
×
19
        # Copy the Android make file
20
        ensure_dir(join(self.get_build_dir(arch.arch), 'jni'))
×
21
        shutil.copyfile(join(self.get_recipe_dir(), 'Android.mk'),
×
22
                        join(self.get_build_dir(arch.arch), 'jni/Android.mk'))
23

24
    def build_arch(self, arch, *extra_args):
8✔
UNCOV
25
        super().build_arch(arch)
×
26
        # Copy the shared library
UNCOV
27
        shutil.copyfile(join(self.get_build_dir(arch.arch), 'libs', arch.arch, 'libsqlite3.so'),
×
28
                        join(self.ctx.get_libs_dir(arch.arch), 'libsqlite3.so'))
29

30
    def get_recipe_env(self, arch):
8✔
UNCOV
31
        env = super().get_recipe_env(arch)
×
UNCOV
32
        env['NDK_PROJECT_PATH'] = self.get_build_dir(arch.arch)
×
UNCOV
33
        return env
×
34

35

36
recipe = Sqlite3Recipe()
8✔
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