Skip to content

Finish Python 3.10 -> 3.11 bump #32650

@lesteve

Description

@lesteve

Warning

This issue is already being worked on, a comment like "can I work on this" or "assign this issue to me" may get you banned from the repo

From git grep below

  • 3.10 -> 3.11 README.rst, pyproject.toml, meson.build, doc/developers/development_setup.rst
  • update_environment_and_lock_files.py the version is misleading, it should be 3.12.3 in Ubuntu Atlas. For completeness, this is the Python version to create the pip requirements lock-file.
  • Some possible clean-up in sklearn/preprocessing/_encoders.py
  • .circleci/config.yml probably not used much since we are using the conda env, either bump or remove
  • maybe other things I have missed
❯ git grep -P '3\.10\b'
.circleci/config.yml:      - image: cimg/python:3.10.16
.github/workflows/check-sdist.yml:          python-version: '3.10'
README.rst:.. |PythonMinVersion| replace:: 3.10
build_tools/azure/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/xcb-util-renderutil-0.3.10-hb711507_0.conda#0e0cbe0564d03a99afd5fd7b362feecd
build_tools/azure/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-base-3.10.7-py313h683a580_0.conda#5858a4032f99c89b175f7f5161c7b0cd
build_tools/azure/pylatest_conda_forge_mkl_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-3.10.7-py313h78bf25f_0.conda#a9e249d3fa6fc485e307e62eb2d33c5a
build_tools/azure/pylatest_conda_forge_mkl_no_openmp_osx-64_conda.lock:https://conda.anaconda.org/conda-forge/osx-64/matplotlib-base-3.10.7-py314hd47142c_0.conda#28a65ed1cad5a165cba7e0b6c119de67
build_tools/azure/pylatest_conda_forge_mkl_no_openmp_osx-64_conda.lock:https://conda.anaconda.org/conda-forge/osx-64/matplotlib-3.10.7-py314hee6578b_0.conda#6e5ce49aa7e5bf46c32f1c166391789e
build_tools/azure/pylatest_conda_forge_osx-arm64_conda.lock:https://conda.anaconda.org/conda-forge/osx-arm64/matplotlib-base-3.10.7-py313h58042b9_0.conda#17046bd72a5be23b666bc6ee68d85b75
build_tools/azure/pylatest_conda_forge_osx-arm64_conda.lock:https://conda.anaconda.org/conda-forge/osx-arm64/matplotlib-3.10.7-py313h39782a4_0.conda#25f9bbc3a3000394a11aa72b30454ada
build_tools/azure/pylatest_pip_openblas_pandas_linux-64_conda.lock:# pip matplotlib @ https://files.pythonhosted.org/packages/22/ff/6425bf5c20d79aa5b959d1ce9e65f599632345391381c9a104133fe0b171/matplotlib-3.10.7-cp313-cp313-manylinux2014_x8>
build_tools/azure/pymin_conda_forge_openblas_min_dependencies_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/xcb-util-renderutil-0.3.10-hb711507_0.conda#0e0cbe0564d03a99afd5fd7b362feecd
build_tools/azure/pymin_conda_forge_openblas_win-64_conda.lock:https://conda.anaconda.org/conda-forge/win-64/matplotlib-base-3.10.7-py311h1675fdf_0.conda#5d5926fd19717e4c86f06752bfe0870d
build_tools/azure/pymin_conda_forge_openblas_win-64_conda.lock:https://conda.anaconda.org/conda-forge/win-64/matplotlib-3.10.7-py311h1ea47a8_0.conda#1770853fbc9aa46906cd61df67d70818
build_tools/azure/ubuntu_atlas_lock.txt:# This file is autogenerated by pip-compile with Python 3.10
build_tools/circle/doc_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/xcb-util-renderutil-0.3.10-hb711507_0.conda#0e0cbe0564d03a99afd5fd7b362feecd
build_tools/circle/doc_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-base-3.10.7-py311h0f3be63_0.conda#b4ec935aa9298e5498613ea66b3c3a98
build_tools/circle/doc_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-3.10.7-py311h38be061_0.conda#979c4fd79b6edb07fa602a02edcb2c43
build_tools/circle/doc_min_dependencies_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/xcb-util-renderutil-0.3.10-hb711507_0.conda#0e0cbe0564d03a99afd5fd7b362feecd
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/xcb-util-renderutil-0.3.10-hb711507_0.conda#0e0cbe0564d03a99afd5fd7b362feecd
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-base-3.10.7-py313h683a580_0.conda#5858a4032f99c89b175f7f5161c7b0cd
build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock:https://conda.anaconda.org/conda-forge/linux-64/matplotlib-3.10.7-py313h78bf25f_0.conda#a9e249d3fa6fc485e307e62eb2d33c5a
build_tools/github/pymin_conda_forge_arm_linux-aarch64_conda.lock:https://conda.anaconda.org/conda-forge/linux-aarch64/xcb-util-renderutil-0.3.10-h5c728e9_0.conda#7beeda4223c5484ef72d89fb66b7e8c1
build_tools/github/pymin_conda_forge_arm_linux-aarch64_conda.lock:https://conda.anaconda.org/conda-forge/linux-aarch64/matplotlib-base-3.10.7-py311hb9c6b48_0.conda#7c41eef230a6f2035a95005008e7e456
build_tools/github/pymin_conda_forge_arm_linux-aarch64_conda.lock:https://conda.anaconda.org/conda-forge/linux-aarch64/matplotlib-3.10.7-py311hfecb2dc_0.conda#0f4bc7bb0509530cea460da7f20ac7a6
build_tools/update_environments_and_lock_files.py:        "python_version": "3.10.4",
doc/developers/development_setup.rst:.. |PythonMinVersion| replace:: 3.10
doc/install.rst:    Scikit-learn 1.0 supported Python 3.7—3.10.
doc/install.rst:    Scikit-learn 1.7 requires Python 3.10 or newer.
doc/whats_new/v1.7.rst:  only affects Python versions `>=3.10.0,<=3.10.11` and `>=3.11.0,<=3.11.3`.
pyproject.toml:requires-python = ">=3.10"
pyproject.toml:  "Programming Language :: Python :: 3.10",
sklearn/externals/array_api_compat/cupy/_typing.py:    # NumPy 1.x on Python 3.10 fails to parse np.dtype[]
sklearn/externals/array_api_compat/numpy/_typing.py:    # NumPy 1.x on Python 3.10 fails to parse np.dtype[]
sklearn/meson.build:  if not py.version().version_compare('>=3.10')
sklearn/meson.build:    error('scikit-learn requires Python>=3.10, got ' + py.version() + ' instead')
sklearn/preprocessing/_encoders.py:    Python versions before 3.10. The handling of `nan` values was improved
sklearn/preprocessing/_encoders.py:    from Python 3.10 onwards, (c.f.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions