Skip to content

Commit

Permalink
Collect .conda packages in glob for upload (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Aug 30, 2024
1 parent 2b3d27e commit e94044f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/rapids-find-anaconda-uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def file_filter_fn(file_path):

if __name__ == "__main__":
directory_to_search = sys.argv[1]
tar_files = glob.glob(f"{directory_to_search}/**/*.tar.bz2", recursive=True)
conda_pkgs = (
glob.glob(f"{directory_to_search}/**/*.conda", recursive=True) +
glob.glob(f"{directory_to_search}/**/*.tar.bz2", recursive=True)
)

filtered_list = list(filter(file_filter_fn, tar_files))
filtered_list = list(filter(file_filter_fn, conda_pkgs))
print("\n".join(filtered_list))

0 comments on commit e94044f

Please sign in to comment.