38 lines
913 B
Python
38 lines
913 B
Python
load("@rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "auth",
|
|
srcs = [
|
|
"auth.go",
|
|
"service.go",
|
|
"verifier.go",
|
|
],
|
|
importpath = "github.com/eat-pray-ai/yutu/pkg/auth",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg",
|
|
"//pkg/utils",
|
|
"@com_github_modelcontextprotocol_go_sdk//auth",
|
|
"@org_golang_google_api//option",
|
|
"@org_golang_google_api//youtube/v3:youtube",
|
|
"@org_golang_x_oauth2//:oauth2",
|
|
"@org_golang_x_oauth2//google",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "auth_test",
|
|
srcs = [
|
|
"auth_test.go",
|
|
"service_test.go",
|
|
"verifier_test.go",
|
|
],
|
|
embed = [":auth"],
|
|
deps = [
|
|
"//pkg",
|
|
"@com_github_modelcontextprotocol_go_sdk//auth",
|
|
"@org_golang_google_api//youtube/v3:youtube",
|
|
"@org_golang_x_oauth2//:oauth2",
|
|
],
|
|
)
|