Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion c/cryptography/build_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"maintainer": "ramnathnayak-ibm",
"maintainer": "shivansh-ibm",
"package_name": "cryptography",
"github_url": "https://github.com/pyca/cryptography",
"version": "43.0.1",
Expand All @@ -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"
]
}
}
57 changes: 57 additions & 0 deletions c/cryptography/cryptography_44.0.0_ubi_10.1.sh
Original file line number Diff line number Diff line change
@@ -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 <shivansh.s1@ibm.com>
#
# 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