From 63df5bb5d9257f27cbe89a73ddd4fae2a433178a Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Thu, 30 Jul 2026 21:44:25 -0700 Subject: [PATCH] Added build script for cryptography==44.0.0 for UBI:10.1 --- c/cryptography/build_info.json | 8 ++- .../cryptography_44.0.0_ubi_10.1.sh | 57 +++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 c/cryptography/cryptography_44.0.0_ubi_10.1.sh diff --git a/c/cryptography/build_info.json b/c/cryptography/build_info.json index f9aaa9f764..acb713a208 100644 --- a/c/cryptography/build_info.json +++ b/c/cryptography/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "ramnathnayak-ibm", + "maintainer": "shivansh-ibm", "package_name": "cryptography", "github_url": "https://github.com/pyca/cryptography", "version": "43.0.1", @@ -15,5 +15,11 @@ }, "43.0.1": { "build_script": "cryptography_43.0.1_ubi_9.3.sh" + }, + "44.0.0": { + "build_script": [ + "cryptography_43.0.1_ubi_9.3.sh", + "cryptograhpy_44.0.0_ubi_10.1.sh" + ] } } diff --git a/c/cryptography/cryptography_44.0.0_ubi_10.1.sh b/c/cryptography/cryptography_44.0.0_ubi_10.1.sh new file mode 100644 index 0000000000..f889de0806 --- /dev/null +++ b/c/cryptography/cryptography_44.0.0_ubi_10.1.sh @@ -0,0 +1,57 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : cryptography +# Version : 44.0.0 +# Source repo : https://github.com/pyca/cryptography.git +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2.0 +# Maintainer : Shivansh Sharma +# +# Disclaimer : This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ---------------------------------------------------------------------------- + +# Variables +PACKAGE_NAME=cryptography +PACKAGE_VERSION=${1:-44.0.0} +PACKAGE_URL=https://github.com/pyca/cryptography.git +PACKAGE_DIR=cryptography + +# Install dependencies +yum install -y git gcc gcc-c++ make sudo wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip rust cargo + +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +#cryptography.exceptions.UnsupportedAlgorithm: sha1 is not supported by this backend for RSA signing. so setting this export +export OPENSSL_ENABLE_SHA1_SIGNATURES=1 +#install necessary Python packages +python3.12 -m pip install wheel pytest tox nox cryptography_vectors==$PACKAGE_VERSION pytest-benchmark pretend certifi pytest-cov pytest-xdist + +if ! python3.12 -m pip install .; then + echo "------------------$PACKAGE_NAME:install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Install_Fails" + exit 1 +fi + +if ! pytest; then + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi +