aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2022-05-31 23:07:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-31 23:07:49 +0000
commit193797f03a993187d7b0e05c6b640d4b5ac92e4a (patch)
treeae4f1765e27d72bec95c45f31b482c392fa28e1d
parent1d5e124b18204d2fd8a61668985754795fb527cf (diff)
parent22efb3393b1501a518cb2a5e601f9ffef58d1f48 (diff)
downloadportpicker-193797f03a993187d7b0e05c6b640d4b5ac92e4a.tar.gz
Add build files for portpicker am: 22efb3393b
Original change: https://android-review.googlesource.com/c/platform/external/python/portpicker/+/2112186 Change-Id: I0c1f613795f0b4c4af3a8c08814e93be92e01f5d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp44
1 files changed, 44 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..96f8529
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,44 @@
+// Copyright 2022 Google Inc. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+package {
+ default_applicable_licenses: ["external_python_portpicker_license"],
+}
+
+license {
+ name: "external_python_portpicker_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
+python_library {
+ name: "py-portpicker",
+ host_supported: true,
+ srcs: [
+ "src/portpicker.py",
+ "src/portserver.py",
+ ],
+ version: {
+ py2: {
+ enabled: false,
+ },
+ py3: {
+ enabled: true,
+ },
+ },
+}