Skip to main content
Version: 0.3.x

py_library

Implementation for the py_library rule

Rules

py_library

Example usage (generated):

load("@aspect_rules_py//py/private:py_library.bzl", "py_library")

py_library(
# A unique name for this target.
name = "",
)

name

Required name.

A unique name for this target.

data

Optional list of labels. Default: []

deps

Optional list of labels. Default: []

[Must provide PyInfo][Must provide `PyWheelInfo`]

imports

Optional list of strings. Default: []

srcs

Optional list of labels. Default: []

Macros and Functions

py_library_utils.make_srcs_depset

Example usage (generated):

load("@aspect_rules_py//py/private:py_library.bzl", "py_library_utils")

py_library_utils.make_srcs_depset(
ctx = None,
)

ctx

Required.

py_library_utils.make_imports_depset

Example usage (generated):

load("@aspect_rules_py//py/private:py_library.bzl", "py_library_utils")

py_library_utils.make_imports_depset(
ctx = None,
)

ctx

Required.

py_library_utils.make_merged_runfiles

Example usage (generated):

load("@aspect_rules_py//py/private:py_library.bzl", "py_library_utils")

py_library_utils.make_merged_runfiles(
ctx = None,
)

ctx

Required.

extra_depsets

Optional. Default: []

extra_runfiles

Optional. Default: []

extra_runfiles_depsets

Optional. Default: []

py_library_utils.implementation

Example usage (generated):

load("@aspect_rules_py//py/private:py_library.bzl", "py_library_utils")

py_library_utils.implementation(
ctx = None,
)

ctx

Required.