1+ max_jobs : 5
2+ build :
3+ parallel : true
4+ verbosity : minimal
5+ skip_branch_with_pr : true
6+
17environment :
28 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"
79 PYTHONUNBUFFERED : 1
8- OPENSSL_VER : 1.1.0h
910 SYSTEM_LIBSSH : 1
1011 PYPI_USER :
1112 secure : 2m0jy6JD/R9RExIosOT6YA==
@@ -40,8 +41,12 @@ install:
4041 https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
4142 Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
4243 throw "There are newer queued builds for this pull request, failing early." }
43- - ECHO "Installed SDKs:"
44- - 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 ssh/
47+ - cp %VCLIBDIR%/msvcp*.dll ssh/
48+ - cp %VCLIBDIR%/msvcr*.dll ssh/
49+ - cp %OPENSSL_DIR%/bin/*.dll ssh/
4550
4651 # Prepend newly installed Python to the PATH of this build (this cannot be
4752 # done from inside the powershell script as it would require to restart
@@ -51,57 +56,42 @@ install:
5156 # Check that we have the expected version and architecture for Python
5257 - " python --version"
5358 - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
54-
55- # Upgrade to the latest version of pip to avoid it displaying warnings
56- # about it being out of date.
57- # - "pip install --disable-pip-version-check --user --upgrade pip"
58-
59- # Install the build dependencies of the project. If some dependencies contain
60- # compiled extensions and are not provided as pre-built wheel packages,
61- # pip will build them from source using the MSVC compiler matching the
62- # target Python version and architecture
63- - " %CMD_IN_ENV% pip install -r requirements_dev.txt"
64- - " %CMD_IN_ENV% pip install -U wheel setuptools twine"
59+ - pip install -U wheel setuptools twine cython
6560
6661 # .c files need to be generated on Windows to handle platform
6762 # specific code.
6863 # Fix version used by versioneer to current git tag so the generated .c files
6964 # do not cause a version change.
7065 - python ci/appveyor/fix_version.py .
7166 - mv -f .git .git.bak
72- - IF NOT "%PYTHON_VERSION%" == "2.7" (
73- 7z x ci\appveyor\zlib1211.zip
74- appveyor DownloadFile https://indy.fulgan.com/SSL/Archive/Experimental/openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017.zip
75- appveyor DownloadFile https://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-src.zip
76- 7z x ci\appveyor\kfw-4.1-src.zip
77- 7z x openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017.zip
78- cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1-x%PYTHON_ARCH%.dll ssh\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1.dll ssh\
79- cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1-x%PYTHON_ARCH%.dll ssh\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1.dll ssh\
80- )
67+ - 7z x ci\appveyor\zlib1211.zip
68+ # - appveyor DownloadFile https://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-src.zip
69+ # - 7z x kfw-4.1-src.zip
8170 - ps : ls ssh
8271 - ps : ls
8372
8473build_script :
85- - " %CMD_IN_ENV% ci\\ appveyor\\ build_krb.bat"
86- - " %CMD_IN_ENV% ci\\ appveyor\\ build_zlib.bat"
87- - " %CMD_IN_ENV% ci\\ appveyor\\ build_ssh.bat"
74+ # - ci\\appveyor\\build_krb.bat
75+ - ci\\appveyor\\build_zlib.bat
76+ - ci\\appveyor\\build_ssh.bat
77+ - ps : ls src/src/Release
8878 - rm -f ssh/*.c
89- - " %CMD_IN_ENV% python setup.py build_ext -I ci/appveyor/include"
90- - " %CMD_IN_ENV% python setup.py build"
91- - " %CMD_IN_ENV% python setup.py install"
79+ - python -V
80+ - python setup.py build_ext
81+ - python setup.py build
82+ - python setup.py install
83+ - ps : ls ssh
9284
9385test_script :
9486 - cd dist
9587 - python ..\\ci\\appveyor\\import_test.py
9688 - cd ..
9789
9890after_test :
99- # If tests are successful, create binary packages for the project.
100- - " %CMD_IN_ENV% python setup.py bdist_wheel"
91+ - python setup.py bdist_wheel
10192 - mv dist/* .
10293
10394artifacts :
104- # Archive the generated packages in the ci.appveyor.com build report.
10595 - path : " *.whl"
10696
10797deploy_script :
0 commit comments