Skip to content

Commit

Permalink
Use Python 3.5 compatible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed Sep 1, 2020
1 parent 711e464 commit 3b91af7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ def has_ext_modules(self):
ext_modules=get_ext_modules(),
install_requires=Path("requirements.txt").read_text().splitlines(),
extras_require={
"tensorflow": [f"tensorflow>={min_tf_version},<{max_tf_version}"],
"tensorflow-gpu": [f"tensorflow-gpu>={min_tf_version},<{max_tf_version}"],
"tensorflow-cpu": [f"tensorflow-cpu>={min_tf_version},<{max_tf_version}"],
"tensorflow": ["tensorflow>={},<{}".format(min_tf_version, max_tf_version)],
"tensorflow-gpu": [
"tensorflow-gpu>={},<{}".format(min_tf_version, max_tf_version)
],
"tensorflow-cpu": [
"tensorflow-cpu>={},<{}".format(min_tf_version, max_tf_version)
],
},
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit 3b91af7

Please sign in to comment.