Skip to content

Commit

Permalink
Specify supported tensorflow versions, fix: #1904
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Aug 22, 2024
1 parent 022d0fb commit 32ed29b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

FASTTEXT = 'fasttext-wheel==0.9.2'
sys_version_info = sys.version_info
if sys_version_info >= (3, 10):
TENSORFLOW = ['tensorflow>=2.8.0']
else:
TENSORFLOW = ['tensorflow==2.6.0', 'keras==2.6.0', 'protobuf<3.19']

TOKENIZERS = []
if (sys_version_info.major, sys_version_info.minor) == (3, 6) and sys.platform in {'darwin', 'win32'}:
Expand All @@ -30,7 +26,7 @@
'perin-parser>=0.0.12',
],
'fasttext': [FASTTEXT],
'tf': [FASTTEXT, *TENSORFLOW]
'tf': [FASTTEXT, 'tensorflow>=2.6.0,<2.14']
}
extras_require['full'] = list(set(sum(extras_require.values(), [])))

Expand Down

0 comments on commit 32ed29b

Please sign in to comment.