Skip to content

Commit

Permalink
remove python 3.6 from builds, tests and packages (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Dec 6, 2023
1 parent fe02419 commit ab28cd3
Show file tree
Hide file tree
Showing 20 changed files with 17 additions and 34 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/CI-rai_core_flask-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-raiwidgets-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion erroranalysis/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions erroranalysis/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion nlp_feature_extractors/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion nlp_feature_extractors/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions notebooks/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Licensed under the MIT License.

import os
import sys

import nbformat as nbf
import papermill as pm
Expand Down Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion rai_core_flask/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion rai_test_utils/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions rai_test_utils/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion raiutils/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions raiutils/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions raiwidgets/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
3 changes: 1 addition & 2 deletions raiwidgets/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion responsibleai/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions responsibleai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion responsibleai_text/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions responsibleai_text/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion responsibleai_vision/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions responsibleai_vision/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ab28cd3

Please sign in to comment.