Skip to content

Commit

Permalink
Pretty-print dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Aug 29, 2024
1 parent 0f4741f commit d9478b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/check_conda_nightly_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@ def check_env(json_path):
"Error: The following nightly packages are more than "
f"{OLD_PACKAGE_THRESHOLD_DAYS} days old:"
)
for package, date in old_packages.items():
for package, date in sorted(old_packages.items()):
date_string = date.strftime("%Y-%m-%d")
print(f" - {package}: {date_string}")
sys.exit(1)

print(f"All packages are less than {OLD_PACKAGE_THRESHOLD_DAYS} days old:")
print(rapids_package_dates)
for package, date in sorted(rapids_package_dates.items()):
date_string = date.strftime("%Y-%m-%d")
print(f" - {package}: {date_string}")


if __name__ == "__main__":
Expand Down

0 comments on commit d9478b4

Please sign in to comment.