Skip to content

Commit 43d0b84

Browse files
committed
Merge branch 'appveyor': enable window CI
closes #9
2 parents e980b0d + 7840d50 commit 43d0b84

File tree

3 files changed

+81
-1
lines changed

3 files changed

+81
-1
lines changed

.appveyor.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# adapted from https://packaging.python.org/en/latest/appveyor/
2+
3+
4+
environment:
5+
# we tell Tox to use "twisted[windows]", to get pypiwin32 installed
6+
#TWISTED_EXTRAS: "[windows]"
7+
# that didn't work (it seems to work when I run it locally, but on appveyor
8+
# it fails to install the pypiwin32 package). So don't bother telling
9+
# Twisted to support windows: just install it ourselves.
10+
# EXTRA_DEPENDENCY: "pypiwin32"
11+
matrix:
12+
# For Python versions available on Appveyor, see
13+
# http://www.appveyor.com/docs/installed-software#python
14+
- PYTHON: "C:\\Python27"
15+
- PYTHON: "C:\\Python27-x64"
16+
DISTUTILS_USE_SDK: "1"
17+
- PYTHON: "C:\\Python34"
18+
- PYTHON: "C:\\Python34-x64"
19+
DISTUTILS_USE_SDK: "1"
20+
- PYTHON: "C:\\Python35"
21+
- PYTHON: "C:\\Python35-x64"
22+
- PYTHON: "C:\\Python36"
23+
- PYTHON: "C:\\Python36-x64"
24+
25+
install:
26+
- |
27+
%PYTHON%\python.exe -m pip install wheel tox
28+
29+
# note:
30+
# %PYTHON% has: python.exe
31+
# %PYTHON%\Scripts has: pip.exe, tox.exe (and others installed by bare pip)
32+
33+
34+
build: off
35+
36+
test_script:
37+
# Put your test command here.
38+
# Note that you must use the environment variable %PYTHON% to refer to
39+
# the interpreter you're using - Appveyor does not do anything special
40+
# to put the Python evrsion you want to use on PATH.
41+
- |
42+
misc\windows-build.cmd %PYTHON%\Scripts\tox.exe -e py
43+
44+
after_test:
45+
# This step builds your wheels.
46+
# Again, you only need build.cmd if you're building C extensions for
47+
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
48+
# interpreter
49+
- |
50+
misc\windows-build.cmd %PYTHON%\python.exe setup.py bdist_wheel
51+
52+
artifacts:
53+
# bdist_wheel puts your built wheel in the dist directory
54+
- path: dist\*
55+
56+
#on_success:
57+
# You can use this step to upload your artifacts to a public website.
58+
# See Appveyor's documentation for more details. Or you can simply
59+
# access your wheels from the Appveyor "artifacts" tab for your build.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* License: MIT
55
* Dependencies: hkdf
66
* Compatible With: Python 2.7, 3.3, 3.4, 3.5, 3.6, PyPy2
7-
* [![Build Status](https://travis-ci.org/warner/python-spake2.png?branch=master)](https://travis-ci.org/warner/python-spake2) [![Coverage Status](https://coveralls.io/repos/warner/python-spake2/badge.svg)](https://coveralls.io/r/warner/python-spake2)
7+
* [![Build Status](https://travis-ci.org/warner/python-spake2.png?branch=master)](https://travis-ci.org/warner/python-spake2) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/j2q57qee3xwbqp5l/branch/master?svg=true)](https://ci.appveyor.com/project/warner/python-spake2) [![Coverage Status](https://coveralls.io/repos/warner/python-spake2/badge.svg)](https://coveralls.io/r/warner/python-spake2)
88

99
This library implements the SPAKE2 password-authenticated key exchange
1010
("PAKE") algorithm. This allows two parties, who share a weak password, to

misc/windows-build.cmd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
:: To build extensions for 64 bit Python 3, we need to configure environment
3+
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
4+
:: MS Windows SDK for Windows 7 and .NET Framework 4
5+
::
6+
:: More details at:
7+
:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows
8+
9+
IF "%DISTUTILS_USE_SDK%"=="1" (
10+
ECHO Configuring environment to build with MSVC on a 64bit architecture
11+
ECHO Using Windows SDK 7.1
12+
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
13+
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
14+
SET MSSdk=1
15+
REM Need the following to allow tox to see the SDK compiler
16+
SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB
17+
) ELSE (
18+
ECHO Using default MSVC build environment
19+
)
20+
21+
CALL %*

0 commit comments

Comments
 (0)