Skip to content

Commit b29e721

Browse files
Johannes Ballécopybara-github
authored andcommitted
Minor updates to build system.
PiperOrigin-RevId: 437864517 Change-Id: I941bf37463410af6965b29e98dcb7858adcb83dc
1 parent ddea411 commit b29e721

File tree

8 files changed

+8
-40
lines changed

8 files changed

+8
-40
lines changed

BUILD

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package(
2-
default_visibility = ["//visibility:private"],
2+
default_visibility = ["//visibility:public"],
33
)
44

55
licenses(["notice"])
@@ -9,7 +9,6 @@ exports_files(["LICENSE"])
99
py_library(
1010
name = "tensorflow_compression",
1111
srcs = ["tensorflow_compression/__init__.py"],
12-
srcs_version = "PY3",
1312
visibility = ["//visibility:public"],
1413
deps = [
1514
"//tensorflow_compression/python/datasets:y4m_dataset",
@@ -33,6 +32,11 @@ py_library(
3332
],
3433
)
3534

35+
py_binary(
36+
name = "build_docs",
37+
srcs = ["build_docs.py"],
38+
)
39+
3640
py_binary(
3741
name = "build_pip_pkg",
3842
srcs = ["build_pip_pkg.py"],
@@ -51,5 +55,4 @@ py_binary(
5155
"//tensorflow_compression/python/ops:py_src",
5256
"//tensorflow_compression/python/util:py_src",
5357
],
54-
python_version = "PY3",
5558
)

tensorflow_compression/cc/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package(default_visibility = ["//visibility:public"])
2+
13
licenses(["notice"]) # Apache 2.0
24

35
cc_binary(

tensorflow_compression/python/datasets/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ licenses(["notice"])
77
py_library(
88
name = "y4m_dataset",
99
srcs = ["y4m_dataset.py"],
10-
srcs_version = "PY3",
1110
deps = ["//tensorflow_compression/python/ops:gen_ops"],
1211
)
1312

1413
py_test(
1514
name = "y4m_dataset_test",
1615
srcs = ["y4m_dataset_test.py"],
17-
python_version = "PY3",
1816
deps = [":y4m_dataset"],
1917
)
2018

tensorflow_compression/python/distributions/BUILD

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_library(
88
name = "deep_factorized",
99
srcs = ["deep_factorized.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
":helpers",
1312
":uniform_noise",
@@ -17,7 +16,6 @@ py_library(
1716
py_test(
1817
name = "deep_factorized_test",
1918
srcs = ["deep_factorized_test.py"],
20-
python_version = "PY3",
2119
deps = [
2220
":deep_factorized",
2321
":helpers",
@@ -27,13 +25,11 @@ py_test(
2725
py_library(
2826
name = "helpers",
2927
srcs = ["helpers.py"],
30-
srcs_version = "PY3",
3128
)
3229

3330
py_test(
3431
name = "helpers_test",
3532
srcs = ["helpers_test.py"],
36-
python_version = "PY3",
3733
deps = [
3834
":deep_factorized",
3935
":helpers",
@@ -43,14 +39,12 @@ py_test(
4339
py_library(
4440
name = "uniform_noise",
4541
srcs = ["uniform_noise.py"],
46-
srcs_version = "PY3",
4742
deps = [":helpers"],
4843
)
4944

5045
py_test(
5146
name = "uniform_noise_test",
5247
srcs = ["uniform_noise_test.py"],
53-
python_version = "PY3",
5448
deps = [
5549
":helpers",
5650
":uniform_noise",
@@ -60,7 +54,6 @@ py_test(
6054
py_library(
6155
name = "round_adapters",
6256
srcs = ["round_adapters.py"],
63-
srcs_version = "PY3",
6457
deps = [
6558
":deep_factorized",
6659
":helpers",
@@ -72,7 +65,6 @@ py_library(
7265
py_test(
7366
name = "round_adapters_test",
7467
srcs = ["round_adapters_test.py"],
75-
python_version = "PY3",
7668
deps = [
7769
":deep_factorized",
7870
":round_adapters",

tensorflow_compression/python/entropy_models/BUILD

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_library(
88
name = "continuous_base",
99
srcs = ["continuous_base.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_compression/python/distributions:helpers",
1312
"//tensorflow_compression/python/ops:gen_ops",
@@ -17,7 +16,6 @@ py_library(
1716
py_library(
1817
name = "continuous_batched",
1918
srcs = ["continuous_batched.py"],
20-
srcs_version = "PY3",
2119
deps = [
2220
":continuous_base",
2321
"//tensorflow_compression/python/distributions:helpers",
@@ -30,7 +28,6 @@ py_library(
3028
py_test(
3129
name = "continuous_batched_test",
3230
srcs = ["continuous_batched_test.py"],
33-
python_version = "PY3",
3431
deps = [
3532
":continuous_batched",
3633
"//tensorflow_compression/python/distributions:uniform_noise",
@@ -40,7 +37,6 @@ py_test(
4037
py_library(
4138
name = "continuous_indexed",
4239
srcs = ["continuous_indexed.py"],
43-
srcs_version = "PY3",
4440
deps = [
4541
":continuous_base",
4642
"//tensorflow_compression/python/ops:gen_ops",
@@ -53,7 +49,6 @@ py_test(
5349
name = "continuous_indexed_test",
5450
timeout = "long",
5551
srcs = ["continuous_indexed_test.py"],
56-
python_version = "PY3",
5752
shard_count = 6,
5853
deps = [
5954
":continuous_indexed",
@@ -64,7 +59,6 @@ py_test(
6459
py_library(
6560
name = "universal",
6661
srcs = ["universal.py"],
67-
srcs_version = "PY3",
6862
deps = [
6963
":continuous_base",
7064
"//tensorflow_compression/python/ops:gen_ops",
@@ -75,7 +69,6 @@ py_library(
7569
py_test(
7670
name = "universal_test",
7771
srcs = ["universal_test.py"],
78-
python_version = "PY3",
7972
shard_count = 3,
8073
deps = [
8174
":universal",

tensorflow_compression/python/layers/BUILD

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ licenses(["notice"])
77
py_library(
88
name = "gdn",
99
srcs = ["gdn.py"],
10-
srcs_version = "PY3",
1110
deps = [":parameters"],
1211
)
1312

1413
py_test(
1514
name = "gdn_test",
1615
srcs = ["gdn_test.py"],
17-
python_version = "PY3",
1816
deps = [
1917
":gdn",
2018
":parameters",
@@ -24,34 +22,29 @@ py_test(
2422
py_library(
2523
name = "initializers",
2624
srcs = ["initializers.py"],
27-
srcs_version = "PY3",
2825
)
2926

3027
py_test(
3128
name = "initializers_test",
3229
srcs = ["initializers_test.py"],
33-
python_version = "PY3",
3430
deps = [":initializers"],
3531
)
3632

3733
py_library(
3834
name = "parameters",
3935
srcs = ["parameters.py"],
40-
srcs_version = "PY3",
4136
deps = ["//tensorflow_compression/python/ops:math_ops"],
4237
)
4338

4439
py_test(
4540
name = "parameters_test",
4641
srcs = ["parameters_test.py"],
47-
python_version = "PY3",
4842
deps = [":parameters"],
4943
)
5044

5145
py_library(
5246
name = "signal_conv",
5347
srcs = ["signal_conv.py"],
54-
srcs_version = "PY3",
5548
deps = [
5649
":parameters",
5750
"//tensorflow_compression/python/ops:padding_ops",
@@ -62,7 +55,6 @@ py_test(
6255
name = "signal_conv_test",
6356
timeout = "long",
6457
srcs = ["signal_conv_test.py"],
65-
python_version = "PY3",
6658
shard_count = 3,
6759
deps = [
6860
":initializers",
@@ -74,14 +66,12 @@ py_test(
7466
py_library(
7567
name = "soft_round",
7668
srcs = ["soft_round.py"],
77-
srcs_version = "PY3",
7869
deps = ["//tensorflow_compression/python/ops:round_ops"],
7970
)
8071

8172
py_test(
8273
name = "soft_round_test",
8374
srcs = ["soft_round_test.py"],
84-
python_version = "PY3",
8575
deps = [
8676
":soft_round",
8777
"//tensorflow_compression/python/ops:round_ops",

tensorflow_compression/python/ops/BUILD

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ py_library(
88
name = "gen_ops",
99
srcs = ["gen_ops.py"],
1010
data = ["//tensorflow_compression/cc:libtensorflow_compression.so"],
11-
srcs_version = "PY3",
1211
)
1312

1413
py_library(
1514
name = "math_ops",
1615
srcs = ["math_ops.py"],
17-
srcs_version = "PY3",
1816
)
1917

2018
py_test(
2119
name = "math_ops_test",
2220
srcs = ["math_ops_test.py"],
23-
python_version = "PY3",
2421
deps = [
2522
":math_ops",
2623
":round_ops",
@@ -30,33 +27,28 @@ py_test(
3027
py_library(
3128
name = "padding_ops",
3229
srcs = ["padding_ops.py"],
33-
srcs_version = "PY3",
3430
)
3531

3632
py_test(
3733
name = "padding_ops_test",
3834
srcs = ["padding_ops_test.py"],
39-
python_version = "PY3",
4035
deps = [":padding_ops"],
4136
)
4237

4338
py_test(
4439
name = "range_coding_ops_test",
4540
srcs = ["range_coding_ops_test.py"],
46-
python_version = "PY3",
4741
deps = [":gen_ops"],
4842
)
4943

5044
py_library(
5145
name = "round_ops",
5246
srcs = ["round_ops.py"],
53-
srcs_version = "PY3",
5447
)
5548

5649
py_test(
5750
name = "round_ops_test",
5851
srcs = ["round_ops_test.py"],
59-
python_version = "PY3",
6052
deps = [":round_ops"],
6153
)
6254

tensorflow_compression/python/util/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ licenses(["notice"])
77
py_library(
88
name = "packed_tensors",
99
srcs = ["packed_tensors.py"],
10-
srcs_version = "PY3",
1110
)
1211

1312
py_test(
1413
name = "packed_tensors_test",
1514
srcs = ["packed_tensors_test.py"],
16-
python_version = "PY3",
1715
deps = [":packed_tensors"],
1816
)
1917

0 commit comments

Comments
 (0)