diff --git a/py3-absl-py.yaml b/py3-absl-py.yaml index aa70ffc438d..4f789ac83ff 100644 --- a/py3-absl-py.yaml +++ b/py3-absl-py.yaml @@ -48,9 +48,11 @@ test: pipeline: - runs: | LIBRARY="absl" - OUTPUT=$(python -c "from $LIBRARY import app" 2>&1) - if echo "$OUTPUT" | grep -q "No module named"; then - echo "Failed to import library '$LIBRARY'. Please check if it is installed." + IMPORT_STATEMENT="from absl import app" + + 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." diff --git a/py3-agate.yaml b/py3-agate.yaml index 22537953f24..300fc8a4ac5 100644 --- a/py3-agate.yaml +++ b/py3-agate.yaml @@ -53,9 +53,11 @@ test: pipeline: - runs: | LIBRARY="agate" - OUTPUT=$(python -c "import $LIBRARY" 2>&1) - if echo "$OUTPUT" | grep -q "No module named"; then - echo "Failed to import library '$LIBRARY'. Please check if it is installed." + IMPORT_STATEMENT="import agate" + + 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." diff --git a/py3-anyio.yaml b/py3-anyio.yaml index ec486177ccd..22bf6edaf4d 100644 --- a/py3-anyio.yaml +++ b/py3-anyio.yaml @@ -55,10 +55,11 @@ test: pipeline: - runs: | LIBRARY="anyio" - OUTPUT=$(python -c "import $LIBRARY" 2>&1) + IMPORT_STATEMENT="import anyio" - if echo "$OUTPUT" | grep -q "No module named"; then - echo "Failed to import library '$LIBRARY'. Please check if it is installed." + 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." diff --git a/py3-appdirs.yaml b/py3-appdirs.yaml index c0c3c6e50b5..7cb9f335d28 100644 --- a/py3-appdirs.yaml +++ b/py3-appdirs.yaml @@ -2,7 +2,7 @@ package: name: py3-appdirs version: 1.4.4 epoch: 5 - description: "a small python module for appdir support" + description: a small python module for appdir support copyright: - license: MIT dependencies: @@ -37,3 +37,22 @@ update: enabled: true release-monitor: identifier: 6278 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="appdirs" + IMPORT_STATEMENT="import appdirs" + + 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-appnope.yaml b/py3-appnope.yaml index cef8fc7123e..a672c6aa9ea 100644 --- a/py3-appnope.yaml +++ b/py3-appnope.yaml @@ -37,3 +37,22 @@ update: manual: false github: identifier: minrk/appnope + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="appnope" + IMPORT_STATEMENT="import appnope" + + 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-argcomplete.yaml b/py3-argcomplete.yaml index e5f91fa13d1..4dbb0adc5b3 100644 --- a/py3-argcomplete.yaml +++ b/py3-argcomplete.yaml @@ -34,3 +34,22 @@ update: github: identifier: kislyuk/argcomplete strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="argcomplete" + IMPORT_STATEMENT="import argcomplete" + + 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-asn1.yaml b/py3-asn1.yaml index 5d2f48b7151..4dfee33caae 100644 --- a/py3-asn1.yaml +++ b/py3-asn1.yaml @@ -2,7 +2,7 @@ package: name: py3-asn1 version: 0.4.8 epoch: 6 - description: "Python3 ASN1 library" + description: Python3 ASN1 library copyright: - license: BSD-2-Clause dependencies: diff --git a/py3-asn1crypto.yaml b/py3-asn1crypto.yaml index 9b78e9216ce..7fd2a2c7942 100644 --- a/py3-asn1crypto.yaml +++ b/py3-asn1crypto.yaml @@ -2,7 +2,7 @@ package: name: py3-asn1crypto version: 1.5.1 epoch: 0 - description: "Python ASN.1 library with a focus on performance and a pythonic API" + description: Python ASN.1 library with a focus on performance and a pythonic API copyright: - license: MIT dependencies: @@ -40,3 +40,22 @@ update: identifier: wbond/asn1crypto strip-prefix: v use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="asn1crypto" + IMPORT_STATEMENT="from asn1crypto import cms" + + 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-asttokens.yaml b/py3-asttokens.yaml index 7941b2329bf..41e69b8e595 100644 --- a/py3-asttokens.yaml +++ b/py3-asttokens.yaml @@ -41,3 +41,22 @@ update: identifier: gristlabs/asttokens strip-prefix: v use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="asttokens" + IMPORT_STATEMENT="import asttokens" + + 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-astunparse.yaml b/py3-astunparse.yaml index 30718cba503..fa11a9f311f 100644 --- a/py3-astunparse.yaml +++ b/py3-astunparse.yaml @@ -41,3 +41,22 @@ update: github: identifier: simonpercivall/astunparse strip-prefix: v + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="astunparse" + IMPORT_STATEMENT="import astunparse" + + 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-awscrt.yaml b/py3-awscrt.yaml index 1d0354698a1..c63d36812de 100644 --- a/py3-awscrt.yaml +++ b/py3-awscrt.yaml @@ -2,7 +2,7 @@ package: name: py3-awscrt version: 0.20.4 epoch: 0 - description: "Python bindings for the AWS Common Runtime" + description: Python bindings for the AWS Common Runtime copyright: - license: Apache-2.0 dependencies: diff --git a/py3-babel.yaml b/py3-babel.yaml index cf46b8d9e1e..9f7155086ad 100644 --- a/py3-babel.yaml +++ b/py3-babel.yaml @@ -4,7 +4,7 @@ package: epoch: 1 description: Python3 i18n tool copyright: - - license: "BSD-3-Clause" + - license: BSD-3-Clause dependencies: runtime: - python3 @@ -38,3 +38,22 @@ update: shared: true release-monitor: identifier: 11984 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="babel" + IMPORT_STATEMENT="import babel" + + 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-backcall.yaml b/py3-backcall.yaml index 984476c01cb..0c78b37f849 100644 --- a/py3-backcall.yaml +++ b/py3-backcall.yaml @@ -5,7 +5,7 @@ package: epoch: 2 description: Specifications for callback functions passed in to an API copyright: - - license: "BSD-3-Clause" + - license: BSD-3-Clause dependencies: runtime: - python-3 @@ -37,3 +37,22 @@ update: manual: false github: identifier: takluyver/backcall + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="backcall" + IMPORT_STATEMENT="import backcall" + + 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-backoff.yaml b/py3-backoff.yaml index 046c21084f2..4e8f77a014a 100644 --- a/py3-backoff.yaml +++ b/py3-backoff.yaml @@ -33,3 +33,22 @@ update: enabled: true release-monitor: identifier: 44448 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="backoff" + IMPORT_STATEMENT="import backoff" + + 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-beautifulsoup4.yaml b/py3-beautifulsoup4.yaml index 689d143f716..919817db3b7 100644 --- a/py3-beautifulsoup4.yaml +++ b/py3-beautifulsoup4.yaml @@ -5,7 +5,7 @@ package: epoch: 0 description: Screen-scraping library copyright: - - license: "MIT License" + - license: MIT dependencies: runtime: - py3-soupsieve @@ -39,3 +39,22 @@ update: enabled: true release-monitor: identifier: 3779 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="beautifulsoup4" + IMPORT_STATEMENT="from bs4 import BeautifulSoup" + + 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-beniget.yaml b/py3-beniget.yaml index 4830aff876f..c486b6913d1 100644 --- a/py3-beniget.yaml +++ b/py3-beniget.yaml @@ -40,3 +40,22 @@ update: github: identifier: serge-sans-paille/beniget use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="beniget" + IMPORT_STATEMENT="import beniget" + + 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-bleach.yaml b/py3-bleach.yaml index 246c3784028..e9ba5e0483d 100644 --- a/py3-bleach.yaml +++ b/py3-bleach.yaml @@ -5,7 +5,7 @@ package: epoch: 2 description: An easy safelist-based HTML-sanitizing tool. copyright: - - license: Apache Software License + - license: Apache-2.0 dependencies: runtime: - py3-six @@ -41,3 +41,22 @@ update: identifier: mozilla/bleach strip-prefix: v use-tag: true + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="bleach" + IMPORT_STATEMENT="import bleach" + + 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-blinker.yaml b/py3-blinker.yaml index 122915b335c..7a9a6097c7e 100644 --- a/py3-blinker.yaml +++ b/py3-blinker.yaml @@ -42,3 +42,22 @@ update: enabled: true github: identifier: pallets-eco/blinker + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="blinker" + IMPORT_STATEMENT="from blinker import Signal" + + 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-bokeh.yaml b/py3-bokeh.yaml index 8c3943fa97e..b201d5de21f 100644 --- a/py3-bokeh.yaml +++ b/py3-bokeh.yaml @@ -5,7 +5,7 @@ package: epoch: 0 description: Interactive plots and applications in the browser from Python copyright: - - license: 'BSD-3-Clause' + - license: BSD-3-Clause dependencies: runtime: - py3-jinja2 @@ -44,3 +44,22 @@ update: enabled: true release-monitor: identifier: 78655 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="bokeh" + IMPORT_STATEMENT="import bokeh" + + 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-boltons.yaml b/py3-boltons.yaml index f5a34add5cc..c039e7832ea 100644 --- a/py3-boltons.yaml +++ b/py3-boltons.yaml @@ -2,7 +2,7 @@ package: name: py3-boltons version: 23.0.0 epoch: 1 - description: "When they're not builtins, they're boltons." + description: When they're not builtins, they're boltons. copyright: - license: BSD-3-Clause dependencies: @@ -43,3 +43,22 @@ update: enabled: true github: identifier: mahmoud/boltons + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="boltons" + IMPORT_STATEMENT="import boltons" + + 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-botocore.yaml b/py3-botocore.yaml index 878e1662302..9ea930b2bbb 100644 --- a/py3-botocore.yaml +++ b/py3-botocore.yaml @@ -2,7 +2,7 @@ package: name: py3-botocore version: 1.34.49 epoch: 0 - description: "The low-level, core functionality of Boto3" + description: The low-level, core functionality of Boto3 copyright: - license: Apache-2.0 dependencies: @@ -41,3 +41,22 @@ update: enabled: true release-monitor: identifier: 29738 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="botocore" + IMPORT_STATEMENT="import botocore" + + 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-bracex.yaml b/py3-bracex.yaml index ecb0c2400ad..e44db55f151 100644 --- a/py3-bracex.yaml +++ b/py3-bracex.yaml @@ -1,8 +1,8 @@ package: name: py3-bracex - version: "2.4" + version: '2.4' epoch: 1 - description: "Bash style brace expander." + description: Bash style brace expander. copyright: - license: MIT dependencies: @@ -48,3 +48,22 @@ update: github: identifier: facelessuser/bracex strip-suffix: .post1 + +test: + environment: + contents: + packages: + - busybox + pipeline: + - runs: | + LIBRARY="bracex" + IMPORT_STATEMENT="import bracex" + + 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