aboutsummaryrefslogtreecommitdiffstats
path: root/.azure-pipelines/wheel-builder.yml
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-05-26 07:34:50 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2019-05-26 07:34:50 -0400
commit98cd156241d35851655f0b98fe5f785c65c7e39a (patch)
treef01140b24f8db30eedcf4bc561bfd793eb562861 /.azure-pipelines/wheel-builder.yml
parentca6a03a5d55463254f8ab1c9e9ca392b55d57446 (diff)
downloadcryptography-98cd156241d35851655f0b98fe5f785c65c7e39a.tar.gz
cryptography-98cd156241d35851655f0b98fe5f785c65c7e39a.tar.bz2
cryptography-98cd156241d35851655f0b98fe5f785c65c7e39a.zip
Add windows to azure wheel builder (#4881)
* Add windows to azure wheel builder * whoops syntax fix * syntax fix * Added missing container image * Drop the virtualenv * Quotes * Update wheel-builder.yml * Update wheel-builder.yml * Update wheel-builder.yml * Update wheel-builder.yml * Windows. * Update wheel-builder.yml * Update wheel-builder.yml * Update wheel-builder.yml * Update wheel-builder.yml * Update wheel-builder.yml * Added 3.4,3.6,3.7 windows wheels * fix * Update wheel-builder.yml * py35 wheel builder
Diffstat (limited to '.azure-pipelines/wheel-builder.yml')
-rw-r--r--.azure-pipelines/wheel-builder.yml78
1 files changed, 78 insertions, 0 deletions
diff --git a/.azure-pipelines/wheel-builder.yml b/.azure-pipelines/wheel-builder.yml
index 1504aae7..2d82cb34 100644
--- a/.azure-pipelines/wheel-builder.yml
+++ b/.azure-pipelines/wheel-builder.yml
@@ -123,3 +123,81 @@ jobs:
inputs:
pathToPublish: wheelhouse/
artifactName: cryptography-manylinux1-$(PYTHON_VERSION)
+
+ - job: 'windows'
+ pool:
+ vmImage: 'windows-2019'
+ container: $[variables.containerImage]
+ strategy:
+ matrix:
+ Python27-x86:
+ containerImage: 'pyca/cryptography-runner-windows:py27-x86'
+ PYTHON_VERSION: '27'
+ OPENSSL_DIR: 'OpenSSL-Win32-2010'
+ WINDOWS_ARCH: 'x86'
+ Python27-x86-64:
+ containerImage: 'pyca/cryptography-runner-windows:py27-x86_64'
+ PYTHON_VERSION: '27'
+ OPENSSL_DIR: 'OpenSSL-Win64-2010'
+ WINDOWS_ARCH: 'x86_64'
+ Python34-x86:
+ containerImage: 'pyca/cryptography-runner-windows:py34-x86'
+ PYTHON_VERSION: '34'
+ OPENSSL_DIR: 'OpenSSL-Win32-2010'
+ WINDOWS_ARCH: 'x86'
+ Python34-x86-64:
+ containerImage: 'pyca/cryptography-runner-windows:py34-x86_64'
+ PYTHON_VERSION: '34'
+ OPENSSL_DIR: 'OpenSSL-Win64-2010'
+ WINDOWS_ARCH: 'x86_64'
+ Python35-x86:
+ containerImage: 'pyca/cryptography-runner-windows:py35-x86'
+ PYTHON_VERSION: '35'
+ OPENSSL_DIR: 'OpenSSL-Win32-2015'
+ WINDOWS_ARCH: 'x86'
+ Python35-x86-64:
+ containerImage: 'pyca/cryptography-runner-windows:py35-x86_64'
+ PYTHON_VERSION: '35'
+ OPENSSL_DIR: 'OpenSSL-Win64-2015'
+ WINDOWS_ARCH: 'x86_64'
+ Python36-x86:
+ containerImage: 'pyca/cryptography-runner-windows:py3-x86'
+ PYTHON_VERSION: '36'
+ OPENSSL_DIR: 'OpenSSL-Win32-2015'
+ WINDOWS_ARCH: 'x86'
+ Python36-x86-64:
+ containerImage: 'pyca/cryptography-runner-windows:py3-x86_64'
+ PYTHON_VERSION: '36'
+ OPENSSL_DIR: 'OpenSSL-Win64-2015'
+ WINDOWS_ARCH: 'x86_64'
+ Python37-x86:
+ containerImage: 'pyca/cryptography-runner-windows:py3-x86'
+ PYTHON_VERSION: '37'
+ OPENSSL_DIR: 'OpenSSL-Win32-2015'
+ WINDOWS_ARCH: 'x86'
+ Python37-x86-64:
+ containerImage: 'pyca/cryptography-runner-windows:py3-x86_64'
+ PYTHON_VERSION: '37'
+ OPENSSL_DIR: 'OpenSSL-Win64-2015'
+ WINDOWS_ARCH: 'x86_64'
+ steps:
+ - script: '"C:/Python%PYTHON_VERSION%/Scripts/pip" install wheel cffi six asn1crypto ipaddress enum34'
+ displayName: Install wheel and our Python dependencies
+ - script: |
+ set INCLUDE=C:/%OPENSSL_DIR%/include;%INCLUDE%
+ set LIB=C:/%OPENSSL_DIR%/lib;%LIB%
+ C:/Python%PYTHON_VERSION%/Scripts/pip wheel cryptography==%BUILD_VERSION% --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography
+ displayName: Build the wheel
+ - script: '"C:/Python%PYTHON_VERSION%/Scripts/pip" install -f wheelhouse cryptography --no-index'
+ displayName: Test installing the wheel
+ - script: |
+ "C:/Python%PYTHON_VERSION%/python" -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"
+ displayName: Print the OpenSSL we built and linked against
+ - script: mkdir cryptography-wheelhouse
+ displayName: Create a directory for placing the final wheel in
+ - script: move wheelhouse\cryptography*.whl cryptography-wheelhouse\
+ displayName: Move the cryptography wheel into the final wheel house
+ - task: PublishBuildArtifacts@1
+ inputs:
+ pathToPublish: cryptography-wheelhouse/
+ artifactName: cryptography-windows-$(WINDOWS_ARCH)-python$(PYTHON_VERSION)