File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 30
30
"whl/test" : "torch_test.html" ,
31
31
}
32
32
33
+ # NOTE: This refers to the name on the wheels themselves and not the name of
34
+ # package as specified by setuptools, for packages with "-" (hyphens) in their
35
+ # names you need to convert them to "_" (underscores) in order for them to be
36
+ # allowed here since the name of the wheels is compared here
33
37
PACKAGE_ALLOW_LIST = {
34
38
"Pillow" ,
35
39
"certifi" ,
36
- "charset-normalizer " ,
40
+ "charset_normalizer " ,
37
41
"cmake" ,
38
42
"filelock" ,
39
43
"idna" ,
42
46
"networkx" ,
43
47
"numpy" ,
44
48
"packaging" ,
45
- "pytorch-triton " ,
49
+ "pytorch_triton " ,
46
50
"requests" ,
47
51
"sympy" ,
48
52
"torch" ,
54
58
"torchrec" ,
55
59
"torchtext" ,
56
60
"torchvision" ,
57
- "typing-extensions " ,
61
+ "typing_extensions " ,
58
62
"urllib3" ,
59
63
}
60
64
@@ -120,13 +124,14 @@ def nightly_packages_to_show(self: S3IndexType) -> Set[str]:
120
124
full_package_name = path .basename (obj )
121
125
package_name = full_package_name .split ('-' )[0 ]
122
126
package_build_time = extract_package_build_time (full_package_name )
127
+ # Hard pass on packages that are included in our allow list
128
+ if package_name not in PACKAGE_ALLOW_LIST :
129
+ to_hide .add (obj )
130
+ continue
123
131
if packages [package_name ] >= KEEP_THRESHOLD :
124
132
to_hide .add (obj )
125
133
elif between_bad_dates (package_build_time ):
126
134
to_hide .add (obj )
127
- elif (package_name not in PACKAGE_ALLOW_LIST or
128
- package_name .replace ("-" , "_" ) not in PACKAGE_ALLOW_LIST ):
129
- to_hide .add (obj )
130
135
else :
131
136
packages [package_name ] += 1
132
137
return set (self .objects ).difference ({
You can’t perform that action at this time.
0 commit comments