From ec42a4b7cf6f40325fde73902c914b079f78cc6c Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 10:19:04 +0530 Subject: [PATCH 1/7] Added build script to use new repo and tags for pydantic-core --- .../pydantic-core_core-v2.46.4_ubi9.6.sh | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh diff --git a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh new file mode 100644 index 0000000000..53a8f0b631 --- /dev/null +++ b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh @@ -0,0 +1,76 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : pydantic-core +# Version : core-v2.46.4 +# Source repo : https://github.com/pydantic/pydantic.git +# Tested on : UBI:9.6 +# Language : Python +# Ci-Check : True +# Script License: MIT License +# Maintainer : Vrusha Naik +# +# 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. +# +# ---------------------------------------------------------------------------- +set -ex + +# Variables +PACKAGE_NAME=pydantic-core +PACKAGE_VERSION=core-v2.46.4 +PACKAGE_URL=https://github.com/pydantic/pydantic.git +PACKAGE_DIR=pydantic/pydantic-core + +# Install dependencies +yum install -y git python3 python3-devel.ppc64le gcc-toolset-13 make wget sudo cmake +pip install "pytest<9" + +export PATH=$PATH:/usr/local/bin/ +export PATH=/opt/rh/gcc-toolset-13/root/usr/bin:$PATH +export LD_LIBRARY_PATH=/opt/rh/gcc-toolset-13/root/usr/lib64:$LD_LIBRARY_PATH + +OS_NAME=$(grep ^PRETTY_NAME /etc/os-release | cut -d= -f2) +SOURCE=Github + +# Install rust +curl https://sh.rustup.rs -sSf | sh -s -- -y +source "$HOME/.cargo/env" + +# Clone the repo +git clone $PACKAGE_URL +cd $PACKAGE_DIR +git checkout $PACKAGE_VERSION + +# Install the package +if ! python3 -m pip install ./; then + echo "------------------$PACKAGE_NAME:install_fails------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Fail | Install_Failed" + exit 1 +fi + +pip3 install hypothesis pytest-timeout inline_snapshot pytest-benchmark jsonschema pytest_examples dirty_equals pytz rich faker pytest-mock eval_type_backport typing_inspection pytest-run-parallel + +test_status=1 +# Run pytest if any matching test files found +if ls */test_*.py > /dev/null 2>&1 && [ $test_status -ne 0 ]; then + echo "Running pytest..." + (python3 -m pytest --ignore=tests/test_docstrings.py) && test_status=0 || test_status=$? +fi + +# Final test result output +if [ $test_status -eq 0 ]; then + echo "------------------$PACKAGE_NAME:install_and_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Pass | Both_Install_and_Test_Success" + exit 0 +else + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Fail | Install_success_but_test_Fails" + exit 2 +fi \ No newline at end of file From 66904f80603298af108de49cb198f4bd1f181730 Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 10:19:30 +0530 Subject: [PATCH 2/7] Updated build_info.json --- p/pydantic-core/build_info.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/p/pydantic-core/build_info.json b/p/pydantic-core/build_info.json index c365a481dd..ccb23b30c5 100644 --- a/p/pydantic-core/build_info.json +++ b/p/pydantic-core/build_info.json @@ -10,6 +10,12 @@ "wheel_build": true, "validate_build_script": true, "use_non_root_user": false, + "v*.*.*": { + "build_script":"pydantic-core_ubi_9.6.sh" + }, + "core-v*.*.*": { + "build_script":"pydantic-core_ubi_9.6.sh" + }, "*": { "build_script":"pydantic-core_ubi_9.6.sh" } From 9b321ff28b2273e6ef3b3bc05ffa17b3f1959282 Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 10:31:44 +0530 Subject: [PATCH 3/7] Updated build_info.json --- p/pydantic-core/build_info.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p/pydantic-core/build_info.json b/p/pydantic-core/build_info.json index ccb23b30c5..fee511e111 100644 --- a/p/pydantic-core/build_info.json +++ b/p/pydantic-core/build_info.json @@ -1,10 +1,10 @@ { "maintainer": "kiranNukal", "package_name": "pydantic-core", - "github_url": "https://github.com/pydantic/pydantic-core", - "version": "v2.27.1", + "github_url": "https://github.com/pydantic/pydantic", + "version": "core-v2.46.4", "default_branch": "main", - "build_script": "pydantic-core_ubi_9.6.sh", + "build_script": "pydantic-core_core-v2.46.4_ubi9.6.sh", "package_dir": "p/pydantic-core", "docker_build": false, "wheel_build": true, From 5c85373bb628ceb088316491a440090b7b9f0d32 Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 10:44:31 +0530 Subject: [PATCH 4/7] updated build_script in build_info.json --- p/pydantic-core/build_info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/pydantic-core/build_info.json b/p/pydantic-core/build_info.json index fee511e111..3d8fa3c7a6 100644 --- a/p/pydantic-core/build_info.json +++ b/p/pydantic-core/build_info.json @@ -14,7 +14,7 @@ "build_script":"pydantic-core_ubi_9.6.sh" }, "core-v*.*.*": { - "build_script":"pydantic-core_ubi_9.6.sh" + "build_script":"pydantic-core_core-v2.46.4_ubi9.6.sh" }, "*": { "build_script":"pydantic-core_ubi_9.6.sh" From 852bf2bda8e8f137515d4227c64ddc336d4616c6 Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 12:16:26 +0530 Subject: [PATCH 5/7] added --ignore=tests/validators/test_allow_partial.pyas the test failed for 3.10 --- p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh index 53a8f0b631..e3d32c1450 100644 --- a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh +++ b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh @@ -59,7 +59,7 @@ test_status=1 # Run pytest if any matching test files found if ls */test_*.py > /dev/null 2>&1 && [ $test_status -ne 0 ]; then echo "Running pytest..." - (python3 -m pytest --ignore=tests/test_docstrings.py) && test_status=0 || test_status=$? + (python3 -m pytest --ignore=tests/test_docstrings.py --ignore=tests/validators/test_allow_partial.py) && test_status=0 || test_status=$? fi # Final test result output From 9ffa411ea9e4049c4555cd5f2ca46351d9ed8e7f Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 14:27:31 +0530 Subject: [PATCH 6/7] updated --- p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh index e3d32c1450..756d7403f8 100644 --- a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh +++ b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh @@ -21,7 +21,7 @@ set -ex # Variables PACKAGE_NAME=pydantic-core -PACKAGE_VERSION=core-v2.46.4 +PACKAGE_VERSION=${1:-core-v2.46.4} PACKAGE_URL=https://github.com/pydantic/pydantic.git PACKAGE_DIR=pydantic/pydantic-core From 78508a3698781131095cc92efda5e41f1e295813 Mon Sep 17 00:00:00 2001 From: vrushanaik Date: Thu, 6 Aug 2026 17:03:35 +0530 Subject: [PATCH 7/7] Update p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh Co-authored-by: Deepali <70963368+cdeepali@users.noreply.github.com> --- p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh index 756d7403f8..6ae0889c19 100644 --- a/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh +++ b/p/pydantic-core/pydantic-core_core-v2.46.4_ubi9.6.sh @@ -17,7 +17,7 @@ # contact "Maintainer" of this script. # # ---------------------------------------------------------------------------- -set -ex +set -e # Variables PACKAGE_NAME=pydantic-core