Skip to content

s3_management: Add PACKAGE_ALLOW_LIST for indices #1259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion s3_management/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@
"whl/test": "torch_test.html",
}

PACKAGE_ALLOW_LIST = {
"Pillow",
"certifi",
"charset-normalizer",
"cmake",
"filelock",
"idna",
"mpmath",
"nestedtensor",
"networkx",
"numpy",
"packaging",
"pytorch-triton",
"requests",
"sympy",
"torch",
"torcharrow",
"torchaudio",
"torchcsprng",
"torchdata",
"torchdistx",
"torchrec",
"torchtext",
"torchvision",
"typing-extensions",
"urllib3",
}

# Should match torch-2.0.0.dev20221221+cu118-cp310-cp310-linux_x86_64.whl as:
# Group 1: torch-2.0.0.dev
# Group 2: 20221221
Expand Down Expand Up @@ -96,7 +124,7 @@ def nightly_packages_to_show(self: S3IndexType) -> Set[str]:
to_hide.add(obj)
elif between_bad_dates(package_build_time):
to_hide.add(obj)
elif "torchtriton" in package_name:
elif package_name not in PACKAGE_ALLOW_LIST:
to_hide.add(obj)
else:
packages[package_name] += 1
Expand Down