mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
parametrize the wheel builder to support out of order releases (#3731)
This commit is contained in:
parent
e3a2fb209b
commit
0145873de7
2 changed files with 10 additions and 2 deletions
|
|
@ -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'`
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@ def release(version):
|
|||
"{0}/build".format(JENKINS_URL),
|
||||
params={
|
||||
"token": token,
|
||||
"BUILD_VERSION": version,
|
||||
"cause": "Building wheels for {0}".format(version)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue