-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathappveyor.yml
49 lines (45 loc) · 1.55 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
environment:
TWINE_USERNAME: michael.sanders
# Note: TWINE_PASSWORD is set in Appveyor settings.
matrix:
# Stable 64-bit MSVC
- channel: stable
target: x86_64-pc-windows-msvc
CIBW_SKIP: "*win32* cp27-* cp33-* cp34-*"
CIBW_BEFORE_BUILD: python -m pip install setuptools setuptools-rust==0.10.3
# Stable 32-bit MSVC
- channel: stable
target: i686-pc-windows-msvc
CIBW_SKIP: "*win_amd64* cp33-* cp34-*"
CIBW_BEFORE_BUILD: python -m pip install setuptools setuptools-rust==0.10.3
# From https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain nightly --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
- python -m pip install -U pip
- python -m pip install cibuildwheel==1.1.0 setuptools setuptools-rust==0.10.3
build_script:
- cibuildwheel --output-dir wheelhouse
- >
IF "%APPVEYOR_REPO_TAG%" == "true"
(
python -m pip install twine
&&
@python -m twine upload "wheelhouse/*.whl" --username %TWINE_USERNAME% --password %TWINE_PASSWORD%
)
- >
IF "%APPVEYOR_REPO_BRANCH%" == "master"
(
IF [%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%] == []
(
python -m pip install twine
&&
@python -m twine upload "wheelhouse/*.whl" --repository-url https://test.pypi.org/legacy/ --username %TWINE_USERNAME% --password %TWINE_TEST_PASSWORD%
)
)
artifacts:
- path: "wheelhouse\\*.whl"
name: Wheels