-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Appveyor script for building Windows wheels (#65)
- Loading branch information
1 parent
085711d
commit ed71095
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
### ---------------------- | ||
### General Configuration | ||
### ---------------------- | ||
|
||
environment: | ||
# Set a global environment variable that points to the `pip` command. | ||
# The Python26 builds overwrite this variable because it needs | ||
# `python -m module.__main__` rather than just `python -m module`. | ||
# See http://stackoverflow.com/a/9407178/1354930 | ||
global: | ||
PIP: "pip" | ||
TOX: "tox" | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python26" | ||
PIP: "pip.__main__" | ||
TOX: "tox.__main__" | ||
- PYTHON: "C:\\Python26-x64" | ||
PIP: "pip.__main__" | ||
TOX: "tox.__main__" | ||
- PYTHON: "C:\\Python27" | ||
- PYTHON: "C:\\Python27-x64" | ||
- PYTHON: "C:\\Python33" | ||
- PYTHON: "C:\\Python33-x64" | ||
- PYTHON: "C:\\Python34" | ||
- PYTHON: "C:\\Python34-x64" | ||
- PYTHON: "C:\\Python35" | ||
- PYTHON: "C:\\Python35-x64" | ||
- PYTHON: "C:\\Python36" | ||
- PYTHON: "C:\\Python36-x64" | ||
|
||
install: | ||
# Check that we have the expected version and architecture for Python | ||
- "%PYTHON%\\python.exe --version" | ||
|
||
# install dependencies | ||
|
||
- "%PYTHON%\\python.exe -m %PIP% install --upgrade pip wheel" | ||
- "%PYTHON%\\python.exe -m %PIP% install tox" | ||
|
||
build: off # Not a C# project, build stuff at the test step instead. | ||
|
||
test_script: | ||
# Run the project tests | ||
- "%PYTHON%\\python.exe -m %TOX% -e py" | ||
|
||
after_test: | ||
# if tests OK, create whl package | ||
- "%PYTHON%\\python.exe setup.py bdist_wheel" | ||
|
||
artifacts: | ||
# Upload the wheel and EXE to AppVeyor | ||
- path: dist\*.whl | ||
type: whl | ||
|
||
# This is left to the package maintainer to update with the secure tokens. | ||
# See https://www.appveyor.com/docs/deployment/github/ | ||
# and https://www.appveyor.com/docs/build-configuration/#secure-variables | ||
#deploy: | ||
# - provider: GitHub | ||
# auth_token: | ||
# secure: <your encrypted token> # encrypted github token | ||
# release: $APPVEYOR_REPO_TAG_NAME | ||
# artifact: /.*\.whl/ # upload all the wheels. | ||
# draft: false | ||
# prerelease: false | ||
# on: | ||
# branch: master # release from master branch only | ||
# appveyor_repo_tag: true # deploy only on tags |