diff --git a/py3-distlib.yaml b/py3-distlib.yaml index 0bbc111f922..332d0c23159 100644 --- a/py3-distlib.yaml +++ b/py3-distlib.yaml @@ -41,3 +41,22 @@ update: github: identifier: pypa/distlib use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="distlib" + IMPORT_STATEMENT="import distlib" + + 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-distro.yaml b/py3-distro.yaml index dec7da07667..6aed8febf47 100644 --- a/py3-distro.yaml +++ b/py3-distro.yaml @@ -2,7 +2,7 @@ package: name: py3-distro version: 1.9.0 epoch: 0 - description: "A Linux OS platform information API" + description: A Linux OS platform information API copyright: - license: Apache-2.0 dependencies: @@ -42,3 +42,22 @@ update: enabled: true release-monitor: identifier: 12202 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="distro" + IMPORT_STATEMENT="import distro" + + 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-docker.yaml b/py3-docker.yaml index 1c2e7920de0..fe9ad0bb12c 100644 --- a/py3-docker.yaml +++ b/py3-docker.yaml @@ -39,3 +39,22 @@ update: manual: false github: identifier: docker/docker-py + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="docker" + IMPORT_STATEMENT="import docker" + + 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-docopt.yaml b/py3-docopt.yaml index fc79a17e03a..68646201f09 100644 --- a/py3-docopt.yaml +++ b/py3-docopt.yaml @@ -35,3 +35,22 @@ update: enabled: true release-monitor: identifier: 8436 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="docopt" + IMPORT_STATEMENT="from docopt import docopt" + + 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-docutils.yaml b/py3-docutils.yaml index 59a69cd6e47..8eb3b32a00b 100644 --- a/py3-docutils.yaml +++ b/py3-docutils.yaml @@ -2,7 +2,7 @@ package: name: py3-docutils version: 0.20.1 epoch: 3 - description: "Documentation Utilities for Python3" + description: Documentation Utilities for Python3 copyright: - license: BSD-2-Clause AND GPL-3.0-or-later AND Python-2.0 dependencies: @@ -43,3 +43,22 @@ update: enabled: true release-monitor: identifier: 3849 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="docutils" + IMPORT_STATEMENT="from docutils import nodes" + + 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-dulwich.yaml b/py3-dulwich.yaml index f2f24bc170e..73a4ff203f2 100644 --- a/py3-dulwich.yaml +++ b/py3-dulwich.yaml @@ -38,3 +38,22 @@ update: identifier: jelmer/dulwich tag-filter: dulwich- strip-prefix: dulwich- + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="dulwich" + IMPORT_STATEMENT="import dulwich" + + 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-escapism.yaml b/py3-escapism.yaml index f0286390556..45980b549b6 100644 --- a/py3-escapism.yaml +++ b/py3-escapism.yaml @@ -37,3 +37,22 @@ update: github: identifier: minrk/escapism use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="escapism" + IMPORT_STATEMENT="import escapism" + + 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-exceptiongroup.yaml b/py3-exceptiongroup.yaml index ab0685e9f2a..894b592a46f 100644 --- a/py3-exceptiongroup.yaml +++ b/py3-exceptiongroup.yaml @@ -5,7 +5,7 @@ package: epoch: 0 description: Backport of PEP 654 (exception groups) copyright: - - license: "MIT" + - license: MIT dependencies: runtime: - python3 @@ -41,3 +41,22 @@ update: github: identifier: agronholm/exceptiongroup use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="exceptiongroup" + IMPORT_STATEMENT="from exceptiongroup import BaseExceptionGroup" + + 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