blob: 3891566f1cd38088e0be9525a23787c9d8da1355 [file] [log] [blame]
Jim Tangec94b162018-05-04 07:17:23 +00001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
yangbill78ef63e2018-08-31 00:11:25 +080015python_defaults {
16 name: "atest_lib_default",
17 pkg_path: "atest",
18 version: {
19 py2: {
20 enabled: false,
21 embedded_launcher: false,
22 },
23 py3: {
24 enabled: true,
25 embedded_launcher: false,
26 },
27 },
28}
29
yangbill7a481202018-10-23 16:20:02 +080030// Remove this defaults after python3 migration is finished.
31python_defaults {
32 name: "atest_py2_default",
33 pkg_path: "atest",
34 version: {
35 py2: {
36 enabled: true,
37 embedded_launcher: false,
38 },
39 py3: {
40 enabled: false,
41 embedded_launcher: false,
42 },
43 },
44}
45
Jim Tangec94b162018-05-04 07:17:23 +000046python_binary_host {
47 name: "atest",
48 main: "atest.py",
49 srcs: [
50 "**/*.py",
51 ],
52 exclude_srcs: [
53 "*_unittest.py",
54 "*/*_unittest.py",
55 ],
yangbill7a481202018-10-23 16:20:02 +080056 defaults: ["atest_py2_default"],
Jim Tangec94b162018-05-04 07:17:23 +000057}
yangbill78ef63e2018-08-31 00:11:25 +080058
59python_library_host {
60 name: "atest_module_info",
61 defaults: ["atest_lib_default"],
62 srcs: [
63 "module_info.py",
64 "atest_utils.py",
65 "constants.py",
66 "constants_default.py"
67 ],
68}