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
17 changes: 10 additions & 7 deletions c/certifi/build_info.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
56 changes: 56 additions & 0 deletions c/certifi/certifi_2025.01.31_ubi_9.7.sh
Original file line number Diff line number Diff line change
@@ -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 <viddya.k@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=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
Loading