Skip to content

How can I have a py_test target use this poetry toolchain? #1

@ruidc

Description

@ruidc

my BUILD file is:

load("@rules_python//python:defs.bzl", "py_test")

py_test(
    name = "test_example",
    srcs = ["test_example.py"],
)

but when running test, it is still using the system python instead of the poetry venv, is this possible and if so can you update the README?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions