pytest-remove-stale-bytecode


Namepytest-remove-stale-bytecode JSON
Version 6.0 PyPI version JSON
download
home_pagehttps://github.com/gocept/pytest-remove-stale-bytecode/
Summarypy.test plugin to remove stale byte code files.
upload_time2023-07-07 14:11:53
maintainer
docs_urlNone
authorgocept <mail@gocept.com>
requires_python>= 3.7
licenseMIT
keywords pytest pyc bytecode artefacts
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            =======================================
py.test plugin to remove stale bytecode
=======================================

.. image:: https://img.shields.io/pypi/v/pytest-remove-stale-bytecode.svg
    :target: https://pypi.org/project/pytest-remove-stale-bytecode/

.. image:: https://img.shields.io/pypi/pyversions/pytest-remove-stale-bytecode.svg
    :target: https://pypi.org/project/pytest-remove-stale-bytecode/

.. image:: https://github.com/gocept/pytest-remove-stale-bytecode/workflows/tests/badge.svg
    :target: https://github.com/gocept/pytest-remove-stale-bytecode/actions?query=workflow%3Atests


Description
===========

This plugin removes stale bytecode files of the packages under test before running tests. This makes
sure that Python modules -- whose source was deleted -- are not accidentally visible
to the test runner anymore due to a left-over bytecode file (``*.pyc``,
``*.pyo``).

.. caution::

   This plug-in only looks into the packages you are testing. If there is a stale bytecode file
   in another package it does not remove it.

Usage
=====

To use this plugin you just have to install it, so it is accessible by the
pytest you are using:

+ If you are using `buildout`, add ``pytest-remove-stale-bytecode`` to the
  buildout section of your pytest runner.

+ If you are using `pip` add it to your test requirements.

Per default, there is no output generated, but if pytest is invoked in verbose
mode (``-v``), information about the deleted files is printed.

This plugin was inspired by a feature of `zope.testrunner`_.

.. _`zope.testrunner`: https://pypi.python.org/pypi/zope.testrunner


=======
CHANGES
=======


6.0 (2023-07-07)
================

Backwards incompatible changes
------------------------------

- Drop support for Python 3.5 and 3.6.

Features
--------

- Add support for Python 3.9, 3.10, 3.11.

- Update tests to ``pytest >= 6.2``.

Other changes
-------------

- Use Github actions as CI.



5.0.1 (2020-03-04)
==================

- Calling `pytest --help` no longer breaks when this plug-in is installed.


5.0 (2020-01-17)
================

Backwards incompatible changes
------------------------------

- Drop support for Python 2.7 and PyPy2.

Features
--------

- Add support for Python 3.8.

- Migrate to Github.

- Improve for new pytest versions.

Bug fixes
---------

- Fix problems when running tests jobs in parallel.
  (`#2 <https://github.com/gocept/pytest-remove-stale-bytecode/issues/2>`_)


4.0 (2019-09-13)
================

Backwards incompatible changes
------------------------------

- Drop support for Python 3.4.

Features
--------

- Make work with py.test >=3.10 again.

- Add support for Python 3.7.


3.0.1 (2019-03-21)
==================

- This plug-in only works in py.test < version 3.10.
  It is broken since the merge of
  `pytest-dev/pytest#4250 <https://github.com/pytest-dev/pytest/pull/4250>`_

- Drop support for Python 3.3.


3.0 (2017-05-12)
================

- Add support for Python 3.6, PyPy2 and PyPy3.

- Do not show output by default anymore. It can be turned on with ``-v``
  option.

- Change the license from ZPL to MIT.


2.1 (2015-10-01)
================

- Also remove bytecode files under Python 3, that end with ``-PYTEST``.


2.0 (2015-10-01)
================

- Add support for removing byte code files under Python 3.


1.0 (2014-10-29)
================

- initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gocept/pytest-remove-stale-bytecode/",
    "name": "pytest-remove-stale-bytecode",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">= 3.7",
    "maintainer_email": "",
    "keywords": "pytest pyc bytecode artefacts",
    "author": "gocept <mail@gocept.com>",
    "author_email": "mail@gocept.com",
    "download_url": "https://files.pythonhosted.org/packages/34/e2/14897ba37c9fb6f51b063851bca1ff798ea8fd9c951501aa29b30d84d869/pytest-remove-stale-bytecode-6.0.tar.gz",
    "platform": null,
    "description": "=======================================\npy.test plugin to remove stale bytecode\n=======================================\n\n.. image:: https://img.shields.io/pypi/v/pytest-remove-stale-bytecode.svg\n    :target: https://pypi.org/project/pytest-remove-stale-bytecode/\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-remove-stale-bytecode.svg\n    :target: https://pypi.org/project/pytest-remove-stale-bytecode/\n\n.. image:: https://github.com/gocept/pytest-remove-stale-bytecode/workflows/tests/badge.svg\n    :target: https://github.com/gocept/pytest-remove-stale-bytecode/actions?query=workflow%3Atests\n\n\nDescription\n===========\n\nThis plugin removes stale bytecode files of the packages under test before running tests. This makes\nsure that Python modules -- whose source was deleted -- are not accidentally visible\nto the test runner anymore due to a left-over bytecode file (``*.pyc``,\n``*.pyo``).\n\n.. caution::\n\n   This plug-in only looks into the packages you are testing. If there is a stale bytecode file\n   in another package it does not remove it.\n\nUsage\n=====\n\nTo use this plugin you just have to install it, so it is accessible by the\npytest you are using:\n\n+ If you are using `buildout`, add ``pytest-remove-stale-bytecode`` to the\n  buildout section of your pytest runner.\n\n+ If you are using `pip` add it to your test requirements.\n\nPer default, there is no output generated, but if pytest is invoked in verbose\nmode (``-v``), information about the deleted files is printed.\n\nThis plugin was inspired by a feature of `zope.testrunner`_.\n\n.. _`zope.testrunner`: https://pypi.python.org/pypi/zope.testrunner\n\n\n=======\nCHANGES\n=======\n\n\n6.0 (2023-07-07)\n================\n\nBackwards incompatible changes\n------------------------------\n\n- Drop support for Python 3.5 and 3.6.\n\nFeatures\n--------\n\n- Add support for Python 3.9, 3.10, 3.11.\n\n- Update tests to ``pytest >= 6.2``.\n\nOther changes\n-------------\n\n- Use Github actions as CI.\n\n\n\n5.0.1 (2020-03-04)\n==================\n\n- Calling `pytest --help` no longer breaks when this plug-in is installed.\n\n\n5.0 (2020-01-17)\n================\n\nBackwards incompatible changes\n------------------------------\n\n- Drop support for Python 2.7 and PyPy2.\n\nFeatures\n--------\n\n- Add support for Python 3.8.\n\n- Migrate to Github.\n\n- Improve for new pytest versions.\n\nBug fixes\n---------\n\n- Fix problems when running tests jobs in parallel.\n  (`#2 <https://github.com/gocept/pytest-remove-stale-bytecode/issues/2>`_)\n\n\n4.0 (2019-09-13)\n================\n\nBackwards incompatible changes\n------------------------------\n\n- Drop support for Python 3.4.\n\nFeatures\n--------\n\n- Make work with py.test >=3.10 again.\n\n- Add support for Python 3.7.\n\n\n3.0.1 (2019-03-21)\n==================\n\n- This plug-in only works in py.test < version 3.10.\n  It is broken since the merge of\n  `pytest-dev/pytest#4250 <https://github.com/pytest-dev/pytest/pull/4250>`_\n\n- Drop support for Python 3.3.\n\n\n3.0 (2017-05-12)\n================\n\n- Add support for Python 3.6, PyPy2 and PyPy3.\n\n- Do not show output by default anymore. It can be turned on with ``-v``\n  option.\n\n- Change the license from ZPL to MIT.\n\n\n2.1 (2015-10-01)\n================\n\n- Also remove bytecode files under Python 3, that end with ``-PYTEST``.\n\n\n2.0 (2015-10-01)\n================\n\n- Add support for removing byte code files under Python 3.\n\n\n1.0 (2014-10-29)\n================\n\n- initial release\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "py.test plugin to remove stale byte code files.",
    "version": "6.0",
    "project_urls": {
        "Homepage": "https://github.com/gocept/pytest-remove-stale-bytecode/"
    },
    "split_keywords": [
        "pytest",
        "pyc",
        "bytecode",
        "artefacts"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69f64842901515349a46a325ac830ba5b73ae6741de0b82a6d6b4258dc4752d6",
                "md5": "b59bfa80c0062879d70fd1fa9dff6641",
                "sha256": "a66b00ea88f7c9b5d8139e1dce0537bddba5449b8555476f508cd09564cdf9c2"
            },
            "downloads": -1,
            "filename": "pytest_remove_stale_bytecode-6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b59bfa80c0062879d70fd1fa9dff6641",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">= 3.7",
            "size": 4554,
            "upload_time": "2023-07-07T14:11:52",
            "upload_time_iso_8601": "2023-07-07T14:11:52.105073Z",
            "url": "https://files.pythonhosted.org/packages/69/f6/4842901515349a46a325ac830ba5b73ae6741de0b82a6d6b4258dc4752d6/pytest_remove_stale_bytecode-6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "34e214897ba37c9fb6f51b063851bca1ff798ea8fd9c951501aa29b30d84d869",
                "md5": "6c9cce6b10d6df0f8116fe519b10dfb9",
                "sha256": "4994af33ac963c50881a4c8a91d4eb47d7a50cf5d98560a88f0819ed9c45567d"
            },
            "downloads": -1,
            "filename": "pytest-remove-stale-bytecode-6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6c9cce6b10d6df0f8116fe519b10dfb9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">= 3.7",
            "size": 5518,
            "upload_time": "2023-07-07T14:11:53",
            "upload_time_iso_8601": "2023-07-07T14:11:53.862043Z",
            "url": "https://files.pythonhosted.org/packages/34/e2/14897ba37c9fb6f51b063851bca1ff798ea8fd9c951501aa29b30d84d869/pytest-remove-stale-bytecode-6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-07 14:11:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gocept",
    "github_project": "pytest-remove-stale-bytecode",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-remove-stale-bytecode"
}
        
Elapsed time: 0.29761s