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

kivy / python-for-android / 5976260269

25 Aug 2023 01:05PM UTC coverage: 58.986% (+0.3%) from 58.676%
5976260269

push

github

web-flow
Standardise `ensure_dir` and `rmdir` (#2871)

* Standardise ensure_dir and rmdir

* Standardise ensure_dir and rmdir

* Add libmysqlclient to broken list

* Libtorrent failing to be rebuilt

* Add boost to broken recipes list

940 of 2241 branches covered (0.0%)

Branch coverage included in aggregate %.

73 of 113 new or added lines in 21 files covered. (64.6%)

3 existing lines in 3 files now uncovered.

4715 of 7346 relevant lines covered (64.18%)

2.56 hits per line

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

50.0
/pythonforandroid/recipes/twisted/__init__.py
1
import os
4✔
2

3
from pythonforandroid.recipe import CythonRecipe
4✔
4
from pythonforandroid.util import rmdir
4✔
5

6

7
class TwistedRecipe(CythonRecipe):
4✔
8
    version = '20.3.0'
4✔
9
    url = 'https://github.com/twisted/twisted/archive/twisted-{version}.tar.gz'
4✔
10

11
    depends = ['setuptools', 'zope_interface', 'incremental', 'constantly']
4✔
12
    patches = ['incremental.patch', 'remove_tests.patch']
4✔
13

14
    call_hostpython_via_targetpython = False
4✔
15
    install_in_hostpython = False
4✔
16

17
    def prebuild_arch(self, arch):
4✔
18
        super().prebuild_arch(arch)
×
19
        # TODO Need to whitelist tty.pyo and termios.so here
20

21
        # remove the unit test dirs
22
        source_dir = os.path.join(self.get_build_dir(arch.arch), 'src/twisted')
×
23
        for item in os.walk(source_dir):
×
24
            if os.path.basename(item[0]) == 'test':
×
25
                full_path = os.path.join(source_dir, item[0])
×
NEW
26
                rmdir(full_path, ignore_errors=True)
×
27

28
    def get_recipe_env(self, arch):
4✔
29
        env = super().get_recipe_env(arch)
×
30
        # We add BUILDLIB_PATH to PYTHONPATH so twisted can find _io.so
31
        env['PYTHONPATH'] = ':'.join([
×
32
            self.ctx.get_site_packages_dir(arch),
33
            env['BUILDLIB_PATH'],
34
        ])
35
        return env
×
36

37

38
recipe = TwistedRecipe()
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