Home | History | Annotate | Download | only in httplib2
      1 // Copyright 2018 Google Inc. All rights reserved.
      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 
     15 filegroup {
     16     // "cacerts.txt" are identical save for the fact that py3 cacerts.txt has
     17     // a newline at the end while py2 cacerts.txt doesn't.
     18     name: "cacert_data",
     19     srcs: ["python3/httplib2/cacerts.txt"],
     20     path: "python3/httplib2",
     21 }
     22 
     23 filegroup {
     24     name: "py2_httplib2_srcs",
     25     srcs: ["python2/httplib2/*.py"],
     26     path: "python2/httplib2",
     27 }
     28 
     29 filegroup {
     30     name: "py3_httplib2_srcs",
     31     srcs: ["python3/httplib2/*.py"],
     32     path: "python3/httplib2",
     33 }
     34 
     35 python_library {
     36     name: "py-httplib2",
     37     host_supported: true,
     38     data: [":cacert_data"],
     39     pkg_path: "httplib2",
     40     version: {
     41           py2: {
     42               enabled: true,
     43               srcs: [":py2_httplib2_srcs"],
     44           },
     45           py3: {
     46               enabled: true,
     47               srcs: [":py3_httplib2_srcs"],
     48           },
     49     },
     50 }
     51