package-smoke-test


Namepackage-smoke-test JSON
Version 1.0 PyPI version JSON
download
home_page
SummarySimple import test for Python packages
upload_time2023-07-16 07:57:14
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords test smoke packaging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            #########################
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]
    Package ‘dolor’:
            <module 'dolor' from '/usr/lib/python3/dist-packages/lorem/dolor/__init__.py'>
    Package ‘sit’:
            <module 'sit' from '/usr/lib/python3/dist-packages/lorem/sit/__init__.py'>
    Package ‘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.


..
    This document is written using `reStructuredText`_ markup, and can
    be rendered with `Docutils`_ to other formats.

    ..  _Docutils: https://docutils.sourceforge.io/
    ..  _reStructuredText: https://docutils.sourceforge.io/rst.html

..
    Local variables:
    coding: utf-8
    mode: rst
    mode: text
    End:
    vim: fileencoding=utf-8 filetype=rst :

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "package-smoke-test",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "test,smoke,packaging",
    "author": "",
    "author_email": "Ben Finney <ben+python@benfinney.id.au>",
    "download_url": "https://files.pythonhosted.org/packages/18/22/aadc108248bd0432b2726d41729e8df177064546ee71a3546bd4eb891b2e/package-smoke-test-1.0.tar.gz",
    "platform": null,
    "description": "#########################\npython-package-smoke-test\n#########################\n\nSimple import test for Python packages\n######################################\n\nThis library implements a set of simple verification tests for an installed\nPython distribution, or an installed Python module.\n\n\nExamples\n========\n\nVerify installation of a Python distribution\n--------------------------------------------\n\nTo verify correct installation of a Python distribution named `lorem`::\n\n    $ python3 -m package_smoke_test --distribution lorem\n    Interpreter: /usr/bin/python3\n            3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.2.0]\n    Distribution \u2018lorem\u2019:\n            Lorem Ipsum 2.7.3\n\n\nVerify installation of Python packages or modules\n-------------------------------------------------\n\nTo verify correct installation of a set of Python packages or modules, named\n`dolor`, `sit`, and `amet`::\n\n    $ python3 -m package_smoke_test --module dolor sit amet\n    Interpreter: /usr/bin/python3\n            3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.2.0]\n    Package \u2018dolor\u2019:\n            <module 'dolor' from '/usr/lib/python3/dist-packages/lorem/dolor/__init__.py'>\n    Package \u2018sit\u2019:\n            <module 'sit' from '/usr/lib/python3/dist-packages/lorem/sit/__init__.py'>\n    Package \u2018amet\u2019:\n            <module 'amet' from '/usr/lib/python3/dist-packages/lorem/amet/__init__.py'>\n\n\nExample script for post-installation test\n-----------------------------------------\n\nThe file ``doc/examples/smoke-test-python3`` is a Bash script that you can\ncustomise for your package, to run the above tests.\n\n\f\nCopying\n=======\n\nThis work, \u2018python-package-smoke-test\u2019, is free software: you may copy, modify,\nand/or distribute this work under the conditions of the GNU General Public\nLicense as published by the Free Software Foundation; version 3 of that license\nor any later version. See the file \u2018LICENSE.GPL-3\u2019 for details.\nNo warranty expressed or implied.\n\n\f\n..\n    This document is written using `reStructuredText`_ markup, and can\n    be rendered with `Docutils`_ to other formats.\n\n    ..  _Docutils: https://docutils.sourceforge.io/\n    ..  _reStructuredText: https://docutils.sourceforge.io/rst.html\n\n..\n    Local variables:\n    coding: utf-8\n    mode: rst\n    mode: text\n    End:\n    vim: fileencoding=utf-8 filetype=rst :\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple import test for Python packages",
    "version": "1.0",
    "project_urls": {
        "Change log": "https://salsa.debian.org/bignose/python-package-smoke-test/-/raw/main/ChangeLog",
        "Homepage": "https://salsa.debian.org/bignose/python-package-smoke-test/",
        "Issue tracker": "https://bugs.debian.org/"
    },
    "split_keywords": [
        "test",
        "smoke",
        "packaging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5a6802f342678ff190e1999dec9ebe4d1e18cababe9e685d52ddd196c9bfe8b",
                "md5": "6764737747c2fa950a8ff257802eace6",
                "sha256": "34cb6f4c7bd4d6db9dfc78460154dbed9c2632d3eb6c510bd6a56cebb3529652"
            },
            "downloads": -1,
            "filename": "package_smoke_test-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6764737747c2fa950a8ff257802eace6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 16312,
            "upload_time": "2023-07-16T07:57:12",
            "upload_time_iso_8601": "2023-07-16T07:57:12.132951Z",
            "url": "https://files.pythonhosted.org/packages/b5/a6/802f342678ff190e1999dec9ebe4d1e18cababe9e685d52ddd196c9bfe8b/package_smoke_test-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1822aadc108248bd0432b2726d41729e8df177064546ee71a3546bd4eb891b2e",
                "md5": "f630faf8b15694d6de8e4939b848a20a",
                "sha256": "0f277137411fc7df64b3c674746ba828fdcf64b31bd98b7d34db8780e9d56291"
            },
            "downloads": -1,
            "filename": "package-smoke-test-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f630faf8b15694d6de8e4939b848a20a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16372,
            "upload_time": "2023-07-16T07:57:14",
            "upload_time_iso_8601": "2023-07-16T07:57:14.422908Z",
            "url": "https://files.pythonhosted.org/packages/18/22/aadc108248bd0432b2726d41729e8df177064546ee71a3546bd4eb891b2e/package-smoke-test-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-16 07:57:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "package-smoke-test"
}
        
Elapsed time: 0.09932s