From 4bbfc00ac4d77c5e3ba81fa2bdbb48f5e6c11543 Mon Sep 17 00:00:00 2001 From: yuanqj Date: Sun, 17 Oct 2021 23:38:51 +0800 Subject: [PATCH] Fix dateparser py2 (#197) * fix version of dateparser as 0.7.6 * Update HISTORY.md --- HISTORY.md | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 796d5564..b3d74001 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,7 +5,7 @@ **Implementations** - Add resources api - Update elasticsearch migration to use scroll -- fix version of protobuf as 3.17.3 to keep compatible with Python 2 +- fix version of dependencies to keep compatible with Python 2: protobuf<=3.17.3, dateparser<=0.7.6 ### 0.6.57 (2021-09-09) diff --git a/setup.py b/setup.py index 8f48b501..ed4db748 100755 --- a/setup.py +++ b/setup.py @@ -29,9 +29,9 @@ install_requires = [] if sys.version_info[:2] == (2, 6): - install_requires = [ 'protobuf <= 3.4.0', 'enum34', 'futures' ] + install_requires = ['protobuf <= 3.4.0', 'enum34', 'futures'] elif sys.version_info[0] == 2: - install_requires = ['protobuf <= 3.17.3', 'enum34', 'futures', 'dateparser'] + install_requires = ['protobuf <= 3.17.3', 'enum34', 'futures', 'dateparser <= 0.7.6'] elif sys.version_info[:2] == (3, 3): install_requires = ['protobuf>=3.4.0', 'enum34', 'dateparser'] elif sys.version_info[0] == 3: