From 808298723eda771097563ac82c6e1681071f2719 Mon Sep 17 00:00:00 2001 From: Wissam Bejjani Date: Tue, 19 Jul 2022 15:15:10 +0200 Subject: [PATCH] update python version requirements and chex (#14) * fix: adding examples in MANIFEST.in * Add docs copyright (#6) * docs: added copyrights to docs and slides * docs: added citation reference * docs: updated slides font size * docs: updated slides footer format * fix test imports (#7) * fix: removed conftest imports for type hint * fix: removed example imports in integration test * chore: removed leftover comments * update copyright (#8) * docs: updated copyright in slides and footer * ci: update version * docs: updated copyright on all slides * fix: enforcing Python>=3.7 for JAX (#10) * fix: enforcing Python>=3.7 for JAX * fix: lint * Add chex and support Python<3.10 (#11) * fix: adding chex as a dependency * fix: using typing_extensions for python <3.10 suppor * feat: updating version to 0.1.4 (#12) * feat: update version to 0.1.4 Co-authored-by: Cyprien Courtot --- catx/VERSION | 2 +- catx/type_defs.py | 7 +++++-- requirements.txt | 1 + setup.py | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/catx/VERSION b/catx/VERSION index b1e80bb..845639e 100644 --- a/catx/VERSION +++ b/catx/VERSION @@ -1 +1 @@ -0.1.3 +0.1.4 diff --git a/catx/type_defs.py b/catx/type_defs.py index 074519e..e4e0bc6 100644 --- a/catx/type_defs.py +++ b/catx/type_defs.py @@ -1,6 +1,9 @@ -from typing import TypeAlias +try: + from typing import TypeAlias +except ImportError: + from typing_extensions import TypeAlias -from chex import ArrayNumpy, Array +from chex import Array, ArrayNumpy Actions: TypeAlias = ArrayNumpy JaxActions: TypeAlias = Array diff --git a/requirements.txt b/requirements.txt index 6aa3f62..5102ba1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +chex dm-haiku matplotlib numpy diff --git a/setup.py b/setup.py index 137051c..4194424 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ def read_requirements(path: str) -> List[str]: long_description_content_type="text/markdown", author="InstaDeep", packages=find_packages(), + python_requires=">=3.7", install_requires=read_requirements("requirements.txt"), entry_points={"console_scripts": ["project_name = project_name.__main__:main"]}, extras_require={