-
Notifications
You must be signed in to change notification settings - Fork 720
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
Update release script based on new stabilization date #13140
base: master
Are you sure you want to change the base?
Update release script based on new stabilization date #13140
Conversation
Code Climate has analyzed commit f49cfc6 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 62.1% (0.0% change). View more on Code Climate. |
first_day_weekday = first_day_of_month.weekday() | ||
first_monday_date = 1 + (0 - first_day_weekday) % 7 | ||
third_monday_date = first_monday_date + 14 | ||
return datetime(year, month, third_monday_date) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add time zone info
return datetime(year, month, third_monday_date) | |
return datetime(year, month, third_monday_date, tzinfo=UTC) |
Otherwise you will get TypeError: can't compare offset-naive and offset-aware datetimes
on line 366.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version of Python are you using? Using 3.11 and 3.13 I'm running into this and this suggested change causes more issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use Python 3.13.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On line 366 you compare the returned value with now
which is now = datetime.now(UTC)
. Happens only if the month is greater than 9 therefore in Q4.
Description:
Since #13119 has been merged we should update the helper script to match.
Rationale:
Keeping helper scripts up-to-date with policies.
Review Hints:
./utils/release_helper.py stats