36
36
OS=Linux ;
37
37
else
38
38
OS=MacOSX ;
39
+ brew install gsed
40
+ export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH";
39
41
fi ;
40
42
curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-$OS-x86_64.sh > miniconda.sh
41
43
- sh : bash miniconda.sh -b -p $HOME/miniconda;
@@ -44,23 +46,14 @@ init:
44
46
install :
45
47
- conda config --set always_yes yes --set changeps1 no
46
48
- conda update -q conda
47
- - pwsh : ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$env:PYTHON_VERSION") | Set-Content -Path environment.yml
49
+ # Python version substitution in environment.yml for Linux/MacOS, update the Python version to be replaced when we raise the minimum Python version
48
50
- sh : sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
49
- - pwsh : type environment.yml
51
+ # Python version substitution in environment.yml for Windows, update the Python version to be replaced when we raise the minimum Python version
52
+ - pwsh : ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$env:PYTHON_VERSION") | Set-Content -Path environment.yml
53
+ - sh : cat environment.yml
50
54
- conda env create -f environment.yml
51
55
- activate cadquery
52
- # - cmd: conda install -c conda-forge -c defaults -c cadquery python=%PYTHON_VERSION%
53
- # - sh: conda install -c conda-forge -c defaults -c cadquery python=$PYTHON_VERSION
54
- # - pip install black=19.10b0
55
- # - cmd: conda install python=%PYTHON_VERSION%
56
- # - sh: conda install python=$PYTHON_VERSION
57
56
-
pip install git+https://github.com/CadQuery/[email protected]
58
- # - pip install mypy
59
- # - pip install pytest
60
- # - pip install pytest-cov
61
- # - pip install path
62
- # - pip install docutils
63
- # - pip install codecov
64
57
65
58
build : false
66
59
0 commit comments