commit | 76a1c484b5d805f545bb7ee7d564c0326b37f0b4 | [log] [tgz] |
---|---|---|
author | Borjan Tchakaloff <borjan@fairphone.com> | Tue Oct 30 15:45:11 2018 +0100 |
committer | Borjan Tchakaloff <borjan@fairphone.com> | Mon Nov 05 11:20:31 2018 +0100 |
tree | caaa5973f60029f6ca5ccedbcdb29710613978a2 | |
parent | b32bf934d01078e157253d5e4e51570bcf4af4cb [diff] |
python-libs/android-tools: Create project metadata Add a support library to handle Android devices and apps in Python 3. Change-Id: I03702db7effbdce37a1075b60e60be866824c31c
A collection of tools developed at Fairphone related to Android development:
bin
:fetch-and-push-partner
: a script to fetch the AOSP partner security branches in the Android tree and push them to our own repositories.merge-partner-on-aosp
: a script to merge the AOSP partner security branches in the Android tree.ota_install
: a script to push an OTA to a device and initiate the update process with the Fairphone Updater.<language>-libs
:python-libs/android-tools
: A support library to work with Android devices and apps in Python 3.lava
: tools to interact with LAVA, the automated testing system.See the individual tools help (--help
) or projects README for installation and usage.
TODO: Migrate the LAVA tools in lava
to an installable Python package.
Code style, linters, and formatters must be used before submitting any new tool or patchset. Maximal line lengths are fixed to 80 characters.
Install the selected toolset within a Python 3.6 (virtual) environment:
$ pip3 install -r requirements-dev.txt
We detail below the recommendations (read: requirements) per language and how to run the tools in a standalone fashion.
Note: Portable shell scripts are favoured over Bash scripts.
Follow what the Bashate style checker recommends.
$ bashate --verbose <file>
Note: Python 3.6 is the current development choice.
Let Black format Python files for you.
$ black <file>
Trust that the linting tools (flake8 and pylint) know better and follow their advice.
$ flake8 <file> $ pylint <file>
The project is made available under the terms of the Apache 2.0 license. See LICENSE for details.