arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.64k stars 667 forks source link

[Question] Can remove `dateutil` from dependency? #1094

Open isac322 opened 2 years ago

isac322 commented 2 years ago

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?

anishnya commented 2 years ago

@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.

jadchaar commented 2 years ago

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 commented 2 years ago

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