Skip to content

Commit

Permalink
Update tf-text setup scripts.
Browse files Browse the repository at this point in the history
Now needs TF 2.15, and supports Python 3.11.

PiperOrigin-RevId: 585761002
  • Loading branch information
cantonios authored and tf-text-github-robot committed Nov 27, 2023
1 parent b32645f commit f52519a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion oss_scripts/pip_package/setup.nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def finalize_options(self):
cmdclass={'install': InstallPlatlib},
distclass=BinaryDistribution,
install_requires=[
'tensorflow_hub>=0.8.0',
'tensorflow_hub>=0.15.0',
],
extras_require={
'tests': [
Expand All @@ -92,6 +92,7 @@ def finalize_options(self):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
Expand Down
9 changes: 5 additions & 4 deletions oss_scripts/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ def finalize_options(self):
distclass=BinaryDistribution,
install_requires=[
(
'tensorflow>=2.13.0, <2.14; platform_machine != "arm64" or'
'tensorflow>=2.15.0, <2.16; platform_machine != "arm64" or'
' platform_system != "Darwin"'
),
(
'tensorflow-macos>=2.13.0, <2.14; platform_machine == "arm64" and'
'tensorflow-macos>=2.15.0, <2.16; platform_machine == "arm64" and'
' platform_system == "Darwin"'
),
'tensorflow_hub>=0.13.0',
'tensorflow_hub>=0.15.0',
],
extras_require={
'tensorflow_cpu': [
'tensorflow-cpu>=2.13.0, <2.14',
'tensorflow-cpu>=2.15.0, <2.16',
],
'tests': [
'absl-py',
Expand All @@ -102,6 +102,7 @@ def finalize_options(self):
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
Expand Down

0 comments on commit f52519a

Please sign in to comment.