Skip to content

Commit 55390dd

Browse files
committed
AppVeyor: Verify both py2 and py3, and fix builds.
1 parent 9ff5568 commit 55390dd

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.appveyor.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,26 @@ environment:
22
global:
33
LIBRDKAFKA_NUGET_VERSION: 1.4.0-RC7
44
CIBW_SKIP: cp33-* cp34-*
5-
CIBW_TEST_REQUIRES: pytest pytest-timeout requests avro trivup
5+
CIBW_TEST_REQUIRES: pytest pytest-timeout requests trivup
66
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
77
# /E:ON and /V:ON options are not enabled in the batch script intepreter
88
# See: http://stackoverflow.com/a/13751649/163740
99
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
1025

1126
build_script:
1227
- tools/windows-build.bat
@@ -28,3 +43,4 @@ deploy:
2843
max_error_retry: 3
2944
on:
3045
APPVEYOR_REPO_TAG: true
46+
WHEEL_UPLOAD: true

tools/windows-build.bat

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set
1010
rem Download and install librdkafka from NuGet.
1111
call tools\windows-install-librdkafka.bat %LIBRDKAFKA_NUGET_VERSION% dest || exit /b 1
1212

13+
pip install -U -r tests/requirements.txt -r confluent_kafka/avro/requirements.txt
1314
pip install cibuildwheel==0.12.0 || exit /b 1
1415

1516
rem Build wheels (without tests)
@@ -46,16 +47,18 @@ for %%W in (..\..\wheelhouse\*amd64.whl) do (
4647
cd ..\..
4748

4849
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 (
5051
python -c "import struct; print(struct.calcsize('P') * 8)"
5152
7z l %%~W
5253
pip install %%~W || exit /b 1
54+
55+
SET savedir=%cd%
5356
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
5658

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
5860
pip uninstall -y confluent_kafka || exit /b 1
5961

62+
cd %savedir%
6063
)
6164

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy