From ccf1a8f54d87bb719b2fbd121db168a21c622681 Mon Sep 17 00:00:00 2001 From: Allen Date: Tue, 18 Feb 2025 10:50:35 +0000 Subject: [PATCH 1/3] dropping support for py3.8 --- ...y39-py310.yml => run-unittests-py310-py312.yml} | 7 +++---- ...eport.yml => run-unittests-py39-cov-report.yml} | 0 pyproject.toml | 14 +++++--------- 3 files changed, 8 insertions(+), 13 deletions(-) rename .github/workflows/{run-unittests-py39-py310.yml => run-unittests-py310-py312.yml} (88%) rename .github/workflows/{run-unittests-py38-cov-report.yml => run-unittests-py39-cov-report.yml} (100%) diff --git a/.github/workflows/run-unittests-py39-py310.yml b/.github/workflows/run-unittests-py310-py312.yml similarity index 88% rename from .github/workflows/run-unittests-py39-py310.yml rename to .github/workflows/run-unittests-py310-py312.yml index 24948d012..b3388cd4f 100644 --- a/.github/workflows/run-unittests-py39-py310.yml +++ b/.github/workflows/run-unittests-py310-py312.yml @@ -1,4 +1,4 @@ -name: "[Py3.9-3.11] - All Unit Tests" +name: "[Py3.10-3.12] - All Unit Tests" on: workflow_dispatch: @@ -33,15 +33,14 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] name: ["unitary", "slow_tests"] include: - name: "unitary" test-path: "tests/unitary" # `model` tests running in "slow_tests", # `feature_store` tests has its own test suite - # `forecast` tests not supported in python 3.9,3.10 (automlx dependency). Tests are running in python3.8 test env, see run-unittests-py38-cov-report.yml - # 'pii' tests run only with py3.8, 'datapane' library conflicts with pandas>2.2.0, which used in py3.9/3.10 setup + # `forecast` tests not run in this suite # 'hpo' tests hangs if run together with all unitary tests. Tests running in separate command before running all unitary ignore-path: | --ignore tests/unitary/with_extras/model \ diff --git a/.github/workflows/run-unittests-py38-cov-report.yml b/.github/workflows/run-unittests-py39-cov-report.yml similarity index 100% rename from .github/workflows/run-unittests-py38-cov-report.yml rename to .github/workflows/run-unittests-py39-cov-report.yml diff --git a/pyproject.toml b/pyproject.toml index 7cbe8e1ce..f5fa64f92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,6 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: Universal Permissive License (UPL)", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -66,8 +65,7 @@ dependencies = [ "numpy>=1.19.2,<2.0.0", "oci>=2.144.1", "ocifs>=1.1.3", - "pandas>1.2.1; python_version<'3.9'", # starting pandas v2.1.0 requires-python = '>=3.9' - "pandas>=2.2.0; python_version>='3.9'", + "pandas>=2.2.0", "psutil>=5.7.2", "python_jsonschema_objects>=0.3.13", "requests", @@ -145,7 +143,7 @@ torch = [ "torchvision" ] viz = [ - "bokeh>=3.0.0,<3.2.0", # starting 3.2.0 bokeh not supporting python3.8; relax after ADS will drop py3.8 support + "bokeh", "folium>=0.12.1", "graphviz<0.17", "scipy>=1.5.4", @@ -203,7 +201,7 @@ pii = [ "scrubadub_spacy", "spacy-transformers==1.2.5", "spacy==3.6.1", - "report-creator>=1.0.32", + "report-creator>=1.0.37", ] llm = ["langchain>=0.2", "langchain-community", "langchain_openai", "pydantic>=2,<3", "evaluate>=0.4.0"] aqua = ["jupyter_server"] @@ -227,10 +225,8 @@ testsuite = [ "pdfplumber", "py4j", "pyarrow>=15.0.0", - "statsmodels; python_version=='3.8'", - "statsmodels>=0.14.1; python_version>='3.9'", # cython3.0 compatibility added in v0.14.1 - "tables", - "tables>3.9.0; python_version>='3.9'", + "statsmodels>=0.14.1", + "tables>3.9.0", "xlrd>=1.2.0", ] From 96ab51af856efb194e6a1f80b8105a9a5e931965 Mon Sep 17 00:00:00 2001 From: Allen Date: Tue, 18 Feb 2025 10:54:08 +0000 Subject: [PATCH 2/3] remove 3.8 workflow --- .github/workflows/run-unittests-py39-cov-report.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-unittests-py39-cov-report.yml b/.github/workflows/run-unittests-py39-cov-report.yml index 9fcfa4cbe..7aa73f411 100644 --- a/.github/workflows/run-unittests-py39-cov-report.yml +++ b/.github/workflows/run-unittests-py39-cov-report.yml @@ -1,4 +1,4 @@ -name: "[Py3.8][COV REPORT] - All Unit Tests" +name: "[Py3.9][COV REPORT] - All Unit Tests" on: workflow_dispatch: @@ -26,7 +26,7 @@ env: jobs: test: - name: python 3.8, ${{ matrix.name }} + name: python 3.9, ${{ matrix.name }} runs-on: ubuntu-latest timeout-minutes: 90 @@ -58,7 +58,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.9" cache: "pip" cache-dependency-path: | pyproject.toml @@ -71,7 +71,7 @@ jobs: name: "Test env setup" timeout-minutes: 30 - # Installing pii deps for python3.8 test setup only, it will not work with python3.9/3.10, because + # Installing pii deps for python3.9 test setup only, it will not work with python3.9/3.10, because # 'datapane' library conflicts with pandas>2.2.0, which used in py3.9/3.10 setup - name: "Install PII dependencies" run: | From a7a23cceb2c145aa4f33f173f9605d14e550b271 Mon Sep 17 00:00:00 2001 From: Allen Date: Tue, 18 Feb 2025 11:08:01 +0000 Subject: [PATCH 3/3] dropping py3.12 for now due to tensorflow res --- ...nittests-py310-py312.yml => run-unittests-py310-py311.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{run-unittests-py310-py312.yml => run-unittests-py310-py311.yml} (97%) diff --git a/.github/workflows/run-unittests-py310-py312.yml b/.github/workflows/run-unittests-py310-py311.yml similarity index 97% rename from .github/workflows/run-unittests-py310-py312.yml rename to .github/workflows/run-unittests-py310-py311.yml index b3388cd4f..cd7b86f22 100644 --- a/.github/workflows/run-unittests-py310-py312.yml +++ b/.github/workflows/run-unittests-py310-py311.yml @@ -1,4 +1,4 @@ -name: "[Py3.10-3.12] - All Unit Tests" +name: "[Py3.10-3.11] - All Unit Tests" on: workflow_dispatch: @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11"] name: ["unitary", "slow_tests"] include: - name: "unitary"