forked from ansys/pymapdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
29 lines (23 loc) · 1006 Bytes
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
# :Project: pyansys -- Configuration to build and upload Windows wheels to PyPI
# :Author: Alex Kaszynski <akascap@gmail.com>
# :License: MIT License
# only build cp35, cp36, cp37 as vtk wheels is only offered in those versions
environment:
CIBW_BEFORE_BUILD: "pip install numpy==1.15.0 cython"
CIBW_TEST_REQUIRES: "pytest scipy"
CIBW_TEST_COMMAND: "pytest {project}\\tests"
CIBW_SKIP: "*win32* cp27-* cp33* cp34*"
TWINE_USERNAME: akaszynski
# Note: TWINE_PASSWORD is set in Appveyor settings
matrix:
- PYTHON: "C:\\Python35-x64\\python.exe"
install:
- pip install twine # for upload
build_script:
- "%PYTHON% -m pip install cibuildwheel==0.9.3"
- "%PYTHON% -m cibuildwheel --output-dir wheelhouse"
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true") { Invoke-Expression "twine upload --skip-existing dist/*" 2>$null } Else { Invoke-Expression "twine upload --skip-existing dist/*" 2>$null }
artifacts:
- path: "wheelhouse\\*.whl"
name: Wheels