Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 2, 2021
1 parent 21adede commit d2de22c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
8 changes: 1 addition & 7 deletions appveyor.yml
Expand Up @@ -11,18 +11,12 @@ init:
install:
- "%PYTHON%\\python -m pip install --upgrade pip"
# for many packages
- "%PYTHON%\\Scripts\\pip install pymyinstall numpy"
# for numba
- "%PYTHON%\\Scripts\\pip install importlib_metadata"
# for cartopy
- "%PYTHON%\\Scripts\\pip install pyshp"
- "%PYTHON%\\Scripts\\pip install -r requirements-win.txt"
# install precompiled versions not available on pypi
- "%PYTHON%\\Scripts\\pymy_install3 cartopy pyproj shapely llvmlite numba"
# other dependencies
- "%PYTHON%\\Scripts\\pip install -r requirements.txt --no-deps"

build: off

test_script:
- "%PYTHON%\\python -u .\\setup.py unittests"

Expand Down
21 changes: 11 additions & 10 deletions azure-pipelines.yml
Expand Up @@ -7,7 +7,6 @@ jobs:
Python39:
python.version: '3.9'
maxParallel: 3

steps:
- task: UsePythonVersion@0
inputs:
Expand All @@ -21,18 +20,23 @@ jobs:
displayName: 'Install Pandoc'
- script: sudo apt-get install -y texlive texlive-latex-extra texlive-xetex dvipng
displayName: 'Install Latex'
- script: sudo apt-get install -y libgeos-dev libproj-dev proj-data graphviz libblas-dev liblapack-dev
displayName: 'Install Geos packages'
- script: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 10
ls /usr/bin/llvm*
export LLVM_CONFIG=/usr/bin/llvm-config
displayName: 'Install llvmlite'
- script: sudo apt-get install -y p7zip-full
displayName: 'Install 7z, rar'
- script: sudo apt-get install -y graphviz
displayName: 'Install Graphviz'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: pip install numpy scipy
displayName: 'Install numpy scipy'
- script: pip install -r requirements.txt
displayName: 'Install Requirements'
- script: python -m pip install scikit-learn
displayName: 'Install scipy scikit-learn'
- script: python -u setup.py unittests
displayName: 'Runs Unit Tests'
- script: python -u setup.py bdist_wheel
Expand All @@ -51,15 +55,13 @@ jobs:
matrix:
Python39:
python.version: "3.9"

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: gcc --version
displayName: 'gcc version'

- script: |
brew update
displayName: 'brew update'
Expand Down Expand Up @@ -88,13 +90,12 @@ jobs:
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- bash: conda info -a
displayName: 'Info'
- bash: conda create --yes --quiet --name pyenv -c defaults -c conda-forge python=$PYTHON_VERSION tox sphinx jupyter Cython numpy mkl scipy scikit-learn pandas coverage pylint
displayName: Create Anaconda environment.
- bash: conda list
- bash: source activate pyenv
- script: conda install numpy scipy
displayName: 'Install numpy scipy'
- script: pip install -r requirements.txt
- script: conda install requirements.txt
displayName: 'Install Requirements'
- script: export PYTHONPATH=src
displayName: 'PYTHONPATH=src'
Expand Down
6 changes: 6 additions & 0 deletions requirements-win.txt
@@ -0,0 +1,6 @@
astroid
importlib_metadata
matplotlib
numpy
pymyinstall
pyshp
8 changes: 0 additions & 8 deletions requirements.txt
Expand Up @@ -14,14 +14,6 @@ sphinx
sphinxcontrib.imagesvg
wheel

# matplotlib
cycler
kiwisolver
pillow
pyparsing
python-dateutil
six

# numba
llvmlite
numba
Expand Down

0 comments on commit d2de22c

Please sign in to comment.