pytest-filter-subpackage


Namepytest-filter-subpackage JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/astropy/pytest-filter-subpackage
SummaryPytest plugin for filtering based on sub-packages
upload_time2024-03-04 16:52:21
maintainer
docs_urlNone
authorThe Astropy Developers
requires_python>=3.8
licenseBSD
keywords pytest py.test
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ========================
pytest-filter-subpackage
========================

.. image:: https://dev.azure.com/astropy-project/pytest-filter-subpackage/_apis/build/status/astropy.pytest-filter-subpackage?branchName=main
   :target: https://dev.azure.com/astropy-project/pytest-filter-subpackage/_build/latest?definitionId=5&branchName=main

This package contains a simple plugin for the `pytest`_ framework that provides a
shortcut to testing all code and documentation for a given sub-package.

.. _pytest: https://pytest.org/en/latest/

Installation
------------

The ``pytest-filter-subpackage`` plugin can be installed using ``pip``::

    $ pip install pytest-filter-subpackage

It is also possible to install the latest development version from the source
repository::

    $ git clone https://github.com/astropy/pytest-filter-subpackage
    $ cd pytest-filter-subpackage
    $ pip install .

In either case, the plugin will automatically be registered for use with
``pytest``.

Usage
-----

This plugin provides a ``-P`` option which takes a comma-separated list
of sub-package names (without the top-level package name)::

    pytest -P wcs,io.fits

which is equivalent to::

    pytest **/wcs **/io/fits

When used in conjunction with `pytest-doctestplus
<http://github.com/astropy/pytest-doctestplus>`_ this will result in both
the narrative documentation and code being tested for a given sub-package.

License
-------
This plugin is licensed under a 3-clause BSD style license - see the
``LICENSE.rst`` file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/astropy/pytest-filter-subpackage",
    "name": "pytest-filter-subpackage",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "pytest,py.test",
    "author": "The Astropy Developers",
    "author_email": "astropy.team@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/82/f3/10d46a1dcd2245854db8654a27e48da727411e88ed4afa7fc24331ff217c/pytest-filter-subpackage-0.2.0.tar.gz",
    "platform": null,
    "description": "========================\npytest-filter-subpackage\n========================\n\n.. image:: https://dev.azure.com/astropy-project/pytest-filter-subpackage/_apis/build/status/astropy.pytest-filter-subpackage?branchName=main\n   :target: https://dev.azure.com/astropy-project/pytest-filter-subpackage/_build/latest?definitionId=5&branchName=main\n\nThis package contains a simple plugin for the `pytest`_ framework that provides a\nshortcut to testing all code and documentation for a given sub-package.\n\n.. _pytest: https://pytest.org/en/latest/\n\nInstallation\n------------\n\nThe ``pytest-filter-subpackage`` plugin can be installed using ``pip``::\n\n    $ pip install pytest-filter-subpackage\n\nIt is also possible to install the latest development version from the source\nrepository::\n\n    $ git clone https://github.com/astropy/pytest-filter-subpackage\n    $ cd pytest-filter-subpackage\n    $ pip install .\n\nIn either case, the plugin will automatically be registered for use with\n``pytest``.\n\nUsage\n-----\n\nThis plugin provides a ``-P`` option which takes a comma-separated list\nof sub-package names (without the top-level package name)::\n\n    pytest -P wcs,io.fits\n\nwhich is equivalent to::\n\n    pytest **/wcs **/io/fits\n\nWhen used in conjunction with `pytest-doctestplus\n<http://github.com/astropy/pytest-doctestplus>`_ this will result in both\nthe narrative documentation and code being tested for a given sub-package.\n\nLicense\n-------\nThis plugin is licensed under a 3-clause BSD style license - see the\n``LICENSE.rst`` file.\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Pytest plugin for filtering based on sub-packages",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/astropy/pytest-filter-subpackage"
    },
    "split_keywords": [
        "pytest",
        "py.test"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "acf82ed436b6ef3fb46743ba6e562c5421493d695c6534f051420ef2b5a99258",
                "md5": "b5b03316184a60e71b6a5ebcac669383",
                "sha256": "b4a8c21b52110c3fefe949229c387c18be081132138ca3acc4953869a459b3f6"
            },
            "downloads": -1,
            "filename": "pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b5b03316184a60e71b6a5ebcac669383",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.8",
            "size": 5501,
            "upload_time": "2024-03-04T16:52:19",
            "upload_time_iso_8601": "2024-03-04T16:52:19.171758Z",
            "url": "https://files.pythonhosted.org/packages/ac/f8/2ed436b6ef3fb46743ba6e562c5421493d695c6534f051420ef2b5a99258/pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82f310d46a1dcd2245854db8654a27e48da727411e88ed4afa7fc24331ff217c",
                "md5": "3c9ed5317f82cbcd782e4c15691479b5",
                "sha256": "3f468f1b36518128869b95deab661ba45ed6293854329fef14da4c8cac78af56"
            },
            "downloads": -1,
            "filename": "pytest-filter-subpackage-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3c9ed5317f82cbcd782e4c15691479b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8085,
            "upload_time": "2024-03-04T16:52:21",
            "upload_time_iso_8601": "2024-03-04T16:52:21.731570Z",
            "url": "https://files.pythonhosted.org/packages/82/f3/10d46a1dcd2245854db8654a27e48da727411e88ed4afa7fc24331ff217c/pytest-filter-subpackage-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-04 16:52:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "astropy",
    "github_project": "pytest-filter-subpackage",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-filter-subpackage"
}
        
Elapsed time: 0.26263s