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

kivy / python-for-android / 6215290912

17 Sep 2023 06:49PM UTC coverage: 59.095% (+1.4%) from 57.68%
6215290912

push

github

web-flow
Merge pull request #2891 from misl6/release-2023.09.16

* Update `cffi` recipe for Python 3.10 (#2800)

* Update __init__.py

version bump to 1.15.1

* Update disable-pkg-config.patch

adjust patch for 1.15.1

* Use build rather than pep517 for building (#2784)

pep517 has been renamed to pyproject-hooks, and as a consequence all of
the deprecated functionality has been removed. build now provides the
functionality required, and since we are only interested in the
metadata, we can leverage a helper function for that. I've also removed
all of the subprocess machinery for calling the wrapping function, since
it appears to not be as noisy as pep517.

* Bump actions/setup-python and actions/checkout versions, as old ones are deprecated (#2827)

* Removes `mysqldb` recipe as does not support Python 3 (#2828)

* Removes `Babel` recipe as it's not needed anymore. (#2826)

* Remove dateutil recipe, as it's not needed anymore (#2829)

* Optimize CI runs, by avoiding unnecessary rebuilds (#2833)

* Remove `pytz` recipe, as it's not needed anymore (#2830)

* `freetype` recipe: Changed the url to use https as http doesn't work (#2846)

* Fix `vlc` recipe build (#2841)

* Correct sys_platform (#2852)

On Window, sys.platform = "win32".

I think "nt" is a reference to os.name.

* Fix code string - quickstart.rst

* Bump `kivy` version to `2.2.1` (#2855)

* Use a pinned version of `Cython` for now, as most of the recipes are incompatible with `Cython==3.x.x` (#2862)

* Automatically generate required pre-requisites (#2858)

`get_required_prerequisites()` maintains a list of Prerequisites required by each platform.

But that same information is already stored in each Prerequisite class.

Rather than rather than maintaining two lists which might become inconsistent, auto-generate one.

* Use `platform.uname` instead of `os.uname` (#2857)

Advantages:

- Works cross platform, not just Unix.
- Is a namedtuple, ... (continued)

944 of 2241 branches covered (0.0%)

Branch coverage included in aggregate %.

174 of 272 new or added lines in 32 files covered. (63.97%)

9 existing lines in 5 files now uncovered.

4725 of 7352 relevant lines covered (64.27%)

2.56 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
4✔
2
import shutil
4✔
3

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

7

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

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

17
    def prebuild_arch(self, arch):
4✔
18
        super().prebuild_arch(arch)
×
19
        # Copy the Android make file
NEW
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):
4✔
25
        super().build_arch(arch)
×
26
        # Copy the shared library
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):
4✔
31
        env = super().get_recipe_env(arch)
×
32
        env['NDK_PROJECT_PATH'] = self.get_build_dir(arch.arch)
×
33
        return env
×
34

35

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