Update Python requirement to >=3.8. (#8071)
Additional changes: - Use mamba for CPU test on Jenkins. - Cleanup CPU test dependencies. - Restore some of the modin tests
This commit is contained in:
parent
8dd96013f1
commit
dae7a41baa
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -136,7 +136,7 @@ jobs:
|
||||
submodules: 'true'
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
python-version: "3.8"
|
||||
architecture: 'x64'
|
||||
- name: Install Python packages
|
||||
run: |
|
||||
@ -155,7 +155,7 @@ jobs:
|
||||
submodules: 'true'
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
python-version: "3.8"
|
||||
architecture: 'x64'
|
||||
- name: Install Python packages
|
||||
run: |
|
||||
@ -173,7 +173,7 @@ jobs:
|
||||
submodules: 'true'
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
python-version: "3.8"
|
||||
architecture: 'x64'
|
||||
- name: Install system packages
|
||||
run: |
|
||||
@ -210,7 +210,7 @@ jobs:
|
||||
submodules: 'true'
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.8'
|
||||
python-version: "3.8"
|
||||
architecture: 'x64'
|
||||
- name: Install system packages
|
||||
run: |
|
||||
|
||||
2
.github/workflows/python_wheels.yml
vendored
2
.github/workflows/python_wheels.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: "3.8"
|
||||
- name: Build wheels
|
||||
run: bash tests/ci_build/build_python_wheels.sh ${{ matrix.platform_id }} ${{ github.sha }}
|
||||
- name: Extract branch name
|
||||
|
||||
2
.github/workflows/r_tests.yml
vendored
2
.github/workflows/r_tests.yml
vendored
@ -97,7 +97,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
python-version: "3.8"
|
||||
architecture: 'x64'
|
||||
|
||||
- name: Test R
|
||||
|
||||
@ -365,11 +365,10 @@ if __name__ == '__main__':
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10'],
|
||||
python_requires=">=3.7",
|
||||
python_requires=">=3.8",
|
||||
url='https://github.com/dmlc/xgboost')
|
||||
|
||||
clean_up()
|
||||
|
||||
@ -15,8 +15,8 @@ RUN \
|
||||
wget -nv -nc https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.sh --no-check-certificate && \
|
||||
bash cmake-3.14.0-Linux-x86_64.sh --skip-license --prefix=/usr && \
|
||||
# Python
|
||||
wget -O Miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
|
||||
bash Miniconda3.sh -b -p /opt/python
|
||||
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh && \
|
||||
bash Mambaforge-Linux-x86_64.sh -b -p /opt/python
|
||||
|
||||
ENV PATH=/opt/python/bin:$PATH
|
||||
ENV CC=gcc-8
|
||||
@ -28,7 +28,7 @@ ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
|
||||
|
||||
# Create new Conda environment
|
||||
COPY conda_env/cpu_test.yml /scripts/
|
||||
RUN conda env create -n cpu_test --file=/scripts/cpu_test.yml
|
||||
RUN mamba env create -n cpu_test --file=/scripts/cpu_test.yml
|
||||
|
||||
# Install lightweight sudo (not bound to TTY)
|
||||
RUN set -ex; \
|
||||
|
||||
@ -34,7 +34,7 @@ if [[ "$platform_id" == macosx_* ]]; then
|
||||
elif [[ "$platform_id" == macosx_x86_64 ]]; then
|
||||
# MacOS, Intel
|
||||
wheel_tag=macosx_10_15_x86_64.macosx_11_0_x86_64.macosx_12_0_x86_64
|
||||
cpython_ver=37
|
||||
cpython_ver=38
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.13
|
||||
#OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-64/llvm-openmp-11.1.0-hda6cdc1_1.tar.bz2"
|
||||
OPENMP_URL="https://xgboost-ci-jenkins-artifacts.s3.us-west-2.amazonaws.com/llvm-openmp-11.1.0-hda6cdc1_1-osx-64.tar.bz2"
|
||||
|
||||
@ -2,7 +2,7 @@ name: aarch64_test
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.7
|
||||
- python=3.8
|
||||
- pip
|
||||
- wheel
|
||||
- pytest
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
name: cpu_test
|
||||
channels:
|
||||
- defaults
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.7
|
||||
- python=3.8
|
||||
- pip
|
||||
- wheel
|
||||
- pyyaml
|
||||
@ -13,16 +14,13 @@ dependencies:
|
||||
- scikit-learn
|
||||
- pandas
|
||||
- matplotlib
|
||||
- dask
|
||||
- distributed
|
||||
- dask>=2022.6
|
||||
- distributed>=2022.6
|
||||
- python-graphviz
|
||||
- hypothesis
|
||||
- hypothesis>=6.46
|
||||
- astroid
|
||||
- sphinx
|
||||
- sh
|
||||
- recommonmark
|
||||
- mock
|
||||
- breathe
|
||||
- pytest
|
||||
- pytest-cov
|
||||
- python-kubernetes
|
||||
@ -30,17 +28,13 @@ dependencies:
|
||||
- jsonschema
|
||||
- boto3
|
||||
- awscli
|
||||
- numba
|
||||
- llvmlite
|
||||
- py-ubjson
|
||||
- cffi
|
||||
- pyarrow
|
||||
- protobuf<=3.20
|
||||
- pyspark
|
||||
- protobuf
|
||||
- pyspark>=3.3.0
|
||||
- cloudpickle
|
||||
- shap
|
||||
- modin
|
||||
- pip:
|
||||
- shap
|
||||
- ipython # required by shap at import time.
|
||||
- sphinx_rtd_theme
|
||||
- datatable
|
||||
- modin[all]
|
||||
|
||||
@ -2,7 +2,7 @@ name: macos_test
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.7
|
||||
- python=3.8
|
||||
- pip
|
||||
- wheel
|
||||
- pyyaml
|
||||
|
||||
@ -19,9 +19,8 @@ rng = np.random.RandomState(1994)
|
||||
|
||||
|
||||
class TestModin:
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_modin(self):
|
||||
|
||||
df = md.DataFrame([[1, 2., True], [2, 3., False]],
|
||||
columns=['a', 'b', 'c'])
|
||||
dm = xgb.DMatrix(df, label=md.Series([1, 2]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user