Skip to content

Commit

Permalink
[python] Drop Python 3.6 support (#4891)
Browse files Browse the repository at this point in the history
* Update .appveyor.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update setup.py

* Update test.sh
  • Loading branch information
StrikerRUS authored Dec 18, 2021
1 parent bd2e949 commit f47b34f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ install:
- set CONDA_ENV="test-env"
- ps: |
switch ($env:PYTHON_VERSION) {
"3.6" {$env:MINICONDA = "C:\Miniconda36-x64"}
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
default {$env:MINICONDA = "C:\Miniconda37-x64"}
}
Expand Down
9 changes: 1 addition & 8 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,7 @@ if [[ $TASK == "swig" ]]; then
exit 0
fi

# temporary fix for https://github.com/microsoft/LightGBM/issues/4769
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
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
pip install graphviz # python-graphviz from Anaconda is not allowed to be installed with Python 3.9

if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
include:
- os: macOS-latest
task: regular
python_version: 3.6
python_version: 3.8
- os: macOS-latest
task: sdist
python_version: 3.9
Expand All @@ -40,7 +40,7 @@ jobs:
- os: macOS-latest
task: mpi
method: pip
python_version: 3.6
python_version: 3.9
- os: macOS-latest
task: mpi
method: wheel
Expand Down
3 changes: 0 additions & 3 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: 3.6
sdist:
TASK: sdist
bdist:
Expand All @@ -112,7 +111,6 @@ jobs:
gpu_pip:
TASK: gpu
METHOD: pip
PYTHON_VERSION: 3.6
gpu_wheel:
TASK: gpu
METHOD: wheel
Expand Down Expand Up @@ -262,7 +260,6 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: 3.6
sdist:
TASK: sdist
PYTHON_VERSION: 3.8
Expand Down
1 change: 0 additions & 1 deletion python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ def run(self) -> None:
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand Down

0 comments on commit f47b34f

Please sign in to comment.