Skip to content

Commit

Permalink
Fix dateparser py2 (#197)
Browse files Browse the repository at this point in the history
* fix version of dateparser as 0.7.6

* Update HISTORY.md
  • Loading branch information
yuanqj authored Oct 17, 2021
1 parent 1716ecb commit 4bbfc00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4bbfc00

Please sign in to comment.