1+ max_jobs : 5
2+ build :
3+ parallel : true
4+ verbosity : minimal
5+ skip_branch_with_pr : true
16environment :
27 global :
3- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
4- # /E:ON and /V:ON options are not enabled in the batch script intepreter
5- # See: http://stackoverflow.com/a/13751649/163740
6- CMD_IN_ENV : " cmd /E:ON /V:ON /C %APPVEYOR_BUILD_FOLDER%\\ ci\\ appveyor\\ run_with_env.cmd"
78 PYTHONUNBUFFERED : 1
89 EMBEDDED_LIB : 1
9- OPENSSL_VER : 1.1.0h
10+ SYSTEM_LIBSSH2 : 1
1011 PYPI_USER :
1112 secure : 2m0jy6JD/R9RExIosOT6YA==
1213 PYPI_PASS :
@@ -17,21 +18,18 @@ environment:
1718 PYTHON_ARCH : " 64"
1819 MSVC : " Visual Studio 14 Win64"
1920 ARCH : x64_86
20- SYSTEM_LIBSSH2 : 1
2121
2222 - PYTHON : " C:\\ Python37-x64"
2323 PYTHON_VERSION : " 3.7"
2424 PYTHON_ARCH : " 64"
2525 MSVC : " Visual Studio 14 Win64"
2626 ARCH : x64_86
27- SYSTEM_LIBSSH2 : 1
2827
2928 - PYTHON : " C:\\ Python38-x64"
3029 PYTHON_VERSION : " 3.8"
3130 PYTHON_ARCH : " 64"
3231 MSVC : " Visual Studio 14 Win64"
3332 ARCH : x64_86
34- SYSTEM_LIBSSH2 : 1
3533
3634install :
3735 # If there is a newer build queued for the same PR, cancel this one.
@@ -43,8 +41,12 @@ install:
4341 https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
4442 Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
4543 throw "There are newer queued builds for this pull request, failing early." }
46- - ECHO "Installed SDKs:"
47- - ps : " ls \" C:/Program Files/Microsoft SDKs/Windows\" "
44+ - set OPENSSL_DIR="C:\OpenSSL-v11-Win%PYTHON_ARCH%"
45+ - set VCLIBDIR=%WINDIR%\System32
46+ - cp %VCLIBDIR%/vcruntime*.dll ssh2/
47+ - cp %VCLIBDIR%/msvcp*.dll ssh2/
48+ - cp %VCLIBDIR%/msvcr*.dll ssh2/
49+ - cp %OPENSSL_DIR%/bin/*.dll ssh2/
4850
4951 # Prepend newly installed Python to the PATH of this build (this cannot be
5052 # done from inside the powershell script as it would require to restart
@@ -55,17 +57,7 @@ install:
5557 - " python --version"
5658 - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
5759
58- # Upgrade to the latest version of pip to avoid it displaying warnings
59- # about it being out of date.
60- # - "pip install --disable-pip-version-check --user --upgrade pip"
61-
62- # Install the build dependencies of the project. If some dependencies contain
63- # compiled extensions and are not provided as pre-built wheel packages,
64- # pip will build them from source using the MSVC compiler matching the
65- # target Python version and architecture
66- - " %CMD_IN_ENV% pip install -r requirements_dev.txt"
67- - " %CMD_IN_ENV% pip install -U wheel setuptools twine"
68- - git submodule update --init --recursive
60+ - pip install -U wheel setuptools twine cython
6961
7062 # .c files need to be generated on Windows to handle platform
7163 # specific code.
@@ -74,17 +66,17 @@ install:
7466 - python ci/appveyor/fix_version.py .
7567 - mv -f .git .git.bak
7668 - 7z x ci\appveyor\zlib1211.zip
77- - 7z x ci\appveyor\openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017.zip
78- - cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1-x%PYTHON_ARCH%.dll ssh2\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1.dll ssh2\
79- - cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1-x%PYTHON_ARCH%.dll ssh2\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1.dll ssh2\
8069 - ps : ls ssh2
70+
8171build_script :
82- - " %CMD_IN_ENV% ci\\ appveyor\\ build_zlib.bat"
83- - " %CMD_IN_ENV% ci\\ appveyor\\ build_ssh2.bat"
72+ - ci\\appveyor\\build_zlib.bat
73+ - ci\\appveyor\\build_ssh2.bat
8474 - rm -f ssh2/*.c
85- - " %CMD_IN_ENV% python setup.py build_ext -I libssh2/include"
86- - " %CMD_IN_ENV% python setup.py build"
87- - " %CMD_IN_ENV% python setup.py install"
75+ - python -V
76+ - python setup.py build_ext -I libssh2/include
77+ - python setup.py build
78+ - python setup.py install
79+ - ps : ls ssh2
8880
8981test_script :
9082 - cd dist
@@ -93,7 +85,7 @@ test_script:
9385
9486after_test :
9587 # If tests are successful, create binary packages for the project.
96- - " %CMD_IN_ENV% python setup.py bdist_wheel "
88+ - python setup.py bdist_wheel
9789 - mv dist/* .
9890
9991artifacts :
0 commit comments