File tree Expand file tree Collapse file tree 3 files changed +1
-28
lines changed
examples/pip_repository_annotations Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ write_file(
34
34
copy_executables = {"@pip_repository_annotations_example//:data/copy_executable.py" : "copied_content/executable.py" },
35
35
copy_files = {"@pip_repository_annotations_example//:data/copy_file.txt" : "copied_content/file.txt" },
36
36
data = [":generated_file" ],
37
- data_exclude_glob = ["*.dist-info/RECORD" ],
38
37
),
39
38
}
40
39
Original file line number Diff line number Diff line change @@ -64,33 +64,6 @@ def test_copy_executables(self):
64
64
stdout = proc .stdout .decode ("utf-8" ).strip ()
65
65
self .assertEqual (stdout , "Hello world from copied executable" )
66
66
67
- def test_data_exclude_glob (self ):
68
- current_wheel_version = "0.37.1"
69
-
70
- r = runfiles .Create ()
71
- dist_info_dir = (
72
- "pip_repository_annotations_example/external/{}/wheel-{}.dist-info" .format (
73
- self .wheel_pkg_dir (),
74
- current_wheel_version ,
75
- )
76
- )
77
-
78
- # `WHEEL` is expected to be there to show dist-info files are included in the runfiles
79
- wheel_path = r .Rlocation ("{}/WHEEL" .format (dist_info_dir ))
80
-
81
- # However, `RECORD` was explicitly excluded, so it should be missing
82
- record_path = r .Rlocation ("{}/RECORD" .format (dist_info_dir ))
83
-
84
- # Because windows does not have `--enable_runfiles` on by default, the
85
- # `runfiles.Rlocation` results will be different on this platform vs
86
- # unix platforms. See `@rules_python//python/runfiles` for more details.
87
- if platform .system () == "Windows" :
88
- self .assertIsNotNone (wheel_path )
89
- self .assertIsNone (record_path )
90
- else :
91
- self .assertTrue (Path (wheel_path ).exists ())
92
- self .assertFalse (Path (record_path ).exists ())
93
-
94
67
95
68
if __name__ == "__main__" :
96
69
unittest .main ()
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ def generate_build_file_contents(
145
145
"*.whl" ,
146
146
"**/__pycache__/**" ,
147
147
"**/* *" ,
148
+ "**/*.dist-info/**" ,
148
149
"**/*.py" ,
149
150
"**/*.pyc" ,
150
151
"BUILD.bazel" ,
You can’t perform that action at this time.
0 commit comments