File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,26 @@ environment:
2
2
global :
3
3
LIBRDKAFKA_NUGET_VERSION : 1.4.0-RC7
4
4
CIBW_SKIP : cp33-* cp34-*
5
- CIBW_TEST_REQUIRES : pytest pytest-timeout requests avro trivup
5
+ CIBW_TEST_REQUIRES : pytest pytest-timeout requests trivup
6
6
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
7
7
# /E:ON and /V:ON options are not enabled in the batch script intepreter
8
8
# See: http://stackoverflow.com/a/13751649/163740
9
9
CMD_IN_ENV : " cmd /E:ON /V:ON /C .\\ tools\\ appveyor\\ run_with_env.cmd"
10
+ matrix :
11
+ - PYTHON : " C:\\ Python27-x64"
12
+ PYTHON_VERSION : " 2.7.17"
13
+ PYTHON_SHORTVER : " 27"
14
+ PYTHON_ARCH : " 64"
15
+ - PYTHON : " C:\\ Python36-x64"
16
+ PYTHON_VERSION : " 3.6.8"
17
+ PYTHON_SHORTVER : " 36"
18
+ PYTHON_ARCH : " 64"
19
+ WHEEL_UPLOAD : true
20
+
21
+ install :
22
+ - SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
23
+ - python --version
24
+ - python -m pip install -U pip
10
25
11
26
build_script :
12
27
- tools/windows-build.bat
@@ -28,3 +43,4 @@ deploy:
28
43
max_error_retry : 3
29
44
on :
30
45
APPVEYOR_REPO_TAG : true
46
+ WHEEL_UPLOAD : true
Original file line number Diff line number Diff line change 10
10
rem Download and install librdkafka from NuGet.
11
11
call tools\windows-install-librdkafka.bat %LIBRDKAFKA_NUGET_VERSION% dest || exit /b 1
12
12
13
+ pip install -U -r tests/requirements.txt -r confluent_kafka/avro/requirements.txt
13
14
pip install cibuildwheel== 0.12.0 || exit /b 1
14
15
15
16
rem Build wheels (without tests)
@@ -46,16 +47,18 @@ for %%W in (..\..\wheelhouse\*amd64.whl) do (
46
47
cd ..\..
47
48
48
49
rem Basic testing
49
- for %%W in (wheelhouse\confluent_kafka-*cp27*win32 .whl) do (
50
+ for %%W in (wheelhouse\confluent_kafka-*cp %PYTHON_SHORTVER% *win* %PYTHON_ARCH% .whl) do (
50
51
python -c " import struct; print(struct.calcsize('P') * 8)"
51
52
7z l %%~W
52
53
pip install %%~W || exit /b 1
54
+
55
+ SET savedir = %cd%
53
56
cd ..
54
- python -c " from confluent_kafka import libversion ; print libversion()" || exit /b 1
55
- cd confluent-kafka-python
57
+ python -c " from confluent_kafka import libversion ; print(libversion())" || exit /b 1
56
58
57
- pytest --ignore=tests\integration --import-mode=append tests || exit /b 1
59
+ python -m pytest --ignore=confluent-kafka-python\ tests\schema_registry --ignore=confluent-kafka-python\tests\ integration --import-mode=append confluent-kafka-python\ tests || exit /b 1
58
60
pip uninstall -y confluent_kafka || exit /b 1
59
61
62
+ cd %savedir%
60
63
)
61
64
You can’t perform that action at this time.
0 commit comments