aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-09-16 10:25:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-09-16 10:25:55 +0000
commit41143aa793bfd58c202747b879236d505bce8a09 (patch)
tree19d9c2adcf3e3132cbc287c9a45912e5be4a871b
parent06021315db2045a82e02480af1a85b55fb56c5fe (diff)
parentcfc29102335c413bb07155f1fc806543dd7d1abe (diff)
downloadcachetools-41143aa793bfd58c202747b879236d505bce8a09.tar.gz
Move py-cachetools to src folder am: c9b01f8f0f am: e0f6cd8182 am: 1036d9ce78 am: cfc2910233
Original change: https://android-review.googlesource.com/c/platform/external/python/cachetools/+/2219104 Change-Id: If92bb6fef8604faa21139823bbee7b35009a79a9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp16
-rw-r--r--src/Android.bp33
2 files changed, 33 insertions, 16 deletions
diff --git a/Android.bp b/Android.bp
index ce99854..8fd6a83 100644
--- a/Android.bp
+++ b/Android.bp
@@ -28,19 +28,3 @@ license {
"LICENSE",
],
}
-
-python_library {
- name: "py-cachetools",
- host_supported: true,
- srcs: [
- "src/cachetools/*.py",
- ],
- version: {
- py2: {
- enabled: true,
- },
- py3: {
- enabled: true,
- },
- },
-}
diff --git a/src/Android.bp b/src/Android.bp
new file mode 100644
index 0000000..8782f35
--- /dev/null
+++ b/src/Android.bp
@@ -0,0 +1,33 @@
+// Copyright 2021 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_cachetools_license"],
+}
+
+python_library {
+ name: "py-cachetools",
+ host_supported: true,
+ srcs: [
+ "cachetools/*.py",
+ ],
+ version: {
+ py2: {
+ enabled: true,
+ },
+ py3: {
+ enabled: true,
+ },
+ },
+}