Skip to content

Commit

Permalink
Upgrade releases and metadata to Python >= 3.8. (iree-org#12849)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stella Laurenzo authored Mar 30, 2023
1 parent 6dcca40 commit 41453bb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,8 @@ jobs:
packages: "iree-runtime iree-runtime-instrumented"
output_dir: "${{ github.workspace }}/bindist"
# Note when upgrading: Build just one Python version synced to our
# minimum. Note that 3.7 is the last with this naming convention.
# Look at the script for the full list.
override_python_versions: cp37-cp37m
# minimum.
override_python_versions: cp38-cp38
run: |
./build_tools/python_deploy/build_linux_packages.sh
# Note that it is just a trade-off decision to have this serialized
Expand All @@ -721,9 +720,8 @@ jobs:
packages: "iree-compiler"
output_dir: "${{ github.workspace }}/bindist"
# Note when upgrading: Build just one Python version synced to our
# minimum. Note that 3.7 is the last with this naming convention.
# Look at the script for the full list.
override_python_versions: cp37-cp37m
# minimum.
override_python_versions: cp38-cp38m
run: |
./build_tools/python_deploy/build_linux_packages.sh
Expand Down
4 changes: 2 additions & 2 deletions build_tools/python_deploy/build_linux_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#
# Valid Python versions match a subdirectory under /opt/python in the docker
# image. Typically:
# cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310
# cp38-cp38 cp39-cp39 cp310-cp310
#
# Valid packages:
# iree-runtime
Expand All @@ -43,7 +43,7 @@ this_dir="$(cd $(dirname $0) && pwd)"
script_name="$(basename $0)"
repo_root="$(cd "${this_dir}" && git rev-parse --show-toplevel)"
manylinux_docker_image="${manylinux_docker_image:-gcr.io/iree-oss/manylinux2014_x86_64-release@sha256:794513562cca263480c0c169c708eec9ff70abfe279d6dc44e115b04488b9ab5}"
python_versions="${override_python_versions:-cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311}"
python_versions="${override_python_versions:-cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311}"
output_dir="${output_dir:-${this_dir}/wheelhouse}"
packages="${packages:-iree-runtime iree-runtime-instrumented iree-compiler}"
package_suffix="${package_suffix:-}"
Expand Down
1 change: 0 additions & 1 deletion compiler/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,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.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Also see [instructions for installing pre-built binaries](../bindings/python.md)

**Pre-requisites:**

* A relatively recent Python3 installation >=3.7 (we aim to support
* A relatively recent Python3 installation >=3.8 (we aim to support
[non-eol Python versions](https://endoflife.date/python)).

**CMake Variables:**
Expand Down
3 changes: 1 addition & 2 deletions integrations/tensorflow/python_projects/iree_tf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ def finalize_options(self):
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.7",
python_requires=">=3.8",
packages=find_namespace_packages(include=[
"iree.tools.tf",
"iree.tools.tf.*",
Expand Down
3 changes: 1 addition & 2 deletions integrations/tensorflow/python_projects/iree_tflite/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ def finalize_options(self):
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.7",
python_requires=">=3.8",
packages=find_namespace_packages(include=[
"iree.tools.tflite",
"iree.tools.tflite.*",
Expand Down
3 changes: 1 addition & 2 deletions integrations/tensorflow/python_projects/iree_xla/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ def finalize_options(self):
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.7",
python_requires=">=3.8",
packages=find_namespace_packages(include=[
"iree.tools.xla",
"iree.tools.xla.*",
Expand Down
3 changes: 1 addition & 2 deletions runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,13 @@ def generate_version_py():
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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.7",
python_requires=">=3.8",
ext_modules=[
CMakeExtension("iree._runtime"),
],
Expand Down

0 comments on commit 41453bb

Please sign in to comment.