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

kivy / python-for-android / 16465999162

23 Jul 2025 08:49AM UTC coverage: 59.159% (-0.01%) from 59.171%
16465999162

Pull #3174

github

web-flow
Merge fb16b08a7 into a8f2ca1c5
Pull Request #3174: `recipes`: new pycairo recipe

1054 of 2381 branches covered (44.27%)

Branch coverage included in aggregate %.

29 of 48 new or added lines in 3 files covered. (60.42%)

32 existing lines in 1 file now uncovered.

4985 of 7827 relevant lines covered (63.69%)

2.54 hits per line

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

73.33
/pythonforandroid/recipes/pycairo/__init__.py
1
from pythonforandroid.recipe import MesonRecipe
4✔
2
from os.path import join
4✔
3

4

5
class PyCairoRecipe(MesonRecipe):
4✔
6
    version = '1.28.0'
4✔
7
    url = 'https://github.com/pygobject/pycairo/releases/download/v{version}/pycairo-{version}.tar.gz'
4✔
8
    name = 'pycairo'
4✔
9
    site_packages_name = 'cairo'
4✔
10
    depends = ['libcairo']
4✔
11
    patches = ["meson.patch"]
4✔
12

13
    def build_arch(self, arch):
4✔
14

NEW
15
        include_path = join(self.get_recipe('libcairo', self.ctx).get_build_dir(arch), "install", "include", "cairo")
×
NEW
16
        lib_path = self.ctx.get_libs_dir(arch.arch)
×
17

NEW
18
        self.extra_build_args += [
×
19
            f'-Csetup-args=-Dcairo_include={include_path}',
20
            f'-Csetup-args=-Dcairo_lib={lib_path}',
21
        ]
22

NEW
23
        super().build_arch(arch)
×
24

25

26
recipe = PyCairoRecipe()
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