blob: 85790e5fdbcefaef27f955532a24cda578caf548 [file] [log] [blame]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("@pip//:requirements.bzl", "requirement")
py_test(
name = "pip_test",
size = "small",
srcs = ["pip_test.py"],
python_version = "PY3",
deps = [requirement("pylint")],
)
py_test(
name = "python3_test",
size = "small",
srcs = ["python3_test.py"],
data = ["testdata/example.txt"],
python_version = "PY3",
deps = ["@rules_python//python/runfiles"],
)
compile_pip_requirements(
name = "requirements",
requirements_in = "requirements.txt",
requirements_txt = "requirements_lock.txt",
)
alias(
name = "update_packages",
actual = "requirements.update",
)