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

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.1
File Size Uploaded Provenance Actions
package_smoke_test-1.1.1.tar.gz 20.9 kB Without provenance Details for package_smoke_test-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 37.6 kB

Release files / package_smoke_test-1.1.1.tar.gz

Download URL package_smoke_test-1.1.1.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b264ae4ea9e058da9535ee45f0754cbea32f4e0251fa0237cf329761083973f2
BLAKE2b-256 checksum
How to use checksums
2bdbed6087fbbe578097dcdcda20a095660b7a1288cb2eda2a73e0b03ad79053
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.1-py3-none-any.whl

Download URL package_smoke_test-1.1.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc9287c8034593ebc4931a1e80dee7fafd72417bc306de55447a56b288d7fcd5
BLAKE2b-256 checksum
How to use checksums
2ef02c0494dbdf4ecb5d6208fca7c1695009fa36463869ac67a60c3f95bf6072
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.1

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