From b7ded8ed7942b60fb91349e9386872dfde6f84f3 Mon Sep 17 00:00:00 2001 From: Hanhan Wang Date: Mon, 28 Aug 2023 17:00:30 -0700 Subject: [PATCH] Update documentations and setups to Python 3.9 The python minimum support was bumped to 3.9 in https://github.com/openxla/iree/pull/14810 --- .github/workflows/validate_and_publish_release.yml | 2 +- CMakeLists.txt | 8 ++++---- compiler/setup.py | 1 - docs/website/docs/building-from-source/getting-started.md | 2 +- integrations/tensorflow/python_projects/iree_tf/setup.py | 3 +-- .../tensorflow/python_projects/iree_tflite/setup.py | 3 +-- runtime/setup.py | 2 -- 7 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/validate_and_publish_release.yml b/.github/workflows/validate_and_publish_release.yml index 74a97e7ee7d8..34bc503333b7 100644 --- a/.github/workflows/validate_and_publish_release.yml +++ b/.github/workflows/validate_and_publish_release.yml @@ -37,7 +37,7 @@ jobs: id: set_up_python uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0 with: - python-version: "3.8" + python-version: "3.9" - name: Install python packages id: install_python_packages run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index c64700ce482b..8cce64fa944f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -630,15 +630,15 @@ if(IREE_BUILD_PYTHON_BINDINGS) # "Bootstrapping" by first looking for the optional Development component # seems to be robust generally. # See: https://reviews.llvm.org/D118148 - # If building Python packages, we have a hard requirement on 3.8+. - find_package(Python3 3.8 COMPONENTS Interpreter Development NumPy) - find_package(Python3 3.8 COMPONENTS Interpreter Development.Module NumPy REQUIRED) + # If building Python packages, we have a hard requirement on 3.9+. + find_package(Python3 3.9 COMPONENTS Interpreter Development NumPy) + find_package(Python3 3.9 COMPONENTS Interpreter Development.Module NumPy REQUIRED) # Some parts of the build use FindPython instead of FindPython3. Why? No # one knows, but they are different. So make sure to bootstrap this one too. # Not doing this here risks them diverging, which on multi-Python systems, # can be troublesome. Note that nanobind requires FindPython. set(Python_EXECUTABLE "${Python3_EXECUTABLE}") - find_package(Python 3.8 COMPONENTS Interpreter Development.Module NumPy REQUIRED) + find_package(Python 3.9 COMPONENTS Interpreter Development.Module NumPy REQUIRED) elseif(IREE_BUILD_COMPILER OR IREE_BUILD_TESTS) find_package(Python3 COMPONENTS Interpreter REQUIRED) set(Python_EXECUTABLE "${Python3_EXECUTABLE}") diff --git a/compiler/setup.py b/compiler/setup.py index ea1859f0dd60..87afbc5586bb 100644 --- a/compiler/setup.py +++ b/compiler/setup.py @@ -423,7 +423,6 @@ def find_git_submodule_revision(submodule_path): "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/docs/website/docs/building-from-source/getting-started.md b/docs/website/docs/building-from-source/getting-started.md index 1379ab9aa5fe..8374f5d42b3f 100644 --- a/docs/website/docs/building-from-source/getting-started.md +++ b/docs/website/docs/building-from-source/getting-started.md @@ -258,7 +258,7 @@ about the bindings themselves. ### Dependencies -You will need a recent Python installation >=3.8 (we aim to support +You will need a recent Python installation >=3.9 (we aim to support [non-eol Python versions](https://endoflife.date/python)). ???+ Tip "Tip - Managing Python versions" diff --git a/integrations/tensorflow/python_projects/iree_tf/setup.py b/integrations/tensorflow/python_projects/iree_tf/setup.py index da94a7d1cf5c..b61c6f915eb5 100644 --- a/integrations/tensorflow/python_projects/iree_tf/setup.py +++ b/integrations/tensorflow/python_projects/iree_tf/setup.py @@ -55,11 +55,10 @@ def load_version_info(): "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ], - python_requires=">=3.8", + python_requires=">=3.9", packages=find_namespace_packages( include=[ "iree.tools.tf", diff --git a/integrations/tensorflow/python_projects/iree_tflite/setup.py b/integrations/tensorflow/python_projects/iree_tflite/setup.py index 6c8823c6038d..8241116f7f14 100644 --- a/integrations/tensorflow/python_projects/iree_tflite/setup.py +++ b/integrations/tensorflow/python_projects/iree_tflite/setup.py @@ -55,11 +55,10 @@ def load_version_info(): "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ], - python_requires=">=3.8", + python_requires=">=3.9", packages=find_namespace_packages( include=[ "iree.tools.tflite", diff --git a/runtime/setup.py b/runtime/setup.py index cd974d076647..9630c6c1f003 100644 --- a/runtime/setup.py +++ b/runtime/setup.py @@ -517,13 +517,11 @@ def populate_built_package(abs_dir): "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", ], url="https://github.com/openxla/iree", - python_requires=">=3.8", ext_modules=( [ CMakeExtension("iree._runtime_libs._runtime"),