arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[Question] Can remove `dateutil` from dependency?

Open isac322 opened this issue 3 years ago • 3 comments

Feature Request

Python 3.9 introduced ZoneInfo and it backported 3.6+ (https://pypi.org/project/backports.zoneinfo/). Looking at the code, except for dateutil.rrule and dateutil.relativedelta, it seems that dateutil is being used for some reason related to timezone. Can ZoneInfo replace the part and delete dateutil?

isac322 avatar Feb 21 '22 14:02 isac322

@jadchaar, @krisfremen and @systemcatch are more well-versed on this than I am. From what I recall, there was talk about removing dateutil as dependency earlier last year.

anishnya avatar Feb 22 '22 02:02 anishnya

Yup, it would be great to lose a dependency wit ZoneInfo, but we'd need to port over rrule and relativedelta or find potential alternatives before dropping the library. A PR would be appreciate @isac322 :)!

jadchaar avatar Feb 22 '22 03:02 jadchaar

Related to: https://github.com/arrow-py/arrow/issues/825 https://github.com/arrow-py/arrow/issues/825

jadchaar avatar Feb 22 '22 03:02 jadchaar