"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "1bd3d7e3500480525fb3f4443b48edc4053305f8"
Unverified Commit f47b34f8 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[python] Drop Python 3.6 support (#4891)

* Update .appveyor.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update setup.py

* Update test.sh
parent bd2e949e
...@@ -28,7 +28,6 @@ install: ...@@ -28,7 +28,6 @@ install:
- set CONDA_ENV="test-env" - set CONDA_ENV="test-env"
- ps: | - ps: |
switch ($env:PYTHON_VERSION) { switch ($env:PYTHON_VERSION) {
"3.6" {$env:MINICONDA = "C:\Miniconda36-x64"}
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"} "3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
default {$env:MINICONDA = "C:\Miniconda37-x64"} default {$env:MINICONDA = "C:\Miniconda37-x64"}
} }
......
...@@ -114,14 +114,7 @@ if [[ $TASK == "swig" ]]; then ...@@ -114,14 +114,7 @@ if [[ $TASK == "swig" ]]; then
exit 0 exit 0
fi fi
# temporary fix for https://github.com/microsoft/LightGBM/issues/4769 conda install -q -y -n $CONDA_ENV cloudpickle "dask=2021.9.1" "distributed=2021.9.1" joblib matplotlib numpy pandas psutil pytest scikit-learn scipy
if [[ $PYTHON_VERSION == "3.6" ]]; then
DASK_DEPENDENCIES="dask distributed"
else
DASK_DEPENDENCIES="dask=2021.9.1 distributed=2021.9.1"
fi
conda install -q -y -n $CONDA_ENV cloudpickle ${DASK_DEPENDENCIES} joblib matplotlib numpy pandas psutil pytest scikit-learn scipy
pip install graphviz # python-graphviz from Anaconda is not allowed to be installed with Python 3.9 pip install graphviz # python-graphviz from Anaconda is not allowed to be installed with Python 3.9
if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then
......
...@@ -23,7 +23,7 @@ jobs: ...@@ -23,7 +23,7 @@ jobs:
include: include:
- os: macOS-latest - os: macOS-latest
task: regular task: regular
python_version: 3.6 python_version: 3.8
- os: macOS-latest - os: macOS-latest
task: sdist task: sdist
python_version: 3.9 python_version: 3.9
...@@ -40,7 +40,7 @@ jobs: ...@@ -40,7 +40,7 @@ jobs:
- os: macOS-latest - os: macOS-latest
task: mpi task: mpi
method: pip method: pip
python_version: 3.6 python_version: 3.9
- os: macOS-latest - os: macOS-latest
task: mpi task: mpi
method: wheel method: wheel
......
...@@ -87,7 +87,6 @@ jobs: ...@@ -87,7 +87,6 @@ jobs:
matrix: matrix:
regular: regular:
TASK: regular TASK: regular
PYTHON_VERSION: 3.6
sdist: sdist:
TASK: sdist TASK: sdist
bdist: bdist:
...@@ -112,7 +111,6 @@ jobs: ...@@ -112,7 +111,6 @@ jobs:
gpu_pip: gpu_pip:
TASK: gpu TASK: gpu
METHOD: pip METHOD: pip
PYTHON_VERSION: 3.6
gpu_wheel: gpu_wheel:
TASK: gpu TASK: gpu
METHOD: wheel METHOD: wheel
...@@ -262,7 +260,6 @@ jobs: ...@@ -262,7 +260,6 @@ jobs:
matrix: matrix:
regular: regular:
TASK: regular TASK: regular
PYTHON_VERSION: 3.6
sdist: sdist:
TASK: sdist TASK: sdist
PYTHON_VERSION: 3.8 PYTHON_VERSION: 3.8
......
...@@ -376,7 +376,6 @@ if __name__ == "__main__": ...@@ -376,7 +376,6 @@ if __name__ == "__main__":
'Operating System :: POSIX', 'Operating System :: POSIX',
'Operating System :: Unix', 'Operating System :: Unix',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment