Skip to main content

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.2

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.2
File Size Uploaded Provenance Actions
package_smoke_test-1.1.2.tar.gz 21.0 kB Without provenance Details for package_smoke_test-1.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 37.7 kB

Release files / package_smoke_test-1.1.2.tar.gz

Download URL package_smoke_test-1.1.2.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dfac9399a3ed512bf10c2b552edd5033154a06bf5a99a7593595ed55de69ccc1
BLAKE2b-256 checksum
How to use checksums
d106ffba78d26238bb5144bcfbb9326e8b53fe9b913a1870a2c5f0950107cea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / package_smoke_test-1.1.2-py3-none-any.whl

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

Security for package-smoke-test 1.1.2

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