From be4becf6bc50f305cb3d1735ce188f235f8f7493 Mon Sep 17 00:00:00 2001 From: itzzdev09 Date: Sun, 22 Nov 2026 12:55:23 +0530 Subject: [PATCH] Allow python-dateutil 3 and 4 ~=2.2 caps python-dateutil below 3. The library only uses tz.tzutc and tz.tzlocal, and the tests pass with python-dateutil 4.0.0. --- pyproject.toml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1025e310..66a002d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ ] dependencies = [ "requests~=2.7", - "python-dateutil~=2.2", + "python-dateutil>=2.2,<5", "PyJWT[crypto]~=2.12", ] diff --git a/setup.py b/setup.py index 6f35dc84..7734469c 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ Documentation and more details at https://github.com/segmentio/analytics-python """ -install_requires = ["requests~=2.7", "python-dateutil~=2.2", "PyJWT~=2.12"] +install_requires = ["requests~=2.7", "python-dateutil>=2.2,<5", "PyJWT~=2.12"] tests_require = [ "mock==2.0.0",