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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| package_smoke_test-1.1.0.tar.gz | 20.9 kB | Without provenance | Details for package_smoke_test-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| package_smoke_test-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for package_smoke_test-1.1.0-py3-none-any.whl |
Total release size: 37.5 kB
Release files / package_smoke_test-1.1.0.tar.gz
| Download URL | package_smoke_test-1.1.0.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1939bcfeb4729445a9cd4de9619825082d93fe05f1d7ed212bffff9848134bf1
|
|
BLAKE2b-256 checksum How to use checksums |
e79fc2fec3f74b316261643f6e9fdba9b4e97bd851eeae2d078688ef95ab0cb9
|
| 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.0-py3-none-any.whl
| Download URL | package_smoke_test-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f877137798a1ce5243aea95fd2a968dafcbdc7d8121ba1c0995be5a8641c128
|
|
BLAKE2b-256 checksum How to use checksums |
72a5e3a022fc3f6bf9a1adbc0e504f39b2c3761e136109be2c173e772cb93996
|
| 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.0
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.