Skip to content

Commit 550ae64

Browse files
committed
Adding cibuildwheel to appveyor
1 parent c63d9f1 commit 550ae64

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

appveyor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
environment:
44
passphrase:
55
secure: En1qcj1/l2B3Nov+vOHlfRrFZk00bg1HPRouD64Gzfw=
6+
CIBW_SKIP: cp27-* cp34-* cp35-* *-win32
7+
CIBW_BEFORE_BUILD: pip install six
8+
CIBW_TEST_COMMAND: pytest {project}\\tests
9+
CIBW_TEST_REQUIRES: pytest numpy
610
matrix:
711
- PYTHON: "C:\\Python36-x64"
812

@@ -20,3 +24,17 @@ build: off
2024
test_script:
2125
- before_build.bat %APPVEYOR_BUILD_FOLDER%
2226
- "%PYTHON%\\python.exe -m tox -v"
27+
28+
after_test:
29+
- "%PYTHON%\\python.exe -m pip install cibuildwheel==0.10.1"
30+
- "%PYTHON%\\python.exe -m cibuildwheel --output-dir wheelhouse .\\swmm_python\\output"
31+
- "%PYTHON%\\python.exe -m cibuildwheel --output-dir wheelhouse .\\swmm_python\\toolkit"
32+
33+
artifacts:
34+
- path: "wheelhouse\\*.whl"
35+
name: Wheels
36+
37+
cache:
38+
- C:\ProgramData\chocolatey\bin -> appveyor.yml
39+
- C:\ProgramData\chocolatey\lib -> appveyor.yml
40+
- C:\projects\epanet-python\.tox -> tox.ini

0 commit comments

Comments
 (0)