File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import shutil
1111import sys
1212from pathlib import Path
13+ from zoneinfo import ZoneInfo
1314
1415from release_utils import (
1516 check_repo ,
@@ -164,7 +165,8 @@ def get_current_date() -> str:
164165 Returns:
165166 today's date.
166167 """
167- return datetime .datetime .now ().date ().isoformat () # noqa: DTZ005
168+ # This is a hack based on where the developers currently work.
169+ return datetime .datetime .now (tz = ZoneInfo ("America/Los_Angeles" )).date ().isoformat ()
168170
169171
170172def build_and_locally_deploy_maven () -> None :
Original file line number Diff line number Diff line change @@ -579,20 +579,25 @@ def get_announcement_email(version: str) -> str:
579579 Returns:
580580 the template for the e-mail announcing a new release of the Checker Framework.
581581 """
582- return f"""
582+ return (
583+ f"""
583584To: checker-framework-discuss@googlegroups.com
584585Subject: Release { version } of the Checker Framework
585586
586587We have released a new version of the Checker Framework.
587- The Checker Framework lets you create and/or run pluggable type checkers, in order to detect and prevent bugs in your code.
588+ The Checker Framework lets you create and/or run pluggable type checkers, """
589+ f"""in order to detect and prevent bugs in your code.
588590
589591You can find documentation and download links at:
590592https://CheckerFramework.org/
591593
592594Changes for Checker Framework version { version } :
593595
594- <<Insert latest Checker Framework changelog entry from https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md, preserving its formatting.>>
595- """ # noqa: E501
596+ <<Insert latest Checker Framework changelog entry from """
597+ """https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md, """
598+ """preserving its formatting.>>
599+ """
600+ )
596601
597602
598603# =========================================================================================
You can’t perform that action at this time.
0 commit comments