blob: a396488d3df63b48c39dc982453ace04a7506766 [file] [log] [blame]
load("//python:defs.bzl", "py_binary", "py_library", "py_test")
load("//python/pip_install:repositories.bzl", "requirement")
py_library(
name = "lib",
srcs = [
"arguments.py",
"namespace_pkgs.py",
"wheel.py",
"wheel_installer.py",
],
visibility = ["//third_party/rules_pycross/pycross/private:__subpackages__"],
deps = [
requirement("installer"),
requirement("pip"),
requirement("packaging"),
requirement("setuptools"),
],
)
py_binary(
name = "wheel_installer",
srcs = [
"wheel_installer.py",
],
deps = [":lib"],
)
py_test(
name = "arguments_test",
size = "small",
srcs = [
"arguments_test.py",
],
deps = [
":lib",
],
)
py_test(
name = "namespace_pkgs_test",
size = "small",
srcs = [
"namespace_pkgs_test.py",
],
deps = [
":lib",
],
)
py_test(
name = "wheel_test",
size = "small",
srcs = [
"wheel_test.py",
],
data = ["//examples/wheel:minimal_with_py_package"],
deps = [
":lib",
],
)
py_test(
name = "wheel_installer_test",
size = "small",
srcs = [
"wheel_installer_test.py",
],
data = ["//examples/wheel:minimal_with_py_package"],
deps = [
":lib",
],
)
filegroup(
name = "distribution",
srcs = glob(
["*"],
exclude = ["*_test.py"],
),
visibility = ["//python/pip_install:__subpackages__"],
)
filegroup(
name = "py_srcs",
srcs = glob(
include = ["**/*.py"],
exclude = ["**/*_test.py"],
),
visibility = ["//python/pip_install:__subpackages__"],
)