diff --git a/c/certifi/build_info.json b/c/certifi/build_info.json index 0a5fa56..7b30fcf 100644 --- a/c/certifi/build_info.json +++ b/c/certifi/build_info.json @@ -1,16 +1,19 @@ { - "maintainer": "Sankalp", + "maintainer": "Viddya", "package_name": "certifi", "github_url": "https://github.com/certifi/python-certifi.git", - "version": "2024.8.30", - "wheel_build" : true, + "version": "2025.01.31", + "wheel_build": true, "package_dir": "c/certifi", "default_branch": "master", - "build_script": "certifi_ubi_9.3.sh", + "build_script": "certifi_2025.01.31_ubi_9.7.sh", "docker_build": false, "validate_build_script": true, - "use_non_root_user": "false", - "*.*.*":{ - "build_script":"certifi_ubi_9.3.sh" + "use_non_root_user": false, + "2025.01.31": { + "build_script": "certifi_2025.01.31_ubi_9.7.sh" + }, + "*": { + "build_script": "certifi_ubi_9.3.sh" } } diff --git a/c/certifi/certifi_2025.01.31_ubi_9.7.sh b/c/certifi/certifi_2025.01.31_ubi_9.7.sh new file mode 100644 index 0000000..a063690 --- /dev/null +++ b/c/certifi/certifi_2025.01.31_ubi_9.7.sh @@ -0,0 +1,56 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : certifi +# Version : 2025.01.31 +# Source repo : https://github.com/certifi/python-certifi +# Tested on : UBI:9.7 +# Language : Python +# Ci-Check : True +# Script License: Apache License, Version 2 or later +# Maintainer : Viddya +# +# 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=python-certifi +PACKAGE_VERSION=${1:-2025.01.31} +PACKAGE_URL=https://github.com/certifi/python-certifi.git + +# Install dependencies +yum install -y python3 python3-pip python3-devel git + +# Clone repository +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +# Install pytest +python3 -m pip install pytest + +# Install package +if ! python3 -m pip install . ; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +# Run tests +if ! pytest; then + echo "------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | 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 | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi