Skip to content

Commit 706b045

Browse files
Merge 053fab2 into 1a12c41
2 parents 1a12c41 + 053fab2 commit 706b045

13 files changed

+340
-91
lines changed

appveyor.yml

-91
This file was deleted.

azure-pipelines.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Adapted from https://github.com/numba/numba/blob/master/azure-pipelines.yml
2+
jobs:
3+
# Mac and Linux could potentially use the same template
4+
# except it isn't clear how to use a different build matrix
5+
# for each, so for now they are separate
6+
- template: ci/azure/macos.yml
7+
parameters:
8+
name: macOS
9+
vmImage: xcode9-macos10.13
10+
# - template: ci/azure/linux.yml
11+
# parameters:
12+
# name: Linux
13+
# vmImage: ubuntu-16.04
14+
15+
# Windows Python 2.7 needs VC 9.0 installed, and not sure
16+
# how to make that a conditional task, so for now these are
17+
# separate templates as well
18+
- template: ci/azure/windows.yml
19+
parameters:
20+
name: Windows
21+
vmImage: vs2017-win2017
22+
- template: ci/azure/windows-py27.yml
23+
parameters:
24+
name: WindowsPy27
25+
vmImage: vs2017-win2017

ci/azure-macos-35.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pandas
2+
channels:
3+
- defaults
4+
dependencies:
5+
- beautifulsoup4
6+
- bottleneck
7+
- cython>=0.28.2
8+
- html5lib
9+
- jinja2
10+
- lxml
11+
- matplotlib
12+
- nomkl
13+
- numexpr
14+
- numpy=1.10.4
15+
- openpyxl=2.5.5
16+
- pytables
17+
- python=3.5*
18+
- pytz
19+
- xarray
20+
- xlrd
21+
- xlsxwriter
22+
- xlwt
23+
# universal
24+
- pytest
25+
- pytest-xdist
26+
- pip:
27+
- python-dateutil==2.5.3
28+
- hypothesis>=3.58.0

ci/azure-windows-27.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: pandas
2+
channels:
3+
- defaults
4+
- conda-forge
5+
dependencies:
6+
- beautifulsoup4
7+
- bottleneck
8+
- dateutil
9+
- gcsfs
10+
- html5lib
11+
- jinja2=2.8
12+
- lxml
13+
- matplotlib
14+
- numexpr
15+
- numpy=1.12*
16+
- openpyxl=2.5.5
17+
- pytables
18+
- python=2.7.*
19+
- pytz
20+
- s3fs
21+
- scipy
22+
- sqlalchemy
23+
- xlrd
24+
- xlsxwriter
25+
- xlwt
26+
# universal
27+
- cython>=0.28.2
28+
- pytest
29+
- pytest-xdist
30+
- moto
31+
- hypothesis>=3.58.0

ci/azure-windows-36.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pandas
2+
channels:
3+
- defaults
4+
- conda-forge
5+
dependencies:
6+
- blosc
7+
- bottleneck
8+
- fastparquet
9+
- feather-format
10+
- matplotlib
11+
- numexpr
12+
- numpy=1.14*
13+
- openpyxl=2.5.5
14+
- pyarrow
15+
- pytables
16+
- python-dateutil
17+
- python=3.6.*
18+
- pytz
19+
- scipy
20+
- thrift=0.10*
21+
- xlrd
22+
- xlsxwriter
23+
- xlwt
24+
# universal
25+
- cython>=0.28.2
26+
- pytest
27+
- pytest-xdist
28+
- hypothesis>=3.58.0

ci/azure/macos.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
parameters:
2+
name: ''
3+
vmImage: ''
4+
5+
jobs:
6+
- job: ${{ parameters.name }}
7+
pool:
8+
vmImage: ${{ parameters.vmImage }}
9+
strategy:
10+
maxParallel: 11
11+
matrix:
12+
py35_np_110:
13+
ENV_FILE: ci/azure-macos-35.yml
14+
CONDA_PY: "35"
15+
CONDA_ENV: pandas
16+
TEST_ARGS: "--skip-slow --skip-network"
17+
18+
steps:
19+
- script: |
20+
if [ "$(uname)" == "Linux" ]; then sudo apt-get install -y libc6-dev-i386; fi
21+
echo "Installing Miniconda"
22+
ci/incremental/install_miniconda.sh
23+
export PATH=$HOME/miniconda3/bin:$PATH
24+
echo "Setting up Conda environment"
25+
ci/incremental/setup_conda_environment.sh
26+
displayName: 'Before Install'
27+
- script: |
28+
export PATH=$HOME/miniconda3/bin:$PATH
29+
ci/incremental/build.sh
30+
displayName: 'Build'
31+
- script: |
32+
export PATH=$HOME/miniconda3/bin:$PATH
33+
ci/script_single.sh
34+
ci/script_multi.sh
35+
echo "[Test done]"
36+
displayName: 'Test'
37+
- script: |
38+
export PATH=$HOME/miniconda3/bin:$PATH
39+
source activate pandas && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd

ci/azure/windows-py27.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
parameters:
2+
name: ''
3+
vmImage: ''
4+
5+
jobs:
6+
- job: ${{ parameters.name }}
7+
pool:
8+
vmImage: ${{ parameters.vmImage }}
9+
strategy:
10+
maxParallel: 11
11+
matrix:
12+
py36_np14:
13+
ENV_FILE: ci/azure-windows-27.yml
14+
CONDA_PY: "27"
15+
CONDA_ENV: pandas
16+
17+
steps:
18+
- task: CondaEnvironment@1
19+
inputs:
20+
updateConda: no
21+
packageSpecs: ''
22+
23+
# Need to install VC 9.0 only for Python 2.7
24+
# Once we understand how to do tasks conditional on build matrix variables
25+
# we could merge this into azure-windows.yml
26+
- powershell: |
27+
$wc = New-Object net.webclient
28+
$wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi")
29+
Start-Process "VCForPython27.msi" /qn -Wait
30+
displayName: 'Install VC 9.0'
31+
32+
- script: |
33+
ci\\incremental\\setup_conda_environment.cmd
34+
displayName: 'Before Install'
35+
- script: |
36+
ci\\incremental\\build.cmd
37+
displayName: 'Build'
38+
- script: |
39+
call activate %CONDA_ENV%
40+
pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %*
41+
displayName: 'Test'

ci/azure/windows.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
parameters:
2+
name: ''
3+
vmImage: ''
4+
5+
jobs:
6+
- job: ${{ parameters.name }}
7+
pool:
8+
vmImage: ${{ parameters.vmImage }}
9+
strategy:
10+
maxParallel: 11
11+
matrix:
12+
py36_np14:
13+
ENV_FILE: ci/azure-windows-36.yml
14+
CONDA_PY: "36"
15+
CONDA_ENV: pandas
16+
17+
steps:
18+
- task: CondaEnvironment@1
19+
inputs:
20+
updateConda: no
21+
packageSpecs: ''
22+
23+
- script: |
24+
ci\\incremental\\setup_conda_environment.cmd
25+
displayName: 'Before Install'
26+
- script: |
27+
ci\\incremental\\build.cmd
28+
displayName: 'Build'
29+
- script: |
30+
call activate %CONDA_ENV%
31+
pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %*
32+
displayName: 'Test'

ci/incremental/build.cmd

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/build.cmd
2+
call activate %CONDA_ENV%
3+
4+
@rem Build numba extensions without silencing compile errors
5+
python setup.py build_ext -q --inplace
6+
7+
@rem Install pandas locally
8+
python -m pip install -e .
9+
10+
if %errorlevel% neq 0 exit /b %errorlevel%

ci/incremental/build.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
source activate $CONDA_ENV
4+
5+
# Make sure any error below is reported as such
6+
set -v -e
7+
8+
echo "[building extensions]"
9+
python setup.py build_ext -q --inplace
10+
python -m pip install -e .
11+
12+
echo
13+
echo "[show environment]"
14+
conda list
15+
16+
echo
17+
echo "[done]"
18+
exit 0

ci/incremental/install_miniconda.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -v -e
4+
5+
# Install Miniconda
6+
unamestr=`uname`
7+
if [[ "$unamestr" == 'Linux' ]]; then
8+
if [[ "$BITS32" == "yes" ]]; then
9+
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86.sh -O miniconda.sh
10+
else
11+
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
12+
fi
13+
elif [[ "$unamestr" == 'Darwin' ]]; then
14+
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
15+
else
16+
echo Error
17+
fi
18+
chmod +x miniconda.sh
19+
./miniconda.sh -b
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/setup_conda_environment.cmd
2+
@rem The cmd /C hack circumvents a regression where conda installs a conda.bat
3+
@rem script in non-root environments.
4+
set CONDA_INSTALL=cmd /C conda install -q -y
5+
set PIP_INSTALL=pip install -q
6+
7+
@echo on
8+
9+
@rem Deactivate any environment
10+
call deactivate
11+
@rem Display root environment (for debugging)
12+
conda list
13+
@rem Clean up any left-over from a previous build
14+
conda remove --all -q -y -n %CONDA_ENV%
15+
@rem Scipy, CFFI, jinja2 and IPython are optional dependencies, but exercised in the test suite
16+
conda env create -n %CONDA_ENV% --file=ci\azure-windows-%CONDA_PY%.yaml
17+
18+
call activate %CONDA_ENV%
19+
conda list
20+
21+
if %errorlevel% neq 0 exit /b %errorlevel%

0 commit comments

Comments
 (0)