From a0a9ba70f540cee15b96354a32f2d3c0800b1341 Mon Sep 17 00:00:00 2001 From: Viddya K Date: Thu, 11 Jun 2026 10:35:01 +0530 Subject: [PATCH 1/3] Initial commit --- c/certifi/build_info.json | 17 ++++---- c/certifi/certifi_2025.01.31_ubi_9.7.sh | 56 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 7 deletions(-) create mode 100644 c/certifi/certifi_2025.01.31_ubi_9.7.sh diff --git a/c/certifi/build_info.json b/c/certifi/build_info.json index 0a5fa56..2dc11ad 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, + "2024.8.30": { + "build_script": "certifi_ubi_9.3.sh" + }, + "2025.01.31": { + "build_script": "certifi_2025.01.31_ubi_9.7.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..52aaf79 --- /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 +# Travis-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 From 61d1da038a4bee059c6bef608b9008a1ff79c8f3 Mon Sep 17 00:00:00 2001 From: Viddya K Date: Fri, 12 Jun 2026 16:09:24 +0530 Subject: [PATCH 2/3] Addressing PR comments --- c/certifi/build_info.json | 5 +---- c/certifi/certifi_2025.01.31_ubi_9.7.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/c/certifi/build_info.json b/c/certifi/build_info.json index 2dc11ad..14ce398 100644 --- a/c/certifi/build_info.json +++ b/c/certifi/build_info.json @@ -10,10 +10,7 @@ "docker_build": false, "validate_build_script": true, "use_non_root_user": false, - "2024.8.30": { - "build_script": "certifi_ubi_9.3.sh" - }, - "2025.01.31": { + "*": { "build_script": "certifi_2025.01.31_ubi_9.7.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 index 52aaf79..a063690 100644 --- a/c/certifi/certifi_2025.01.31_ubi_9.7.sh +++ b/c/certifi/certifi_2025.01.31_ubi_9.7.sh @@ -6,7 +6,7 @@ # Source repo : https://github.com/certifi/python-certifi # Tested on : UBI:9.7 # Language : Python -# Travis-Check : True +# Ci-Check : True # Script License: Apache License, Version 2 or later # Maintainer : Viddya # From 804175d4cb64cd576d530dfff651e560a107914a Mon Sep 17 00:00:00 2001 From: Viddya K Date: Fri, 12 Jun 2026 16:25:22 +0530 Subject: [PATCH 3/3] Updating build_info.json --- c/certifi/build_info.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c/certifi/build_info.json b/c/certifi/build_info.json index 14ce398..7b30fcf 100644 --- a/c/certifi/build_info.json +++ b/c/certifi/build_info.json @@ -10,7 +10,10 @@ "docker_build": false, "validate_build_script": true, "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" } }