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

kivy / python-for-android / 8498919932

31 Mar 2024 02:35PM UTC coverage: 58.893% (-0.2%) from 59.11%
8498919932

push

github

web-flow
recipes: Introduce `RustCompiledComponentsRecipe`, add `pydantic-core` and update `cryptography` (#2962)

956 of 2283 branches covered (41.87%)

Branch coverage included in aggregate %.

50 of 105 new or added lines in 5 files covered. (47.62%)

1 existing line in 1 file now uncovered.

4819 of 7523 relevant lines covered (64.06%)

2.55 hits per line

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

55.56
/pythonforandroid/recipes/cryptography/__init__.py
1
from pythonforandroid.recipe import RustCompiledComponentsRecipe
4✔
2
from os.path import join
4✔
3

4

5
class CryptographyRecipe(RustCompiledComponentsRecipe):
4✔
6

7
    name = 'cryptography'
4✔
8
    version = '42.0.1'
4✔
9
    url = 'https://github.com/pyca/cryptography/archive/refs/tags/{version}.tar.gz'
4✔
10
    depends = ['openssl', 'six', 'setuptools', 'cffi']
4✔
11
    # recipe built cffi does not work on apple M1
12
    hostpython_prerequisites = ["semantic_version", "cffi"]
4✔
13

14
    def get_recipe_env(self, arch):
4✔
15
        env = super().get_recipe_env(arch)
×
NEW
16
        openssl_build_dir = self.get_recipe('openssl', self.ctx).get_build_dir(arch.arch)
×
NEW
17
        build_target = self.RUST_ARCH_CODES[arch.arch].upper().replace("-", "_")
×
NEW
18
        openssl_include = "{}_OPENSSL_INCLUDE_DIR".format(build_target)
×
NEW
19
        openssl_libs = "{}_OPENSSL_LIB_DIR".format(build_target)
×
NEW
20
        env[openssl_include] = join(openssl_build_dir, 'include')
×
NEW
21
        env[openssl_libs] = join(openssl_build_dir)
×
UNCOV
22
        return env
×
23

24

25
recipe = CryptographyRecipe()
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