1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "tools_treble_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["tools_treble_license"], 8} 9 10python_defaults { 11 name: "fetcher-defaults", 12 version: { 13 py2: { 14 enabled: false, 15 embedded_launcher: false, 16 }, 17 py3: { 18 enabled: true, 19 embedded_launcher: false, 20 }, 21 }, 22} 23 24 25python_library_host { 26 name: "fetcher-lib", 27 defaults: ["fetcher-defaults"], 28 srcs: [ 29 "fetcher_lib.py" 30 ], 31 pkg_path: "treble/fetcher", 32 libs: [ 33 "py-google-api-python-client", 34 "py-oauth2client", 35 "py-six", 36 ], 37} 38 39python_binary_host { 40 name: "fetcher", 41 main: "fetcher.py", 42 defaults: ["fetcher-defaults"], 43 srcs: [ 44 "fetcher.py", 45 ], 46 libs: [ 47 "fetcher-lib", 48 ], 49} 50