Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

python-package-smoke-test

Simple import test for Python packages

This library implements a set of simple verification tests for an installed Python distribution, or an installed Python module.

Examples

Verify installation of a Python distribution

To verify correct installation of a Python distribution named lorem:

$ python3 -m package_smoke_test --distribution lorem
Interpreter: /usr/bin/python3
        3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.2.0]
Distribution ‘lorem’:
        Lorem Ipsum 2.7.3

Verify installation of Python packages or modules

To verify correct installation of a set of Python packages or modules, named dolor, sit, and amet:

$ python3 -m package_smoke_test --module dolor sit amet
Interpreter: /usr/bin/python3
        3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.2.0]
Module ‘dolor’:
        <module 'dolor' from '/usr/lib/python3/dist-packages/lorem/dolor/__init__.py'>
Module ‘sit’:
        <module 'sit' from '/usr/lib/python3/dist-packages/lorem/sit/__init__.py'>
Module ‘amet’:
        <module 'amet' from '/usr/lib/python3/dist-packages/lorem/amet/__init__.py'>

Example script for post-installation test

The file doc/examples/smoke-test-python3 is a Bash script that you can customise for your package, to run the above tests.

Copying

This work, ‘python-package-smoke-test’, is free software: you may copy, modify, and/or distribute this work under the conditions of the GNU General Public License as published by the Free Software Foundation; version 3 of that license or any later version. See the file ‘LICENSE.GPL-3’ for details. No warranty expressed or implied.

Metadata

Release files for package-smoke-test 1.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for package-smoke-test 1.1.0a1
File Size Uploaded Provenance Actions
package_smoke_test-1.1.0a1.tar.gz 20.9 kB Without provenance Details for package_smoke_test-1.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for package-smoke-test 1.1.0a1
File Interpreter ABI Platform Actions
package_smoke_test-1.1.0a1-py3-none-any.whl Python 3 none any Details for package_smoke_test-1.1.0a1-py3-none-any.whl

Total release size: 37.6 kB

Release files / package_smoke_test-1.1.0a1.tar.gz

Download URL package_smoke_test-1.1.0a1.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
438ed3f21c24f3cd74408360aef7bec553baf322bafcdb24cc7d0d7d4dd7b1f0
BLAKE2b-256 checksum
How to use checksums
cdf0f3bf6f3daa0fd8ba1439c2870373cb34f10120e9f0d8f6f0106ae862efc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / package_smoke_test-1.1.0a1-py3-none-any.whl

Download URL package_smoke_test-1.1.0a1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d78816073b9e848ae68ecfa7f0d4e7d966436bbfd0b9f7d064b7f70d2af4c777
BLAKE2b-256 checksum
How to use checksums
a2cadcbc2222bbc980cdfcd89d19a455ded7ddd6672ff4983d18118df42c8fde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for package-smoke-test 1.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page