Skip to content

Commit

Permalink
Currency: created build-script and build_info.json for Kiwisolver. (#…
Browse files Browse the repository at this point in the history
…4632)

* Create keyring_ubi_9.3.sh

* Create build_info.json

* Create LICENSE

* Update build_info.json

* Update keyring_ubi_9.3.sh

* Update keyring_ubi_9.3.sh

* Update keyring_ubi_9.3.sh

* Update keyring_ubi_9.3.sh

* Delete k/keyring directory

* Create build_info.json

* Create LICENSE

* Create kiwisolver_ubi_9.3.sh

* Update kiwisolver_ubi_9.3.sh

* Update build_info.json

* Update kiwisolver_ubi_9.3.sh

* Update build_info.json
  • Loading branch information
kiranNukal authored Dec 31, 2024
1 parent 61263d5 commit 460f314
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion k/kiwisolver/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Apache License
Apache License

Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down
4 changes: 2 additions & 2 deletions k/kiwisolver/build_info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"maintainer": "kiranNukal",
"package_name": "kiwisolver",
"github_url": "ttps://github.com/nucleic/kiwi.git",
"github_url": "https://github.com/nucleic/kiwi.git",
"version": "v1.2.0",
"default_branch": "master",
"package_dir": "k/kiwisolver",
Expand All @@ -10,7 +10,7 @@
"validate_build_script": true,
"use_non_root_user": false,
"wheel_build": true,
"v*.*.*": {
"*": {
"build_script": "kiwisolver_ubi_9.3.sh"
}
}
21 changes: 20 additions & 1 deletion k/kiwisolver/kiwisolver_ubi_9.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PACKAGE_URL=https://github.com/nucleic/kiwi.git

# Install dependencies and tools.
yum install -y git wget gcc gcc-c++ python-pip python3-devel python3 python3-pip
pip install build pytest wheel
pip install build pytest wheel cppy

#clone repository
git clone $PACKAGE_URL
Expand All @@ -40,3 +40,22 @@ if ! (python3 setup.py install) ; then
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails"
exit 1
fi

# Check if the 'tests' folder exists
if [ -d "kiwi/tests" ]; then
# Run tests using pytest
if ! pytest; then
echo "-------------------- $PACKAGE_NAME: build success but test fails --------------------"
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Build_success_but_test_Fails"
exit 2
else
echo "-------------------- $PACKAGE_NAME: build & test both success --------------------"
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Build_and_Test_Success"
fi
else
# Skip tests if 'tests' folder is not available
echo "-------------------- $PACKAGE_NAME: tests skipped as 'tests' folder is not available --------------------"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Tests_Skipped"
fi

0 comments on commit 460f314

Please sign in to comment.