diff --git a/py3-crcmod.yaml b/py3-crcmod.yaml index e8fe593086e..c234378b583 100644 --- a/py3-crcmod.yaml +++ b/py3-crcmod.yaml @@ -1,10 +1,10 @@ package: name: py3-crcmod - version: "1.7" + version: '1.7' epoch: 2 description: Cyclic Redundancy Check (CRC) implementation in Python copyright: - - license: 'MIT' + - license: MIT dependencies: runtime: - python-3 @@ -42,3 +42,22 @@ update: enabled: true release-monitor: identifier: 12017 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="crcmod" + IMPORT_STATEMENT="import crcmod" + + 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-cryptography.yaml b/py3-cryptography.yaml index b9dccb4cb16..9b54f5a2e8f 100644 --- a/py3-cryptography.yaml +++ b/py3-cryptography.yaml @@ -43,3 +43,22 @@ update: github: identifier: pyca/cryptography use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cryptography" + IMPORT_STATEMENT="import cryptography" + + 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-cycler.yaml b/py3-cycler.yaml index 3017190259f..1f67850f9d0 100644 --- a/py3-cycler.yaml +++ b/py3-cycler.yaml @@ -42,3 +42,22 @@ update: github: identifier: matplotlib/cycler strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="cycler" + IMPORT_STATEMENT="from cycler import cycler" + + 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-datadog.yaml b/py3-datadog.yaml index 6402af2a605..18e27f1f68e 100644 --- a/py3-datadog.yaml +++ b/py3-datadog.yaml @@ -35,3 +35,22 @@ update: enabled: true release-monitor: identifier: 35391 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="datadog" + IMPORT_STATEMENT="from datadog import initialize" + + 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-debugpy.yaml b/py3-debugpy.yaml index f09e6de3d88..2403105edc3 100644 --- a/py3-debugpy.yaml +++ b/py3-debugpy.yaml @@ -40,3 +40,22 @@ update: github: identifier: microsoft/debugpy strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="debugpy" + IMPORT_STATEMENT="import debugpy" + + 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-defusedxml.yaml b/py3-defusedxml.yaml index 835eb5913a0..77ab47780c7 100644 --- a/py3-defusedxml.yaml +++ b/py3-defusedxml.yaml @@ -2,7 +2,7 @@ package: name: py3-defusedxml version: 0.7.1 epoch: 1 - description: "XML bomb protection for Python stdlib modules" + description: XML bomb protection for Python stdlib modules copyright: - license: PSF-2.0 dependencies: @@ -44,3 +44,22 @@ update: github: identifier: tiran/defusedxml strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="defusedxml" + IMPORT_STATEMENT="import defusedxml" + + 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-deprecated.yaml b/py3-deprecated.yaml index a03a9fd8fa9..91dde8a6fc1 100644 --- a/py3-deprecated.yaml +++ b/py3-deprecated.yaml @@ -38,3 +38,22 @@ update: github: identifier: tantale/deprecated strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="deprecated" + IMPORT_STATEMENT="import deprecated" + + 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-deprecation.yaml b/py3-deprecation.yaml index f1f433b933a..80738c510e0 100644 --- a/py3-deprecation.yaml +++ b/py3-deprecation.yaml @@ -38,3 +38,22 @@ update: manual: false github: identifier: briancurtin/deprecation + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="deprecation" + IMPORT_STATEMENT="import deprecation" + + 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-dill.yaml b/py3-dill.yaml index 2d799f3365d..7171eb3fc98 100644 --- a/py3-dill.yaml +++ b/py3-dill.yaml @@ -38,3 +38,22 @@ update: - dill- github: identifier: uqfoundation/dill + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="dill" + IMPORT_STATEMENT="import dill" + + 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