[python] Start supporting Python 3.10 (#4893)

* Update setup.py

* Update cuda.yml

* Update static_analysis.yml

* Update linkchecker.yml

* Update .appveyor.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update cuda.yml

* Update static_analysis.yml

* Update linkchecker.yml

* Update .vsts-ci.yml

* Update .appveyor.yml

* re-arange Python version
This commit is contained in:
Nikita Titov 2022-02-18 03:36:41 +03:00 коммит произвёл GitHub
Родитель 717631af18
Коммит cb8c61e4d3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 28 добавлений и 26 удалений

Просмотреть файл

@ -27,10 +27,7 @@ install:
- set PYTHON_VERSION=%CONFIGURATION%
- set CONDA_ENV="test-env"
- ps: |
switch ($env:PYTHON_VERSION) {
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
default {$env:MINICONDA = "C:\Miniconda37-x64"}
}
$env:MINICONDA = "C:\Miniconda3-x64"
$env:PATH = "$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
$env:BUILD_SOURCESDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER"
$env:LGB_VER = (Get-Content $env:APPVEYOR_BUILD_FOLDER\VERSION.txt).trim()

6
.github/workflows/cuda.yml поставляемый
Просмотреть файл

@ -25,15 +25,15 @@ jobs:
include:
- method: source
compiler: gcc
python_version: 3.7
python_version: "3.8"
cuda_version: "11.5.1"
- method: pip
compiler: clang
python_version: 3.8
python_version: "3.9"
cuda_version: "10.0"
- method: wheel
compiler: gcc
python_version: 3.9
python_version: "3.10"
cuda_version: "9.0"
steps:
- name: Setup or update software on host machine

2
.github/workflows/linkchecker.yml поставляемый
Просмотреть файл

@ -11,7 +11,7 @@ env:
CONDA_ENV: test-env
GITHUB_ACTIONS: 'true'
OS_NAME: 'linux'
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
TASK: 'check-links'
jobs:

14
.github/workflows/python_package.yml поставляемый
Просмотреть файл

@ -23,28 +23,28 @@ jobs:
include:
- os: macOS-latest
task: regular
python_version: 3.8
python_version: '3.8'
- os: macOS-latest
task: sdist
python_version: 3.9
python_version: '3.9'
- os: macOS-latest
task: bdist
python_version: 3.8
python_version: '3.7'
- os: macOS-latest
task: if-else
python_version: 3.8
python_version: '3.8'
- os: macOS-latest
task: mpi
method: source
python_version: 3.9
python_version: '3.9'
- os: macOS-latest
task: mpi
method: pip
python_version: 3.9
python_version: '3.10'
- os: macOS-latest
task: mpi
method: wheel
python_version: 3.7
python_version: '3.7'
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0

2
.github/workflows/static_analysis.yml поставляемый
Просмотреть файл

@ -15,7 +15,7 @@ env:
CONDA_ENV: test-env
GITHUB_ACTIONS: 'true'
OS_NAME: 'linux'
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
jobs:
test:

Просмотреть файл

@ -9,7 +9,7 @@ pr:
- master
variables:
AZURE: 'true'
PYTHON_VERSION: 3.9
PYTHON_VERSION: '3.10'
CONDA_ENV: test-env
resources:
containers:
@ -35,9 +35,10 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: '3.9'
sdist:
TASK: sdist
PYTHON_VERSION: 3.7
PYTHON_VERSION: '3.7'
bdist:
TASK: bdist
inference:
@ -45,7 +46,7 @@ jobs:
mpi_source:
TASK: mpi
METHOD: source
PYTHON_VERSION: 3.8
PYTHON_VERSION: '3.8'
gpu_source:
TASK: gpu
METHOD: source
@ -94,7 +95,7 @@ jobs:
TASK: sdist
bdist:
TASK: bdist
PYTHON_VERSION: 3.8
PYTHON_VERSION: '3.8'
inference:
TASK: if-else
mpi_source:
@ -103,21 +104,23 @@ jobs:
mpi_pip:
TASK: mpi
METHOD: pip
PYTHON_VERSION: 3.8
PYTHON_VERSION: '3.9'
mpi_wheel:
TASK: mpi
METHOD: wheel
PYTHON_VERSION: 3.7
PYTHON_VERSION: '3.7'
gpu_source:
TASK: gpu
METHOD: source
PYTHON_VERSION: '3.9'
gpu_pip:
TASK: gpu
METHOD: pip
PYTHON_VERSION: '3.8'
gpu_wheel:
TASK: gpu
METHOD: wheel
PYTHON_VERSION: 3.7
PYTHON_VERSION: '3.7'
cpp_tests:
TASK: cpp-tests
METHOD: with-sanitizers
@ -223,10 +226,10 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: 3.7
PYTHON_VERSION: '3.7'
sdist:
TASK: sdist
PYTHON_VERSION: 3.8
PYTHON_VERSION: '3.8'
bdist:
TASK: bdist
swig:
@ -263,9 +266,10 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: '3.9'
sdist:
TASK: sdist
PYTHON_VERSION: 3.8
PYTHON_VERSION: '3.8'
bdist:
TASK: bdist
swig:

Просмотреть файл

@ -380,4 +380,5 @@ if __name__ == "__main__":
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Artificial Intelligence'])