From e947dc12cd7fb20f86f13364f230ceee0aaa12a1 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 05:56:28 +0000 Subject: [PATCH 1/9] Added Script for black-v26.3.1 --- b/black/black_26.3.1_ubi_9.6.sh | 83 +++++++++++++++++++++++++++++++++ b/black/build_info.json | 3 ++ 2 files changed, 86 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..68660f0456 --- /dev/null +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -0,0 +1,83 @@ +#!/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 python-devel python-pip + +# 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 \ + "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 diff --git a/b/black/build_info.json b/b/black/build_info.json index 500e8882df..2521fc0bfb 100644 --- a/b/black/build_info.json +++ b/b/black/build_info.json @@ -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 654eda2260d50851703640b209ea7b67897c8de4 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 11:36:50 +0530 Subject: [PATCH 2/9] Fix JSON formatting in build_info.json --- b/black/build_info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b/black/build_info.json b/b/black/build_info.json index 2521fc0bfb..3547d27d31 100644 --- a/b/black/build_info.json +++ b/b/black/build_info.json @@ -12,7 +12,7 @@ "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 735da0368a636b065fa5bbe87e5336239405792b Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 11:55:53 +0530 Subject: [PATCH 3/9] Change Python dependencies to Python 3.12 Updated Python version and pip installation in the script. --- b/black/black_26.3.1_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 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 68660f0456..798ed442aa 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -24,7 +24,7 @@ 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 python-devel python-pip +yum install -y git gcc gcc-c++ make wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip tox # Clone the repository git clone $PACKAGE_URL From a2a4af4716d72f6e08d797ecea9d1a1ceff27ffe Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 11:58:47 +0530 Subject: [PATCH 4/9] Update version of black to 26.3.1 --- b/black/build_info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b/black/build_info.json b/b/black/build_info.json index 3547d27d31..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", From 823f3b72718c8836fa5dffa4d6df5d0172af498e Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 12:04:11 +0530 Subject: [PATCH 5/9] Fix formatting in black installation script --- b/black/black_26.3.1_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 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 798ed442aa..438e5a642f 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -24,7 +24,7 @@ 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 tox +yum install -y git gcc gcc-c++ make wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip # Clone the repository git clone $PACKAGE_URL From bbdd3b2306bba3b57cca43dbc6724749149a1e45 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 13:16:32 +0530 Subject: [PATCH 6/9] Install 'tox' along with other Python packages Add 'tox' to the list of Python packages installed. --- 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 438e5a642f..2e4aabd0d0 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -62,6 +62,7 @@ if ! (python3.12 -m pip install -e ".[d,jupyter,colorama,uvloop]" ) ; then fi python3.12 -m pip install \ + "tox" \ "pytest>=7" \ "pytest-xdist>=3.0.2" \ "pytest-cov>=4.1.0" \ From 97e8f39e3d4907d227a9d5222b24acf511a0e505 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 13:51:15 +0530 Subject: [PATCH 7/9] Add curl to dependency installation Added curl to the list of installed dependencies. --- b/black/black_26.3.1_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 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 2e4aabd0d0..f5f916f512 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -24,7 +24,7 @@ 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 +yum install -y git gcc gcc-c++ make wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip curl # Clone the repository git clone $PACKAGE_URL From b86712e05ce77f7ec3ef080e2db78dbecf2d4c17 Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Thu, 16 Apr 2026 14:15:34 +0530 Subject: [PATCH 8/9] Update black_26.3.1_ubi_9.6.sh --- b/black/black_26.3.1_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 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 f5f916f512..2e4aabd0d0 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -24,7 +24,7 @@ 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 curl +yum install -y git gcc gcc-c++ make wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip # Clone the repository git clone $PACKAGE_URL From a3271a8233df73b4505c3ce95ef79b9d519348cd Mon Sep 17 00:00:00 2001 From: Rushikesh Sathe Date: Mon, 27 Apr 2026 12:26:48 +0530 Subject: [PATCH 9/9] Update black_26.3.1_ubi_9.6.sh --- b/black/black_26.3.1_ubi_9.6.sh | 2 +- 1 file changed, 1 insertion(+), 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 2e4aabd0d0..4da09045b4 100644 --- a/b/black/black_26.3.1_ubi_9.6.sh +++ b/b/black/black_26.3.1_ubi_9.6.sh @@ -9,7 +9,7 @@ # 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