From ebb534e6243274c56d56580c67f20d91c77c6106 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 13 Nov 2020 20:27:32 -0600 Subject: [PATCH] Backport PR #37039: CI: move py39 build to conda #33948 --- .travis.yml | 10 +--------- ci/azure/posix.yml | 5 +++++ ci/build39.sh | 13 ------------- ci/deps/azure-39.yaml | 17 +++++++++++++++++ ci/setup_env.sh | 5 ----- 5 files changed, 23 insertions(+), 27 deletions(-) delete mode 100755 ci/build39.sh create mode 100644 ci/deps/azure-39.yaml diff --git a/.travis.yml b/.travis.yml index 1e5ea21b0f2d9..f43f4a1d16ff8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,14 +29,6 @@ matrix: fast_finish: true include: - # In allowed failures - - dist: bionic - python: 3.9-dev - env: - - JOB="3.9-dev" PATTERN="(not slow and not network and not clipboard)" - - env: - - JOB="3.8" ENV_FILE="ci/deps/travis-38.yaml" PATTERN="(not slow and not network and not clipboard)" - - env: - JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="(not slow and not network and not clipboard)" @@ -92,7 +84,7 @@ install: script: - echo "script start" - echo "$JOB" - - if [ "$JOB" != "3.9-dev" ]; then source activate pandas-dev; fi + - source activate pandas-dev - ci/run_tests.sh after_script: diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index f716974f6add1..457a1f3f507d4 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -65,6 +65,11 @@ jobs: PANDAS_TESTING_MODE: "deprecate" EXTRA_APT: "xsel" + py39: + ENV_FILE: ci/deps/azure-39.yaml + CONDA_PY: "39" + PATTERN: "not slow and not network and not clipboard" + steps: - script: | if [ "$(uname)" == "Linux" ]; then diff --git a/ci/build39.sh b/ci/build39.sh deleted file mode 100755 index f2ef11d5a71f4..0000000000000 --- a/ci/build39.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -e -# Special build for python3.9 until numpy puts its own wheels up - -sudo apt-get install build-essential gcc xvfb -pip install --no-deps -U pip wheel setuptools -pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis - -python setup.py build_ext -inplace -python -m pip install --no-build-isolation -e . - -python -c "import sys; print(sys.version_info)" -python -c "import pandas as pd" -python -c "import hypothesis" diff --git a/ci/deps/azure-39.yaml b/ci/deps/azure-39.yaml new file mode 100644 index 0000000000000..67edc83a9d738 --- /dev/null +++ b/ci/deps/azure-39.yaml @@ -0,0 +1,17 @@ +name: pandas-dev +channels: + - conda-forge +dependencies: + - python=3.9.* + + # tools + - cython>=0.29.21 + - pytest>=5.0.1 + - pytest-xdist>=1.21 + - hypothesis>=3.58.0 + - pytest-azurepipelines + + # pandas dependencies + - numpy + - python-dateutil + - pytz diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 065f9e56ea171..9adb6fe674099 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -1,10 +1,5 @@ #!/bin/bash -e -if [ "$JOB" == "3.9-dev" ]; then - /bin/bash ci/build39.sh - exit 0 -fi - # edit the locale file if needed if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then echo "Adding locale to the first line of pandas/__init__.py"