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

kivy / python-for-android / 18449661967

12 Oct 2025 09:20PM UTC coverage: 59.033% (-0.08%) from 59.116%
18449661967

push

github

web-flow
Merge pull request #3174 from T-Dynamos/develop

`recipes`: new pycairo recipe

1071 of 2417 branches covered (44.31%)

Branch coverage included in aggregate %.

31 of 62 new or added lines in 3 files covered. (50.0%)

5020 of 7901 relevant lines covered (63.54%)

5.07 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
8✔
2
from os.path import join
8✔
3

4

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

13
    def build_arch(self, arch):
8✔
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()
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