зеркало из https://github.com/microsoft/LightGBM.git
[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:
Родитель
717631af18
Коммит
cb8c61e4d3
|
@ -27,10 +27,7 @@ install:
|
||||||
- set PYTHON_VERSION=%CONFIGURATION%
|
- set PYTHON_VERSION=%CONFIGURATION%
|
||||||
- set CONDA_ENV="test-env"
|
- set CONDA_ENV="test-env"
|
||||||
- ps: |
|
- ps: |
|
||||||
switch ($env:PYTHON_VERSION) {
|
$env:MINICONDA = "C:\Miniconda3-x64"
|
||||||
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
|
|
||||||
default {$env:MINICONDA = "C:\Miniconda37-x64"}
|
|
||||||
}
|
|
||||||
$env:PATH = "$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
|
$env:PATH = "$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
|
||||||
$env:BUILD_SOURCESDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER"
|
$env:BUILD_SOURCESDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER"
|
||||||
$env:LGB_VER = (Get-Content $env:APPVEYOR_BUILD_FOLDER\VERSION.txt).trim()
|
$env:LGB_VER = (Get-Content $env:APPVEYOR_BUILD_FOLDER\VERSION.txt).trim()
|
||||||
|
|
|
@ -25,15 +25,15 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- method: source
|
- method: source
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
python_version: 3.7
|
python_version: "3.8"
|
||||||
cuda_version: "11.5.1"
|
cuda_version: "11.5.1"
|
||||||
- method: pip
|
- method: pip
|
||||||
compiler: clang
|
compiler: clang
|
||||||
python_version: 3.8
|
python_version: "3.9"
|
||||||
cuda_version: "10.0"
|
cuda_version: "10.0"
|
||||||
- method: wheel
|
- method: wheel
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
python_version: 3.9
|
python_version: "3.10"
|
||||||
cuda_version: "9.0"
|
cuda_version: "9.0"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup or update software on host machine
|
- name: Setup or update software on host machine
|
||||||
|
|
|
@ -11,7 +11,7 @@ env:
|
||||||
CONDA_ENV: test-env
|
CONDA_ENV: test-env
|
||||||
GITHUB_ACTIONS: 'true'
|
GITHUB_ACTIONS: 'true'
|
||||||
OS_NAME: 'linux'
|
OS_NAME: 'linux'
|
||||||
PYTHON_VERSION: 3.9
|
PYTHON_VERSION: '3.10'
|
||||||
TASK: 'check-links'
|
TASK: 'check-links'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -23,28 +23,28 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: regular
|
task: regular
|
||||||
python_version: 3.8
|
python_version: '3.8'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: sdist
|
task: sdist
|
||||||
python_version: 3.9
|
python_version: '3.9'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: bdist
|
task: bdist
|
||||||
python_version: 3.8
|
python_version: '3.7'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: if-else
|
task: if-else
|
||||||
python_version: 3.8
|
python_version: '3.8'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: mpi
|
task: mpi
|
||||||
method: source
|
method: source
|
||||||
python_version: 3.9
|
python_version: '3.9'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: mpi
|
task: mpi
|
||||||
method: pip
|
method: pip
|
||||||
python_version: 3.9
|
python_version: '3.10'
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
task: mpi
|
task: mpi
|
||||||
method: wheel
|
method: wheel
|
||||||
python_version: 3.7
|
python_version: '3.7'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
|
|
|
@ -15,7 +15,7 @@ env:
|
||||||
CONDA_ENV: test-env
|
CONDA_ENV: test-env
|
||||||
GITHUB_ACTIONS: 'true'
|
GITHUB_ACTIONS: 'true'
|
||||||
OS_NAME: 'linux'
|
OS_NAME: 'linux'
|
||||||
PYTHON_VERSION: 3.9
|
PYTHON_VERSION: '3.10'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
24
.vsts-ci.yml
24
.vsts-ci.yml
|
@ -9,7 +9,7 @@ pr:
|
||||||
- master
|
- master
|
||||||
variables:
|
variables:
|
||||||
AZURE: 'true'
|
AZURE: 'true'
|
||||||
PYTHON_VERSION: 3.9
|
PYTHON_VERSION: '3.10'
|
||||||
CONDA_ENV: test-env
|
CONDA_ENV: test-env
|
||||||
resources:
|
resources:
|
||||||
containers:
|
containers:
|
||||||
|
@ -35,9 +35,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
regular:
|
regular:
|
||||||
TASK: regular
|
TASK: regular
|
||||||
|
PYTHON_VERSION: '3.9'
|
||||||
sdist:
|
sdist:
|
||||||
TASK: sdist
|
TASK: sdist
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: '3.7'
|
||||||
bdist:
|
bdist:
|
||||||
TASK: bdist
|
TASK: bdist
|
||||||
inference:
|
inference:
|
||||||
|
@ -45,7 +46,7 @@ jobs:
|
||||||
mpi_source:
|
mpi_source:
|
||||||
TASK: mpi
|
TASK: mpi
|
||||||
METHOD: source
|
METHOD: source
|
||||||
PYTHON_VERSION: 3.8
|
PYTHON_VERSION: '3.8'
|
||||||
gpu_source:
|
gpu_source:
|
||||||
TASK: gpu
|
TASK: gpu
|
||||||
METHOD: source
|
METHOD: source
|
||||||
|
@ -94,7 +95,7 @@ jobs:
|
||||||
TASK: sdist
|
TASK: sdist
|
||||||
bdist:
|
bdist:
|
||||||
TASK: bdist
|
TASK: bdist
|
||||||
PYTHON_VERSION: 3.8
|
PYTHON_VERSION: '3.8'
|
||||||
inference:
|
inference:
|
||||||
TASK: if-else
|
TASK: if-else
|
||||||
mpi_source:
|
mpi_source:
|
||||||
|
@ -103,21 +104,23 @@ jobs:
|
||||||
mpi_pip:
|
mpi_pip:
|
||||||
TASK: mpi
|
TASK: mpi
|
||||||
METHOD: pip
|
METHOD: pip
|
||||||
PYTHON_VERSION: 3.8
|
PYTHON_VERSION: '3.9'
|
||||||
mpi_wheel:
|
mpi_wheel:
|
||||||
TASK: mpi
|
TASK: mpi
|
||||||
METHOD: wheel
|
METHOD: wheel
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: '3.7'
|
||||||
gpu_source:
|
gpu_source:
|
||||||
TASK: gpu
|
TASK: gpu
|
||||||
METHOD: source
|
METHOD: source
|
||||||
|
PYTHON_VERSION: '3.9'
|
||||||
gpu_pip:
|
gpu_pip:
|
||||||
TASK: gpu
|
TASK: gpu
|
||||||
METHOD: pip
|
METHOD: pip
|
||||||
|
PYTHON_VERSION: '3.8'
|
||||||
gpu_wheel:
|
gpu_wheel:
|
||||||
TASK: gpu
|
TASK: gpu
|
||||||
METHOD: wheel
|
METHOD: wheel
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: '3.7'
|
||||||
cpp_tests:
|
cpp_tests:
|
||||||
TASK: cpp-tests
|
TASK: cpp-tests
|
||||||
METHOD: with-sanitizers
|
METHOD: with-sanitizers
|
||||||
|
@ -223,10 +226,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
regular:
|
regular:
|
||||||
TASK: regular
|
TASK: regular
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: '3.7'
|
||||||
sdist:
|
sdist:
|
||||||
TASK: sdist
|
TASK: sdist
|
||||||
PYTHON_VERSION: 3.8
|
PYTHON_VERSION: '3.8'
|
||||||
bdist:
|
bdist:
|
||||||
TASK: bdist
|
TASK: bdist
|
||||||
swig:
|
swig:
|
||||||
|
@ -263,9 +266,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
regular:
|
regular:
|
||||||
TASK: regular
|
TASK: regular
|
||||||
|
PYTHON_VERSION: '3.9'
|
||||||
sdist:
|
sdist:
|
||||||
TASK: sdist
|
TASK: sdist
|
||||||
PYTHON_VERSION: 3.8
|
PYTHON_VERSION: '3.8'
|
||||||
bdist:
|
bdist:
|
||||||
TASK: bdist
|
TASK: bdist
|
||||||
swig:
|
swig:
|
||||||
|
|
|
@ -380,4 +380,5 @@ if __name__ == "__main__":
|
||||||
'Programming Language :: Python :: 3.7',
|
'Programming Language :: Python :: 3.7',
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
|
'Programming Language :: Python :: 3.10',
|
||||||
'Topic :: Scientific/Engineering :: Artificial Intelligence'])
|
'Topic :: Scientific/Engineering :: Artificial Intelligence'])
|
||||||
|
|
Загрузка…
Ссылка в новой задаче