From f0b3396bd36c0eba45f4190dc39fe4d8108ae4a2 Mon Sep 17 00:00:00 2001 From: Anthony Feddersen Date: Sat, 24 Feb 2024 17:37:23 -0500 Subject: [PATCH 1/4] Adding 10 Python package tests. Signed-off-by: Anthony Feddersen --- py3-build.yaml | 19 +++++++++++++++++++ py3-cachecontrol.yaml | 19 +++++++++++++++++++ py3-cachetools.yaml | 19 +++++++++++++++++++ py3-cairo.yaml | 19 +++++++++++++++++++ py3-canonicaljson.yaml | 19 +++++++++++++++++++ py3-certifi.yaml | 21 ++++++++++++++++++++- py3-certipy.yaml | 19 +++++++++++++++++++ py3-cffi.yaml | 19 +++++++++++++++++++ py3-chardet.yaml | 19 +++++++++++++++++++ py3-cleo.yaml | 19 +++++++++++++++++++ 10 files changed, 191 insertions(+), 1 deletion(-) diff --git a/py3-build.yaml b/py3-build.yaml index e84c6f2e636..8dfc03f57c2 100644 --- a/py3-build.yaml +++ b/py3-build.yaml @@ -44,3 +44,22 @@ update: identifier: pypa/build use-tag: true strip-suffix: .post1 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="build" + IMPORT_STATEMENT="import build" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-cachecontrol.yaml b/py3-cachecontrol.yaml index 3d095a5e077..93a7ef645b3 100644 --- a/py3-cachecontrol.yaml +++ b/py3-cachecontrol.yaml @@ -43,3 +43,22 @@ update: use-tag: true tag-filter: v strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cachecontrol" + IMPORT_STATEMENT="import cachecontrol" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-cachetools.yaml b/py3-cachetools.yaml index ec31bef9b0f..fe9c452b5ac 100644 --- a/py3-cachetools.yaml +++ b/py3-cachetools.yaml @@ -38,3 +38,22 @@ update: enabled: true github: identifier: tkem/cachetools + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cachetools" + IMPORT_STATEMENT="from cachetools import TTLCache" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-cairo.yaml b/py3-cairo.yaml index 562be2e3fac..d057cb4dc67 100644 --- a/py3-cairo.yaml +++ b/py3-cairo.yaml @@ -56,3 +56,22 @@ update: github: identifier: pygobject/pycairo strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cairo" + IMPORT_STATEMENT="import cairo" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-canonicaljson.yaml b/py3-canonicaljson.yaml index 170ae8231f7..470aba4940e 100644 --- a/py3-canonicaljson.yaml +++ b/py3-canonicaljson.yaml @@ -37,3 +37,22 @@ update: identifier: matrix-org/python-canonicaljson strip-prefix: v use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="canonicaljson" + IMPORT_STATEMENT="import canonicaljson" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-certifi.yaml b/py3-certifi.yaml index 41cb67c92da..32b12043f4f 100644 --- a/py3-certifi.yaml +++ b/py3-certifi.yaml @@ -2,7 +2,7 @@ package: name: py3-certifi version: 2024.02.02 epoch: 1 - description: "Python3 package for providing Mozilla's CA Bundle" + description: Python3 package for providing Mozilla's CA Bundle copyright: - license: MPL-2.0 dependencies: @@ -59,3 +59,22 @@ update: identifier: certifi/python-certifi strip-prefix: v use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="certifi" + IMPORT_STATEMENT="import certifi" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-certipy.yaml b/py3-certipy.yaml index 34902e2d4b1..b8e64f52396 100644 --- a/py3-certipy.yaml +++ b/py3-certipy.yaml @@ -36,3 +36,22 @@ update: enabled: true release-monitor: identifier: 370308 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="certipy" + IMPORT_STATEMENT="from certipy import Certipy" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-cffi.yaml b/py3-cffi.yaml index 36fe9e2c800..c4dce9b1c68 100644 --- a/py3-cffi.yaml +++ b/py3-cffi.yaml @@ -41,3 +41,22 @@ update: enabled: true release-monitor: identifier: 5536 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cffi" + IMPORT_STATEMENT="import cffi" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-chardet.yaml b/py3-chardet.yaml index e3db4e69ba5..be6c404c57a 100644 --- a/py3-chardet.yaml +++ b/py3-chardet.yaml @@ -34,3 +34,22 @@ update: enabled: true github: identifier: chardet/chardet + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="chardet" + IMPORT_STATEMENT="import chardet" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi diff --git a/py3-cleo.yaml b/py3-cleo.yaml index 7aa2ffb9af0..6bb923d1c83 100644 --- a/py3-cleo.yaml +++ b/py3-cleo.yaml @@ -39,3 +39,22 @@ update: github: identifier: python-poetry/cleo use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cleo" + IMPORT_STATEMENT="from cleo import Output" + + if ! python -c "$IMPORT_STATEMENT"; then + echo "Failed to import library '$LIBRARY'." + python -c "$IMPORT_STATEMENT" 2>&1 + exit 1 + else + echo "Library '$LIBRARY' is installed and can be imported successfully." + exit 0 + fi From 21efe766bdee3f66d155a89d1e24fb6da7406fcc Mon Sep 17 00:00:00 2001 From: Anthony Feddersen Date: Sat, 24 Feb 2024 17:48:15 -0500 Subject: [PATCH 2/4] removing cleo Signed-off-by: Anthony Feddersen --- py3-cleo.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/py3-cleo.yaml b/py3-cleo.yaml index 6bb923d1c83..7aa2ffb9af0 100644 --- a/py3-cleo.yaml +++ b/py3-cleo.yaml @@ -39,22 +39,3 @@ update: github: identifier: python-poetry/cleo use-tag: true - -test: - environment: - contents: - packages: - - busybox - pipeline: - - runs: | - LIBRARY="cleo" - IMPORT_STATEMENT="from cleo import Output" - - if ! python -c "$IMPORT_STATEMENT"; then - echo "Failed to import library '$LIBRARY'." - python -c "$IMPORT_STATEMENT" 2>&1 - exit 1 - else - echo "Library '$LIBRARY' is installed and can be imported successfully." - exit 0 - fi From 82a3154e0ba5a2d414723bfa459e5d420a15a288 Mon Sep 17 00:00:00 2001 From: Anthony Feddersen Date: Sat, 24 Feb 2024 17:57:55 -0500 Subject: [PATCH 3/4] removing certipy Signed-off-by: Anthony Feddersen --- py3-certipy.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/py3-certipy.yaml b/py3-certipy.yaml index b8e64f52396..34902e2d4b1 100644 --- a/py3-certipy.yaml +++ b/py3-certipy.yaml @@ -36,22 +36,3 @@ update: enabled: true release-monitor: identifier: 370308 - -test: - environment: - contents: - packages: - - busybox - pipeline: - - runs: | - LIBRARY="certipy" - IMPORT_STATEMENT="from certipy import Certipy" - - if ! python -c "$IMPORT_STATEMENT"; then - echo "Failed to import library '$LIBRARY'." - python -c "$IMPORT_STATEMENT" 2>&1 - exit 1 - else - echo "Library '$LIBRARY' is installed and can be imported successfully." - exit 0 - fi From bd56c02359e750ca2940984cc9dc7509cc9104c6 Mon Sep 17 00:00:00 2001 From: Anthony Feddersen Date: Sat, 24 Feb 2024 18:35:51 -0500 Subject: [PATCH 4/4] removing chardet Signed-off-by: Anthony Feddersen --- py3-chardet.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/py3-chardet.yaml b/py3-chardet.yaml index be6c404c57a..e3db4e69ba5 100644 --- a/py3-chardet.yaml +++ b/py3-chardet.yaml @@ -34,22 +34,3 @@ update: enabled: true github: identifier: chardet/chardet - -test: - environment: - contents: - packages: - - busybox - pipeline: - - runs: | - LIBRARY="chardet" - IMPORT_STATEMENT="import chardet" - - if ! python -c "$IMPORT_STATEMENT"; then - echo "Failed to import library '$LIBRARY'." - python -c "$IMPORT_STATEMENT" 2>&1 - exit 1 - else - echo "Library '$LIBRARY' is installed and can be imported successfully." - exit 0 - fi