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",