|
1 | | -py_library( |
2 | | - name = "expect_absl_installed", |
3 | | - # This is a dummy rule used as a absl dependency in open-source. |
4 | | - # We expect absl to already be installed on the system, e.g. via |
5 | | - # `pip install absl` |
6 | | - visibility = ["//visibility:public"], |
7 | | - deps = [], |
8 | | -) |
9 | | - |
10 | | -py_library( |
11 | | - name = "expect_h5py_installed", |
12 | | - # This is a dummy rule used as a h5 dependency in open-source. |
13 | | - # We expect h5py to already be installed on the system, e.g. via |
14 | | - # `pip install h5py' |
15 | | - visibility = ["//visibility:public"], |
16 | | - deps = [], |
17 | | -) |
18 | | - |
19 | | -py_library( |
20 | | - name = "expect_numpy_installed", |
21 | | - # This is a dummy rule used as a numpy dependency in open-source. |
22 | | - # We expect numpy to already be installed on the system, e.g. via |
23 | | - # `pip install numpy` |
24 | | - visibility = ["//visibility:public"], |
25 | | - deps = [], |
26 | | -) |
27 | | - |
28 | | -py_library( |
29 | | - name = "expect_pandas_installed", |
30 | | - # This is a dummy rule used as a pandas dependency in open-source. |
31 | | - # We expect pandas to already be installed on the system, e.g. via |
32 | | - # `pip install pandas' |
33 | | - visibility = ["//visibility:public"], |
34 | | - deps = [], |
35 | | -) |
36 | | - |
37 | | -py_library( |
38 | | - name = "expect_pillow_installed", |
39 | | - # This is a dummy rule used as a pillow dependency in open-source. |
40 | | - # We expect pillow to already be installed on the system, e.g. via |
41 | | - # `pip install Pillow' |
42 | | - visibility = ["//visibility:public"], |
43 | | - deps = [], |
44 | | -) |
45 | | - |
46 | | -# Note that this dependency is for testing only. |
47 | | -py_library( |
48 | | - name = "expect_portpicker_installed", |
49 | | - # This is a dummy rule used as a pandas dependency in open-source. |
50 | | - # We expect portpicker to already be installed on the system, e.g. via |
51 | | - # `pip install portpicker' |
52 | | - visibility = ["//visibility:public"], |
53 | | - deps = [], |
54 | | -) |
55 | | - |
56 | | -py_library( |
57 | | - name = "expect_pydot_installed", |
58 | | - # This is a dummy rule used as a pydot dependency in open-source. |
59 | | - # We expect pydot to already be installed on the system, e.g. via |
60 | | - # `pip install pydot' |
61 | | - visibility = ["//visibility:public"], |
62 | | - deps = [], |
63 | | -) |
64 | | - |
65 | | -py_library( |
66 | | - name = "expect_scipy_installed", |
67 | | - # This is a dummy rule used as a scipy dependency in open-source. |
68 | | - # We expect scipy to already be installed on the system, e.g. via |
69 | | - # `pip install scipy' |
70 | | - visibility = ["//visibility:public"], |
71 | | - deps = [], |
72 | | -) |
73 | | - |
74 | | -py_library( |
75 | | - name = "expect_six_installed", |
76 | | - # This is a dummy rule used as a six dependency in open-source. |
77 | | - # We expect six to already be installed on the system, e.g. via |
78 | | - # `pip install six` |
79 | | - visibility = ["//visibility:public"], |
80 | | - deps = [], |
81 | | -) |
82 | | - |
83 | | -py_library( |
84 | | - name = "expect_tensorboard_installed", |
85 | | - # This is a dummy rule used as a tensorboard dependency in open-source. |
86 | | - # We expect tensorboard to already be installed on the system, e.g. via |
87 | | - # `pip install tensorflow` |
88 | | - visibility = ["//visibility:public"], |
89 | | - deps = [], |
90 | | -) |
91 | | - |
92 | | -py_library( |
93 | | - name = "expect_tensorflow_installed", |
94 | | - # This is a dummy rule used as a tensorflow dependency in open-source. |
95 | | - # We expect tensorflow to already be installed on the system, e.g. via |
96 | | - # `pip install tensorflow` |
97 | | - visibility = ["//visibility:public"], |
98 | | - deps = [], |
99 | | -) |
100 | | - |
101 | | -py_library( |
102 | | - name = "expect_yaml_installed", |
103 | | - # This is a dummy rule used as a yaml dependency in open-source. |
104 | | - # We expect yaml to already be installed on the system, e.g. via |
105 | | - # `pip install yaml` |
106 | | - visibility = ["//visibility:public"], |
107 | | - deps = [], |
108 | | -) |
109 | | - |
110 | | -# Note that this dependency is for testing only. |
111 | | -py_library( |
112 | | - name = "expect_tensorflow_io_installed", |
113 | | - # This is a dummy rule used as a tensorflow_io dependency in open-source. |
114 | | - # We expect tensorflow_io to already be installed on the system, e.g. via |
115 | | - # `pip install tensorflow-io` |
116 | | - visibility = ["//visibility:public"], |
117 | | - deps = [], |
| 1 | +load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") |
| 2 | +load("@python//:defs.bzl", "compile_pip_requirements") |
| 3 | +load("@python_version_repo//:py_version.bzl", "REQUIREMENTS") |
| 4 | +load( |
| 5 | + "@xla//third_party/py:py_import.bzl", |
| 6 | + "py_import", |
| 7 | +) |
| 8 | + |
| 9 | +compile_pip_requirements( |
| 10 | + name = "requirements", |
| 11 | + extra_args = [ |
| 12 | + "--allow-unsafe", |
| 13 | + "--build-isolation", |
| 14 | + "--rebuild", |
| 15 | + ], |
| 16 | + generate_hashes = True, |
| 17 | + requirements_in = "requirements.in", |
| 18 | + requirements_txt = REQUIREMENTS, |
| 19 | +) |
| 20 | + |
| 21 | +py_import( |
| 22 | + name = "tf_nightly_with_deps", |
| 23 | + wheel = "@pypi//tf_nightly:whl", |
| 24 | + wheel_deps = if_cuda([ |
| 25 | + "@pypi_nvidia_cublas_cu12//:pkg", |
| 26 | + "@pypi_nvidia_cuda_cupti_cu12//:pkg", |
| 27 | + "@pypi_nvidia_cuda_nvrtc_cu12//:pkg", |
| 28 | + "@pypi_nvidia_cuda_runtime_cu12//:pkg", |
| 29 | + "@pypi_nvidia_cudnn_cu12//:pkg", |
| 30 | + "@pypi_nvidia_cufft_cu12//:pkg", |
| 31 | + "@pypi_nvidia_curand_cu12//:pkg", |
| 32 | + "@pypi_nvidia_cusolver_cu12//:pkg", |
| 33 | + "@pypi_nvidia_cusparse_cu12//:pkg", |
| 34 | + "@pypi_nvidia_nccl_cu12//:pkg", |
| 35 | + "@pypi_nvidia_nvjitlink_cu12//:pkg", |
| 36 | + ]), |
| 37 | + deps = [ |
| 38 | + "@pypi_absl_py//:pkg", |
| 39 | + "@pypi_astunparse//:pkg", |
| 40 | + "@pypi_flatbuffers//:pkg", |
| 41 | + "@pypi_gast//:pkg", |
| 42 | + "@pypi_ml_dtypes//:pkg", |
| 43 | + "@pypi_numpy//:pkg", |
| 44 | + "@pypi_opt_einsum//:pkg", |
| 45 | + "@pypi_packaging//:pkg", |
| 46 | + "@pypi_protobuf//:pkg", |
| 47 | + "@pypi_requests//:pkg", |
| 48 | + "@pypi_tensorboard_data_server//:pkg", |
| 49 | + "@pypi_termcolor//:pkg", |
| 50 | + "@pypi_typing_extensions//:pkg", |
| 51 | + "@pypi_wrapt//:pkg", |
| 52 | + ], |
118 | 53 | ) |
0 commit comments