| # Copyright 2023 Jeremy Volkman. All rights reserved. |
| # Copyright 2023 The Bazel Authors. 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. |
| |
| load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") |
| |
| package(default_visibility = ["//visibility:private"]) |
| |
| py_library( |
| name = "namespace_pkgs", |
| srcs = [ |
| "namespace_pkgs.py", |
| ], |
| ) |
| |
| py_test( |
| name = "namespace_pkgs_test", |
| size = "small", |
| srcs = [ |
| "namespace_pkgs_test.py", |
| ], |
| tags = [ |
| "unit", |
| # TODO(philsc): Make this work. |
| "manual", |
| ], |
| deps = [ |
| ":namespace_pkgs", |
| ], |
| ) |
| |
| py_binary( |
| name = "wheel_installer", |
| srcs = ["wheel_installer.py"], |
| visibility = ["//visibility:public"], |
| deps = [ |
| ":namespace_pkgs", |
| # TODO(philsc): Make this work with what's available in rules_python. |
| #"@rules_pycross_pypi_deps_absl_py//:pkg", |
| #"@rules_pycross_pypi_deps_installer//:pkg", |
| ], |
| ) |