aboutsummaryrefslogtreecommitdiffstats
path: root/.jenkins
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-26 18:56:45 -1000
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-26 21:56:45 -0700
commit0145873de724744ca9ec584f0fc7c51079b2e68e (patch)
treeb9ba71f10970b33ae062f69fe4f41ba3d9b7cb0e /.jenkins
parente3a2fb209b905915874a2a46c4a11ee33c111dc7 (diff)
downloadcryptography-0145873de724744ca9ec584f0fc7c51079b2e68e.tar.gz
cryptography-0145873de724744ca9ec584f0fc7c51079b2e68e.tar.bz2
cryptography-0145873de724744ca9ec584f0fc7c51079b2e68e.zip
parametrize the wheel builder to support out of order releases (#3731)
Diffstat (limited to '.jenkins')
-rw-r--r--.jenkins/Jenkinsfile-cryptography-wheel-builder11
1 files changed, 9 insertions, 2 deletions
diff --git a/.jenkins/Jenkinsfile-cryptography-wheel-builder b/.jenkins/Jenkinsfile-cryptography-wheel-builder
index 55429ca4..d06e6efa 100644
--- a/.jenkins/Jenkinsfile-cryptography-wheel-builder
+++ b/.jenkins/Jenkinsfile-cryptography-wheel-builder
@@ -1,3 +1,10 @@
+properties([
+ parameters([
+ string(defaultValue: '', description: 'The version from PyPI to build', name: 'BUILD_VERSION')
+ ]),
+ pipelineTriggers([])
+])
+
def configs = [
[
label: 'windows',
@@ -59,7 +66,7 @@ def build(version, label) {
virtualenv -p %PYTHON% .release
call .release\\Scripts\\activate
pip install wheel virtualenv
- pip wheel cryptography --wheel-dir=wheelhouse --no-binary cryptography
+ pip wheel cryptography==$BUILD_VERSION --wheel-dir=wheelhouse --no-binary cryptography
pip install -f wheelhouse cryptography --no-index
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'))"
"""
@@ -88,7 +95,7 @@ def build(version, label) {
source .venv/bin/activate
pip install -U wheel # upgrade wheel to latest before we use it to build the wheel
# -mmacosx-version-min=10.9 can be remove when https://github.com/pyca/cryptography/issues/3635 is resolved
- CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1" LDFLAGS="/usr/local/opt/openssl@1.1/lib/libcrypto.a /usr/local/opt/openssl@1.1/lib/libssl.a" CFLAGS="-I/usr/local/opt/openssl@1.1/include -mmacosx-version-min=10.9" pip wheel cryptography --wheel-dir=wheelhouse --no-binary cryptography
+ CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1" LDFLAGS="/usr/local/opt/openssl@1.1/lib/libcrypto.a /usr/local/opt/openssl@1.1/lib/libssl.a" CFLAGS="-I/usr/local/opt/openssl@1.1/include -mmacosx-version-min=10.9" pip wheel cryptography==$BUILD_VERSION --wheel-dir=wheelhouse --no-binary cryptography
pip install -f wheelhouse cryptography --no-index
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'))"
otool -L `find .venv -name '_openssl*.so'`