3
3
parallel : true
4
4
verbosity : minimal
5
5
skip_branch_with_pr : true
6
+
6
7
environment :
7
8
global :
8
9
PYTHONUNBUFFERED : 1
9
10
EMBEDDED_LIB : 1
10
11
SYSTEM_LIBSSH2 : 1
11
12
PYPI_USER :
12
- secure : 2m0jy6JD/R9RExIosOT6YA ==
13
+ secure : WKF8ok0UPIgkA+isDUuHww ==
13
14
PYPI_PASS :
14
- secure : x+dF0A8BZUf2IrPNRN1O0w==
15
- matrix :
16
- - PYTHON : " C:\\ Python36-x64"
17
- PYTHON_VERSION : " 3.6"
18
- PYTHON_ARCH : " 64"
19
- MSVC : " Visual Studio 14 Win64"
20
- ARCH : x64_86
21
-
22
- - PYTHON : " C:\\ Python37-x64"
23
- PYTHON_VERSION : " 3.7"
24
- PYTHON_ARCH : " 64"
25
- MSVC : " Visual Studio 14 Win64"
26
- ARCH : x64_86
27
-
28
- - PYTHON : " C:\\ Python38-x64"
29
- PYTHON_VERSION : " 3.8"
30
- PYTHON_ARCH : " 64"
31
- MSVC : " Visual Studio 14 Win64"
32
- ARCH : x64_86
15
+ secure : uXkrTaPGSNQdXTJIt3aiyyGnH/ZtvWbDVIXdMrsgwROIJ0kprWp5crS6TAqqddyrFxd7Trrfjg/TjM1/Yx9JzfuKTfoJh1zyviWD/j2zibsycmJQy4Q+CrZ6uI3IRQwe/2ILKxGzLGFBWaqt6C8NaQnkKP+h7ptnPeVhy1+kaOaJowwrCKWje1Ag3CJCAJxPjSC8yl1nlM3DA1rAIk2C5SR4eQQLJeEpPSg3nDnxR4o4YjmA7ILD3OuM1Fbh5iue/rUvWzdt6QCxCbE4egtrCQ==
16
+ # Default python version to run single commands with
17
+ PYTHON_DEF : " C:\\ Python36-x64"
18
+ PYTHON_VERSION : " 3.6"
19
+ # Python versions to build wheels for
20
+ PYTHONVERS : C:\Python36-x64 C:\Python37-x64 C:\Python38-x64
21
+ PYTHON_ARCH : " 64"
22
+ MSVC : " Visual Studio 14 Win64"
33
23
34
24
install :
35
25
# If there is a newer build queued for the same PR, cancel this one.
@@ -48,49 +38,44 @@ install:
48
38
- cp %VCLIBDIR%/msvcr*.dll ssh2/
49
39
- cp %OPENSSL_DIR%/bin/*.dll ssh2/
50
40
51
- # Prepend newly installed Python to the PATH of this build (this cannot be
52
- # done from inside the powershell script as it would require to restart
53
- # the parent CMD process).
54
- - " SET PATH=%PYTHON%;%PYTHON%\\ Scripts;%PATH%"
55
-
56
- # Check that we have the expected version and architecture for Python
57
- - " python --version"
58
- - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
59
-
60
- - pip install -U wheel setuptools twine cython
41
+ - for %%I in (%PYTHONVERS%) do %%I\python.exe -V
42
+ - for %%I in (%PYTHONVERS%) do %%I\Scripts\pip install -U wheel setuptools twine cython
61
43
62
44
# .c files need to be generated on Windows to handle platform
63
45
# specific code.
64
46
# Fix version used by versioneer to current git tag so the generated .c files
65
47
# do not cause a version change.
66
- - python ci/appveyor/fix_version.py .
48
+ - " %PYTHON_DEF% \\ python.exe ci/appveyor/fix_version.py ."
67
49
- mv -f .git .git.bak
68
50
- 7z x ci\appveyor\zlib1211.zip
69
51
- ps : ls ssh2
70
52
71
53
build_script :
72
54
- ci\\appveyor\\build_zlib.bat
55
+ - for %%I in (%PYTHONVERS%) do cp C:/zlib/lib/zlibstatic.lib %%I/libs/
56
+ - for %%I in (%PYTHONVERS%) do ls %%I/libs/
73
57
- ci\\appveyor\\build_ssh2.bat
58
+ - for %%I in (%PYTHONVERS%) do cp src/src/libssh2.lib %%I/libs/ || cp src/src/Release/libssh2.lib %%I/libs/
74
59
- rm -f ssh2/*.c
75
- - python -V
76
- - python setup.py build_ext -I libssh2/include
77
- - python setup.py build
78
- - python setup.py install
60
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe -V
61
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py build_ext
62
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py build
63
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe setup.py install
79
64
- ps : ls ssh2
80
65
81
66
test_script :
82
67
- cd dist
83
- - python -c "from ssh2.session import Session; Session()"
68
+ - for %%I in (%PYTHONVERS%) do %%I\ python.exe -c "from ssh2.session import Session; Session()"
84
69
- cd ..
85
70
86
71
after_test :
87
- # If tests are successful, create binary packages for the project.
88
- - python setup.py bdist_wheel
72
+ - for %%I in (%PYTHONVERS%) do %%I\python.exe setup.py bdist_wheel
89
73
- mv dist/* .
90
74
91
75
artifacts :
92
- # Archive the generated packages in the ci.appveyor.com build report.
93
76
- path : " *.whl"
94
77
95
78
deploy_script :
79
+ # Calling twine requires we set path
80
+ - " SET PATH=%PYTHON_DEF%;%PYTHON_DEF%\\ Scripts;%PATH%"
96
81
- python ci/appveyor/pypi_upload.py *.whl
0 commit comments