platform_build_soong/python
Ronald Braunstein c4cd7a11a1 Implement test-only for python_ rules
Similar to: aosp/3040036 and aosp/3035329, implements a test-only
property for python_library and sets it for python_host.

This combined with aosp/3045317 produces:
	gqui from  "flatten(~/aosp-main-with-phones/out/soong/ownership/all_teams.pb, teams)" proto ~/aosp-main-with-phones/build/soong/android/team_proto/team.proto:AllTeams 'select teams.kind, count(*) total, sum(teams.test_only) as test_only, sum(teams.top_level_target) as top_level, where teams.kind like "%py%"  group by teams.kind'
	+-----------------------------+-------+-----------+-----------+
	|         teams.kind          | total | test_only | top_level |
	+-----------------------------+-------+-----------+-----------+
	| cpython3_cc_defaults        |     1 |         0 |         0 |
	| cpython3_cc_prebuilt_binary |     4 |         0 |         0 |
	| python_binary_host          |   222 |         0 |         0 |
	| python_defaults             |    27 |         0 |         0 |
	| python_library              |    38 |         0 |         0 |
	| python_library_host         |   131 |         0 |         0 |
	| python_test                 |     5 |         5 |         5 |
	| python_test_host            |   172 |       172 |       172 |
	+-----------------------------+-------+-----------+-----------+

Change-Id: Iea14fcdbfd782d37ac0a3c780820deeed5f1923d
Test: m blueprint_tests
Test: go test ./python
2024-04-16 17:09:43 -07:00
..
scripts Improve errors when compiling python code 2024-03-28 17:31:21 -07:00
tests Skip py2-cmd tests on Mac 2023-08-22 18:41:25 -04:00
Android.bp Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
binary.go Revert "Make embedded_launcher true by default" 2024-04-11 16:10:00 +00:00
builder.go Prepare soong for python 3.11 2023-08-16 21:47:03 -04:00
defaults.go Fix some issues in bp2build converter for python_binary_host. 2022-10-12 17:43:20 -07:00
library.go Refactor python rules 2023-01-25 10:40:59 -08:00
proto.go Use relative path instead of base for python proto 2023-08-15 18:33:00 +00:00
python.go Implement test-only for python_ rules 2024-04-16 17:09:43 -07:00
python_test.go Implement test-only for python_ rules 2024-04-16 17:09:43 -07:00
test.go Implement test-only for python_ rules 2024-04-16 17:09:43 -07:00
testing.go Add preparers for python 2021-03-17 23:56:29 +00:00