From ab28cd3fca2952b3a753693660a36b8946bfe198 Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Wed, 6 Dec 2023 11:34:24 -0500 Subject: [PATCH] remove python 3.6 from builds, tests and packages (#2442) --- .github/workflows/CI-rai_core_flask-pytest.yml | 6 ++---- .github/workflows/CI-raiwidgets-pytest.yml | 2 +- erroranalysis/README.md | 2 +- erroranalysis/setup.py | 3 +-- nlp_feature_extractors/README.md | 2 +- nlp_feature_extractors/setup.py | 1 - notebooks/test_notebooks.py | 4 ---- rai_core_flask/setup.py | 1 - rai_test_utils/README.md | 2 +- rai_test_utils/setup.py | 3 +-- raiutils/README.md | 2 +- raiutils/setup.py | 3 +-- raiwidgets/requirements-dev.txt | 2 -- raiwidgets/setup.py | 3 +-- responsibleai/README.md | 2 +- responsibleai/setup.py | 3 +-- responsibleai_text/README.md | 2 +- responsibleai_text/setup.py | 3 +-- responsibleai_vision/README.md | 2 +- responsibleai_vision/setup.py | 3 +-- 20 files changed, 17 insertions(+), 34 deletions(-) diff --git a/.github/workflows/CI-rai_core_flask-pytest.yml b/.github/workflows/CI-rai_core_flask-pytest.yml index ae63b02d9d..f6c3abdbdb 100644 --- a/.github/workflows/CI-rai_core_flask-pytest.yml +++ b/.github/workflows/CI-rai_core_flask-pytest.yml @@ -18,7 +18,7 @@ jobs: matrix: operatingSystem: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest] - pythonVersion: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + pythonVersion: ["3.7", "3.8", "3.9", "3.10", "3.11"] exclude: - operatingSystem: macos-latest pythonVersion: "3.9" @@ -30,8 +30,6 @@ jobs: pythonVersion: "3.9" - operatingSystem: ubuntu-20.04 pythonVersion: "3.10" - - operatingSystem: ubuntu-latest - pythonVersion: "3.6" - operatingSystem: ubuntu-latest pythonVersion: "3.9" - operatingSystem: windows-latest @@ -47,7 +45,7 @@ jobs: with: python-version: ${{ matrix.pythonVersion }} - - if: ${{ matrix.pythonVersion == '3.6' || matrix.pythonVersion == '3.7' }} + - if: ${{ matrix.pythonVersion == '3.7' }} name: Setup tools for python lt 3.8 run: | python -m pip install --upgrade "pip<=23.1.2" diff --git a/.github/workflows/CI-raiwidgets-pytest.yml b/.github/workflows/CI-raiwidgets-pytest.yml index 823e1bf9fd..3c2d436bed 100644 --- a/.github/workflows/CI-raiwidgets-pytest.yml +++ b/.github/workflows/CI-raiwidgets-pytest.yml @@ -17,7 +17,7 @@ jobs: matrix: packageDirectory: ["raiwidgets"] operatingSystem: [ubuntu-latest, macos-latest, windows-latest] - pythonVersion: [3.6, 3.7, 3.8, 3.9, "3.10"] + pythonVersion: [3.7, 3.8, 3.9, "3.10"] exclude: - packageDirectory: "raiwidgets" operatingSystem: macos-latest diff --git a/erroranalysis/README.md b/erroranalysis/README.md index 0e64aba1de..09a13165b0 100644 --- a/erroranalysis/README.md +++ b/erroranalysis/README.md @@ -1,6 +1,6 @@ # Error Analysis SDK for Python -### This package has been tested with Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11 +### This package has been tested with Python 3.7, 3.8, 3.9, 3.10 and 3.11 The error analysis sdk enables users to get a deeper understanding of machine learning model errors. When evaluating a machine learning model, aggregate accuracy is not sufficient and single-score evaluation may hide important conditions of inaccuracies. Use Error Analysis to identify cohorts with higher error rates and diagnose the root causes behind these errors. diff --git a/erroranalysis/setup.py b/erroranalysis/setup.py index d2990ddad0..e6196cb9a4 100644 --- a/erroranalysis/setup.py +++ b/erroranalysis/setup.py @@ -30,11 +30,10 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-widgets", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, extras_require=extras_require, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/nlp_feature_extractors/README.md b/nlp_feature_extractors/README.md index c3126858d9..98de89cb08 100644 --- a/nlp_feature_extractors/README.md +++ b/nlp_feature_extractors/README.md @@ -1,6 +1,6 @@ # NLP Feature Extractors SDK for Python -### This package has been tested with Python 3.6, 3.7, 3.8 and 3.9 +### This package has been tested with Python 3.7, 3.8 and 3.9 The NLP Feature Extractors project enables the tabular components in the RAI tools to be applied to Natural Language Processing (NLP) tasks on unstructured text. diff --git a/nlp_feature_extractors/setup.py b/nlp_feature_extractors/setup.py index 8b63209fa3..d5f42dce4a 100644 --- a/nlp_feature_extractors/setup.py +++ b/nlp_feature_extractors/setup.py @@ -38,7 +38,6 @@ # used to identify the package to various searches classifiers=[ "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/notebooks/test_notebooks.py b/notebooks/test_notebooks.py index 8fe1150024..dca28cfc46 100644 --- a/notebooks/test_notebooks.py +++ b/notebooks/test_notebooks.py @@ -2,7 +2,6 @@ # Licensed under the MIT License. import os -import sys import nbformat as nbf import papermill as pm @@ -294,10 +293,7 @@ def test_responsibleaidashboard_fridge_object_detection_model_debugging(): assay_one_notebook(nb_path, nb_name, test_values) -# skip forecasting in Python 3.6 because of dependency incompatibilities @pytest.mark.notebooks -@pytest.mark.skipif(sys.version_info < (3, 7), - reason="skip forecasting for Python 3.6") def test_responsibleaidashboard_orange_juice_forecasting(): nb_path = TABULAR nb_name = "responsibleaidashboard-orange-juice-forecasting" diff --git a/rai_core_flask/setup.py b/rai_core_flask/setup.py index 8b09b7a07c..3ea1ce325f 100644 --- a/rai_core_flask/setup.py +++ b/rai_core_flask/setup.py @@ -44,7 +44,6 @@ ], ), # used to identify the package to various searches classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/rai_test_utils/README.md b/rai_test_utils/README.md index aed9c22161..9d9c288a13 100644 --- a/rai_test_utils/README.md +++ b/rai_test_utils/README.md @@ -1,6 +1,6 @@ # Responsible AI test utilities for Python -### This package has been tested with Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11 +### This package has been tested with Python 3.7, 3.8, 3.9, 3.10 and 3.11 The Responsible AI Test Utilities package contains common testing utilities and functions shared across various RAI tools, including fairlearn, interpret-community, responsibleai, raiwidgets, ml-wrappers and other packages. diff --git a/rai_test_utils/setup.py b/rai_test_utils/setup.py index bced70229d..707e31d42b 100644 --- a/rai_test_utils/setup.py +++ b/rai_test_utils/setup.py @@ -31,11 +31,10 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-toolbox", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, extras_require=extras_require, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/raiutils/README.md b/raiutils/README.md index b849e7e81b..549e5ea9e3 100644 --- a/raiutils/README.md +++ b/raiutils/README.md @@ -1,6 +1,6 @@ # Responsible AI Utilities for Python -### This package has been tested with Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11 +### This package has been tested with Python 3.7, 3.8, 3.9, 3.10 and 3.11 The Responsible AI Utilities package contains common functions shared across various RAI tools, including fairlearn, interpret-community, responsibleai, raiwidgets and other packages, as well as notebook examples. diff --git a/raiutils/setup.py b/raiutils/setup.py index b67272b8d2..2e9a841fc1 100644 --- a/raiutils/setup.py +++ b/raiutils/setup.py @@ -25,10 +25,9 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-widgets", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/raiwidgets/requirements-dev.txt b/raiwidgets/requirements-dev.txt index 908f590820..7b7f5bae48 100644 --- a/raiwidgets/requirements-dev.txt +++ b/raiwidgets/requirements-dev.txt @@ -13,8 +13,6 @@ ml-wrappers>=0.4.0 sktime pmdarima -# Jupyter dependency that fails with python 3.6 -pywinpty==2.0.2; python_version <= '3.6' and sys_platform == 'win32' # fix for recent joblib release and windows python 3.7 builds joblib<1.3.0; python_version <= '3.7' and sys_platform == 'win32' diff --git a/raiwidgets/setup.py b/raiwidgets/setup.py index 3e9209e03c..8bf827d40f 100644 --- a/raiwidgets/setup.py +++ b/raiwidgets/setup.py @@ -34,10 +34,9 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-toolbox", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/responsibleai/README.md b/responsibleai/README.md index 6c83eb79af..0cc296877a 100644 --- a/responsibleai/README.md +++ b/responsibleai/README.md @@ -1,6 +1,6 @@ # Responsible AI Model Analysis SDK for Python -### This package has been tested with Python 3.6, 3.7, 3.8, 3.9 and 3.10 +### This package has been tested with Python 3.7, 3.8, 3.9 and 3.10 The Responsible AI Model Analysis SDK enables users to analyze their machine learning models in one API. Users will be able to analyze errors, explain the most important features, compute counterfactuals and run causal analysis using a single API. diff --git a/responsibleai/setup.py b/responsibleai/setup.py index 8039cb497b..48705d827f 100644 --- a/responsibleai/setup.py +++ b/responsibleai/setup.py @@ -42,10 +42,9 @@ ] }, include_package_data=True, - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/responsibleai_text/README.md b/responsibleai_text/README.md index 80a3429682..4106690e25 100644 --- a/responsibleai_text/README.md +++ b/responsibleai_text/README.md @@ -1,6 +1,6 @@ # Responsible AI Text SDK for Python -### This package has been tested with Python 3.6, 3.7, 3.8 and 3.9 +### This package has been tested with Python 3.7, 3.8 and 3.9 The Responsible AI Text sdk enables users to analyze their machine learning models for text data in one API. Users will be able to analyze errors, explain the most important features, and understand their data using a single API. diff --git a/responsibleai_text/setup.py b/responsibleai_text/setup.py index 78547da90e..8b0bada790 100644 --- a/responsibleai_text/setup.py +++ b/responsibleai_text/setup.py @@ -37,11 +37,10 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-toolbox", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', extras_require=EXTRAS, install_requires=install_requires, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", diff --git a/responsibleai_vision/README.md b/responsibleai_vision/README.md index 23ae27002d..e1587ba93b 100644 --- a/responsibleai_vision/README.md +++ b/responsibleai_vision/README.md @@ -1,6 +1,6 @@ # Responsible AI Vision SDK for Python -### This package has been tested with Python 3.6, 3.7, 3.8 and 3.9 +### This package has been tested with Python 3.7, 3.8 and 3.9 The Responsible AI Vision SDK enables users to analyze their machine learning models for computer vision in one API. Users will be able to analyze errors, explain the most important features, and understand their data using a single API. diff --git a/responsibleai_vision/setup.py b/responsibleai_vision/setup.py index 2a3f9a6d16..5cddba0e9f 100644 --- a/responsibleai_vision/setup.py +++ b/responsibleai_vision/setup.py @@ -30,10 +30,9 @@ long_description_content_type="text/markdown", url="https://github.com/microsoft/responsible-ai-toolbox", packages=setuptools.find_packages(), - python_requires='>=3.6', + python_requires='>=3.7', install_requires=install_requires, classifiers=[ - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",