From 9301235fc424b7752a741ced1044bbc794c635e7 Mon Sep 17 00:00:00 2001 From: GALI PREM SAGAR Date: Thu, 2 Jun 2022 13:02:17 -0500 Subject: [PATCH] Drop python `3.7` in code-base (#11029) Starting `22.02` we dropped support for python `3.7`: https://docs.rapids.ai/notices/rsn0014/, but there are places in code-base that still have 3.7 usages. This PR removes and upgrades those usages. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Ashwin Srinath (https://github.com/shwina) - Bradley Dice (https://github.com/bdice) - https://github.com/jakirkham - AJ Schmidt (https://github.com/ajschmidt8) URL: https://github.com/rapidsai/cudf/pull/11029 --- README.md | 12 ++++++------ conda/environments/cudf_dev_cuda11.5.yml | 2 +- pyproject.toml | 2 +- python/cudf/pyproject.toml | 2 +- python/cudf_kafka/pyproject.toml | 2 +- python/custreamz/pyproject.toml | 2 +- python/dask_cudf/pyproject.toml | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 525820eee01..e737eedff06 100644 --- a/README.md +++ b/README.md @@ -65,15 +65,15 @@ Please see the [Demo Docker Repository](https://hub.docker.com/r/rapidsai/rapids cuDF can be installed with conda ([miniconda](https://conda.io/miniconda.html), or the full [Anaconda distribution](https://www.anaconda.com/download)) from the `rapidsai` channel: -For `cudf version == 21.08` : +For `cudf version == 22.06` : ```bash # for CUDA 11.0 conda install -c rapidsai -c nvidia -c numba -c conda-forge \ - cudf=21.08 python=3.7 cudatoolkit=11.0 + cudf=21.08 python=3.9 cudatoolkit=11.0 # or, for CUDA 11.2 conda install -c rapidsai -c nvidia -c numba -c conda-forge \ - cudf=21.08 python=3.7 cudatoolkit=11.2 + cudf=21.08 python=3.9 cudatoolkit=11.2 ``` @@ -81,14 +81,14 @@ For the nightly version of `cudf` : ```bash # for CUDA 11.0 conda install -c rapidsai-nightly -c nvidia -c numba -c conda-forge \ - cudf python=3.7 cudatoolkit=11.0 + cudf python=3.9 cudatoolkit=11.0 # or, for CUDA 11.2 conda install -c rapidsai-nightly -c nvidia -c numba -c conda-forge \ - cudf python=3.7 cudatoolkit=11.2 + cudf python=3.9 cudatoolkit=11.2 ``` -Note: cuDF is supported only on Linux, and with Python versions 3.7 and later. +Note: cuDF is supported only on Linux, and with Python versions 3.8 and later. See the [Get RAPIDS version picker](https://rapids.ai/start.html) for more OS and version info. diff --git a/conda/environments/cudf_dev_cuda11.5.yml b/conda/environments/cudf_dev_cuda11.5.yml index c035642bea2..a00e103cca2 100644 --- a/conda/environments/cudf_dev_cuda11.5.yml +++ b/conda/environments/cudf_dev_cuda11.5.yml @@ -17,7 +17,7 @@ dependencies: - cmake>=3.20.1,!=3.23.0 - cmake_setuptools>=0.1.3 - scikit-build>=0.13.1 - - python>=3.7,<3.9 + - python>=3.8,<3.10 - numba>=0.54 - numpy - pandas>=1.0,<1.5.0dev0 diff --git a/pyproject.toml b/pyproject.toml index 89dc1cb224d..a756854eae7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 79 -target-version = ["py36"] +target-version = ["py38"] include = '\.py?$' exclude = ''' /( diff --git a/python/cudf/pyproject.toml b/python/cudf/pyproject.toml index 7eaa5ae2f8d..b444e744ed4 100644 --- a/python/cudf/pyproject.toml +++ b/python/cudf/pyproject.toml @@ -13,7 +13,7 @@ requires = [ [tool.black] line-length = 79 -target-version = ["py36"] +target-version = ["py38"] include = '\.py?$' exclude = ''' /( diff --git a/python/cudf_kafka/pyproject.toml b/python/cudf_kafka/pyproject.toml index 630efd5b9ec..a4245bcdcac 100644 --- a/python/cudf_kafka/pyproject.toml +++ b/python/cudf_kafka/pyproject.toml @@ -10,7 +10,7 @@ requires = [ [tool.black] line-length = 79 -target-version = ["py36"] +target-version = ["py38"] include = '\.py?$' exclude = ''' /( diff --git a/python/custreamz/pyproject.toml b/python/custreamz/pyproject.toml index dfe475a2e46..fbab6b8bb68 100644 --- a/python/custreamz/pyproject.toml +++ b/python/custreamz/pyproject.toml @@ -9,7 +9,7 @@ requires = [ [tool.black] line-length = 79 -target-version = ["py36"] +target-version = ["py38"] include = '\.py?$' exclude = ''' /( diff --git a/python/dask_cudf/pyproject.toml b/python/dask_cudf/pyproject.toml index dfe475a2e46..fbab6b8bb68 100644 --- a/python/dask_cudf/pyproject.toml +++ b/python/dask_cudf/pyproject.toml @@ -9,7 +9,7 @@ requires = [ [tool.black] line-length = 79 -target-version = ["py36"] +target-version = ["py38"] include = '\.py?$' exclude = ''' /(