-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBUILD.bazel
67 lines (59 loc) · 1.38 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- mode: python -*-
# vi: set ft=python :
# Copyright 2020-2024 Massachusetts Institute of Technology.
# Licensed under the BSD 3-Clause License. See LICENSE.TXT for details.
load("@pip_deps//:requirements.bzl", "requirement")
load("//book/htmlbook/tools/python:defs.bzl", "rt_py_library", "rt_py_test")
load("@pip_deps//:requirements.bzl", "requirement")
rt_py_library(
name = "htmlbook",
srcs = [
"__init__.py",
"book_name.py"
],
imports = [".."],
data = [
"//:pyproject.toml",
],
visibility = ["//visibility:public"],
)
rt_py_test(
name = "install_html_meta_data",
srcs = [
"install_html_meta_data.py",
],
args = ["--read_only"],
data = [
"//book:chapters",
"//book:html",
"//:workspace",
],
deps = [
requirement("lxml"),
requirement("mysql-connector-python"),
],
tags = ["requires-network"], # for mysql.csail
)
rt_py_test(
name = "check_deepnote_requirements",
srcs = [
"check_deepnote_requirements.py",
],
data = [
"//:pyproject.toml",
"//book:deepnote",
],
deps = [
requirement("requests"),
],
tags = ["requires-network"],
)
rt_py_test(
name = "check_website",
srcs = ["check_website.py"],
deps = [
":htmlbook",
requirement("requests"),
],
tags = ["requires-network"],
)