forked from python-websockets/websockets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
27 lines (23 loc) · 788 Bytes
/
.appveyor.yml
File metadata and controls
27 lines (23 loc) · 788 Bytes
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
branches:
only:
- master
skip_branch_with_pr: true
environment:
# websockets only works on Python >= 3.6.
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-*
CIBW_TEST_COMMAND: python -W default -m unittest
WEBSOCKETS_TESTS_TIMEOUT_FACTOR: 100
install:
# Ensure python is Python 3.
- set PATH=C:\Python37;%PATH%
- cmd: python -m pip install --upgrade cibuildwheel
# Create file '.cibuildwheel' so that extension build is not optional (c.f. setup.py).
- cmd: touch .cibuildwheel
build_script:
- cmd: python -m cibuildwheel --output-dir wheelhouse
# Upload to PyPI on tags
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true") {
Invoke-Expression "python -m pip install twine"
Invoke-Expression "python -m twine upload --skip-existing wheelhouse/*.whl"
}