1*60517a1eSAndroid Build Coastguard Worker# Copyright 2017 The Bazel Authors. All rights reserved. 2*60517a1eSAndroid Build Coastguard Worker# 3*60517a1eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*60517a1eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*60517a1eSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*60517a1eSAndroid Build Coastguard Worker# 7*60517a1eSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*60517a1eSAndroid Build Coastguard Worker# 9*60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*60517a1eSAndroid Build Coastguard Worker# limitations under the License. 14*60517a1eSAndroid Build Coastguard Worker"""Rules for pip integration. 15*60517a1eSAndroid Build Coastguard Worker 16*60517a1eSAndroid Build Coastguard WorkerThis contains a set of rules that are used to support inclusion of third-party 17*60517a1eSAndroid Build Coastguard Workerdependencies via fully locked `requirements.txt` files. Some of the exported 18*60517a1eSAndroid Build Coastguard Workersymbols should not be used and they are either undocumented here or marked as 19*60517a1eSAndroid Build Coastguard Workerfor internal use only. 20*60517a1eSAndroid Build Coastguard Worker""" 21*60517a1eSAndroid Build Coastguard Worker 22*60517a1eSAndroid Build Coastguard Workerload("//python/private:normalize_name.bzl", "normalize_name") 23*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:multi_pip_parse.bzl", _multi_pip_parse = "multi_pip_parse") 24*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:package_annotation.bzl", _package_annotation = "package_annotation") 25*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:pip_compile.bzl", "pip_compile") 26*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:pip_repository.bzl", "pip_repository") 27*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:whl_library_alias.bzl", _whl_library_alias = "whl_library_alias") 28*60517a1eSAndroid Build Coastguard Workerload("//python/private/whl_filegroup:whl_filegroup.bzl", _whl_filegroup = "whl_filegroup") 29*60517a1eSAndroid Build Coastguard Worker 30*60517a1eSAndroid Build Coastguard Workercompile_pip_requirements = pip_compile 31*60517a1eSAndroid Build Coastguard Workerpackage_annotation = _package_annotation 32*60517a1eSAndroid Build Coastguard Workerpip_parse = pip_repository 33*60517a1eSAndroid Build Coastguard Workerwhl_filegroup = _whl_filegroup 34*60517a1eSAndroid Build Coastguard Worker 35*60517a1eSAndroid Build Coastguard Worker# Extra utilities visible to rules_python users. 36*60517a1eSAndroid Build Coastguard Workerpip_utils = struct( 37*60517a1eSAndroid Build Coastguard Worker normalize_name = normalize_name, 38*60517a1eSAndroid Build Coastguard Worker) 39*60517a1eSAndroid Build Coastguard Worker 40*60517a1eSAndroid Build Coastguard Worker# The following are only exported here because they are used from 41*60517a1eSAndroid Build Coastguard Worker# multi_toolchain_aliases repository_rule, not intended for public use. 42*60517a1eSAndroid Build Coastguard Worker# 43*60517a1eSAndroid Build Coastguard Worker# See ./private/toolchains_repo.bzl 44*60517a1eSAndroid Build Coastguard Workermulti_pip_parse = _multi_pip_parse 45*60517a1eSAndroid Build Coastguard Workerwhl_library_alias = _whl_library_alias 46