From 101098649acc6b7a9232384baf5802949e91df73 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 09:04:38 +0000 Subject: [PATCH 1/6] Added Script for black-v26.3.1 --- b/black/black_26.3.1_ubi_9.6.sh | 84 +++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 b/black/black_26.3.1_ubi_9.6.sh diff --git a/b/black/black_26.3.1_ubi_9.6.sh b/b/black/black_26.3.1_ubi_9.6.sh new file mode 100644 index 0000000000..d8fad9fff1 --- /dev/null +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -0,0 +1,84 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : black +# Version : main +# Source repo : https://github.com/psf/black.git +# Tested on : UBI:9.6 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : Rushikesh.Sathe1@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=black +PACKAGE_VERSION=${1:-26.3.1} +PACKAGE_URL=https://github.com/psf/black.git + +# Install dependencies +yum install -y git gcc gcc-c++ make wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip python3.12 + +# Clone the repository +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +# Check if Rust is installed +if ! command -v rustc &> /dev/null; then + # If Rust is not found, install Rust + echo "Rust not found. Installing Rust..." + curl https://sh.rustup.rs -sSf | sh -s -- -y + source "$HOME/.cargo/env" +else + echo "Rust is already installed." +fi + +#install necessary Python dependencies +#pip install -r test_requirements.txt + +pip install build + +pip install --upgrade pip setuptools wheel +pip install \ + "hatchling>=1.27.0" \ + "hatch-vcs>=0.3.0" \ + "hatch-fancy-pypi-readme" +#install + +python3.12 -m build --wheel +if ! (python3.12 -m pip install -e ".[d,jupyter,colorama,uvloop]" ) ; 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 + +python3.12 -m pip install \ + "tox" \ + "pytest>=7" \ + "pytest-xdist>=3.0.2" \ + "pytest-cov>=4.1.0" \ + "coverage>=5.3" + + +export PYTEST_ADDOPTS="-n 2" + +if ! tox -p 1 -- -n 2 ; 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 7578603e57b86fd179fa147a604cc9c6fe12b005 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 14:41:16 +0530 Subject: [PATCH 2/6] Update version to 26.3.1 in build_info.json --- b/black/build_info.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/b/black/build_info.json b/b/black/build_info.json index 500e8882df..e1dd0dc1b8 100644 --- a/b/black/build_info.json +++ b/b/black/build_info.json @@ -2,7 +2,7 @@ "maintainer": "aastha-sharma2", "package_name": "black", "github_url": "https://github.com/psf/black.git", - "version": "22.12.0", + "version": "26.3.1", "wheel_build" : true, "package_dir": "b/black", "default_branch": "main", @@ -10,6 +10,9 @@ "docker_build": false, "validate_build_script": true, "use_non_root_user": "false", + "26.3.1": { + "build_script": "black_26.3.1_ubi_9.6.sh" + }, "*": { "build_script": "black_ubi_9.3.sh" } From aec57a405a31f9580fc4cda6b222d64a4d29ad1e Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 14:56:31 +0530 Subject: [PATCH 3/6] Update black_26.3.1_ubi_9.6.sh --- b/black/black_26.3.1_ubi_9.6.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/b/black/black_26.3.1_ubi_9.6.sh b/b/black/black_26.3.1_ubi_9.6.sh index d8fad9fff1..005129e5e8 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -68,7 +68,6 @@ python3.12 -m pip install \ "pytest-cov>=4.1.0" \ "coverage>=5.3" - export PYTEST_ADDOPTS="-n 2" if ! tox -p 1 -- -n 2 ; then From dce43fe05135b995bf48a22337898d4eaf0f5f10 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Fri, 17 Apr 2026 12:20:01 +0530 Subject: [PATCH 4/6] Add pip install for hatchling and related packages --- b/black/black_26.3.1_ubi_9.6.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/b/black/black_26.3.1_ubi_9.6.sh b/b/black/black_26.3.1_ubi_9.6.sh index 005129e5e8..ba7cc1219f 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -51,6 +51,7 @@ pip install \ "hatchling>=1.27.0" \ "hatch-vcs>=0.3.0" \ "hatch-fancy-pypi-readme" + #install python3.12 -m build --wheel From dca3527284d045e72f477122a2dcc51b4be3bc72 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Wed, 22 Apr 2026 15:59:57 +0530 Subject: [PATCH 5/6] Update black_26.3.1_ubi_9.6.sh --- b/black/black_26.3.1_ubi_9.6.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/b/black/black_26.3.1_ubi_9.6.sh b/b/black/black_26.3.1_ubi_9.6.sh index ba7cc1219f..8156f9fcbc 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -10,6 +10,7 @@ # Script License : Apache License, Version 2 or later # Maintainer : Rushikesh.Sathe1@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 From e707f7343466471f8ff342b14df9e0f661484ef2 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Fri, 24 Apr 2026 14:29:56 +0530 Subject: [PATCH 6/6] Update black_26.3.1_ubi_9.6.sh --- b/black/black_26.3.1_ubi_9.6.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/b/black/black_26.3.1_ubi_9.6.sh b/b/black/black_26.3.1_ubi_9.6.sh index 8156f9fcbc..ba7cc1219f 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -10,7 +10,6 @@ # Script License : Apache License, Version 2 or later # Maintainer : Rushikesh.Sathe1@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