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

kivy / python-for-android / 18772814487

24 Oct 2025 07:26AM UTC coverage: 58.905% (+0.1%) from 58.795%
18772814487

Pull #3242

github

web-flow
Merge 8e403909a 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

48.0
/pythonforandroid/recipes/apsw/__init__.py
1
from pythonforandroid.recipe import PythonRecipe
8✔
2
from pythonforandroid.toolchain import current_directory, shprint
8✔
3
import sh
8✔
4

5

6
class ApswRecipe(PythonRecipe):
8✔
7
    version = '3.15.0'
8✔
8
    url = ('https://files.pythonhosted.org/packages/02/ea/'
8✔
9
           '7469e89d75a07972255aac4c1b98675bfbc74df32a19dd5dc8ba87aa552b/'
10
           'apsw-{version}.tar.gz')
11
    depends = ['sqlite3', 'setuptools']
8✔
12
    call_hostpython_via_targetpython = False
8✔
13
    site_packages_name = 'apsw'
8✔
14

15
    def build_arch(self, arch):
8✔
UNCOV
16
        env = self.get_recipe_env(arch)
×
UNCOV
17
        with current_directory(self.get_build_dir(arch.arch)):
×
18
            # Build python bindings
UNCOV
19
            hostpython = sh.Command(self.hostpython_location)
×
UNCOV
20
            shprint(hostpython,
×
21
                    'setup.py',
22
                    'build_ext',
23
                    '--enable=fts4', _env=env)
24
        # Install python bindings
UNCOV
25
        super().build_arch(arch)
×
26

27
    def get_recipe_env(self, arch):
8✔
UNCOV
28
        env = super().get_recipe_env(arch)
×
UNCOV
29
        sqlite_recipe = self.get_recipe('sqlite3', self.ctx)
×
UNCOV
30
        env['CFLAGS'] += ' -I' + sqlite_recipe.get_build_dir(arch.arch)
×
UNCOV
31
        env['LDFLAGS'] += ' -L' + sqlite_recipe.get_lib_dir(arch)
×
UNCOV
32
        env['LIBS'] = env.get('LIBS', '') + ' -lsqlite3'
×
UNCOV
33
        return env
×
34

35

36
recipe = ApswRecipe()
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