- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Drop dateutil dependency #2173
Drop dateutil dependency #2173
Conversation
This will need rebasing after #2172 is merged. |
if this_month_start.month == 12: | ||
next_month_start = this_month_start.replace(year=this_month_start.year + 1, month=1) | ||
else: | ||
next_month_start = this_month_start.replace(month=this_month_start.month + 1) |
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 think we should abstract this logic into a function that can be reused
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.
Yep, was thinking about this as well, will have a look.
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've done this (possibly could have done more, but would be rather substantial and possibly illegible so I stopped myself).
I also removed install_requires
since it's now empty after this change and the Py38 removal.
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.
It is still listed as a dependency after v36.0.0 release:
I'm not really sure why... |
Sorry, my mistake. It's been removed in v36.1.0 |
What does this change
Removes dateutil.
What was wrong
Nothing really. Dateutil is a bit less maintained and the use of it here can be done fairly easily with the standard library.
How this fixes it
Fixes #2168
Replaced usage of dateutil with stlib stuff. Changes should be covered by existing tests. Had to change one test that was referencing dateutil directly.
Could maybe argue this is backwards-incompatible if people are doing
isinstance
checks or otherwise doing something weird, but maybe that is going a bit far.Checklist
make lint