tox-pyenv


Nametox-pyenv JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/samstav/tox-pyenv
Summarytox plugin that makes tox use `pyenv which` to find python executables
upload_time2017-08-29 23:13:22
maintainer
docs_urlNone
authorSam Stavinoha
requires_python
licenseApache License, Version 2.0
keywords tox pyenv python ae48885f
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            tox-pyenv
=========

| |latest|  |Circle CI|

Plugin that tells `tox <https://tox.readthedocs.org/en/latest/>`__ to
use `pyenv which <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-which>`__
to `find python
executables <https://testrun.org/tox/latest/plugins.html#tox.hookspecs.tox_get_python_executable>`__

Your project's `circle.yml <https://circleci.com/docs/configuration>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In order for ``tox`` to have the versions of python you want available,
set them using
`pyenv local <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-local>`__

.. code:: yaml

    dependencies:
      override:
        - pip install tox tox-pyenv
        - pyenv local 2.7.9 3.4.3 3.5.0

The versions passed to ``pyenv local`` must be
`installed <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-install>`__
for this to work. See `CircleCI Preinstalled Python
Versions <#circleci-preinstalled-python-versions>`__ for a list.

Corresponding `tox.ini <https://tox.readthedocs.org/en/latest/config.html>`__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: ini

    [tox]
    envlist = py27,py34,py35

The result of the setup above means running ``tox`` will run tests
against python 2.7.9, python 3.4.3 and python 3.5.0, assuming those
versions of python have been
`pyenv install <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-install>`__\ed.

notes
^^^^^

If you want tox to *exclusively* use ``pyenv which`` to find
executables, you will need use the ``--tox-pyenv-no-fallback`` command
line option, or set ``tox_pyenv_fallback=False`` in your tox.ini. By
default, if ``tox-pyenv`` fails to find a python executable it will
fallback to tox's built-in strategy.

CircleCI Preinstalled Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Here is the list of python versions that are *pre-installed* in the
CircleCI build environment (as of 09/27/2017):

::

    $ pyenv versions
      system
      2.6.6
      2.6.8
      2.7
      2.7.10
      2.7.11
      2.7.3
      2.7.4
      2.7.5
      2.7.6
      2.7.7
      2.7.8
    * 2.7.9 (set by /home/ubuntu/.pyenv/version)
      3.1.5
      3.2
      3.2.5
      3.3.0
      3.3.2
      3.3.3
      3.4.0
      3.4.1
      3.4.2
      3.4.3
      3.5.0
      pypy-2.2.1
      pypy-2.3.1
      pypy-2.4.0
      pypy-2.5.0

If the version you need isn't in the list, such as Python ``3.6-dev``
include an ``install`` step:

::

    dependencies:
      override:
        - pip install tox tox-pyenv
        - pyenv install --skip-existing 3.6-dev
        - pyenv local 3.6-dev

.. |latest| image:: https://img.shields.io/pypi/v/tox-pyenv.svg
   :target: https://pypi.python.org/pypi/tox-pyenv
.. |Circle CI| image:: https://circleci.com/gh/samstav/tox-pyenv/tree/master.svg?style=shield
   :target: https://circleci.com/gh/samstav/tox-pyenv/tree/master



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/samstav/tox-pyenv",
    "name": "tox-pyenv",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "tox pyenv python ae48885f",
    "author": "Sam Stavinoha",
    "author_email": "smlstvnh@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/16/0e/0208374ee677ccb9dbb4e9bc23f6d304bef6b881cc6ccb8bec2ae81b1e99/tox-pyenv-1.1.0.tar.gz",
    "platform": "",
    "description": "tox-pyenv\n=========\n\n| |latest|  |Circle CI|\n\nPlugin that tells `tox <https://tox.readthedocs.org/en/latest/>`__ to\nuse `pyenv which <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-which>`__\nto `find python\nexecutables <https://testrun.org/tox/latest/plugins.html#tox.hookspecs.tox_get_python_executable>`__\n\nYour project's `circle.yml <https://circleci.com/docs/configuration>`__\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nIn order for ``tox`` to have the versions of python you want available,\nset them using\n`pyenv local <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-local>`__\n\n.. code:: yaml\n\n    dependencies:\n      override:\n        - pip install tox tox-pyenv\n        - pyenv local 2.7.9 3.4.3 3.5.0\n\nThe versions passed to ``pyenv local`` must be\n`installed <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-install>`__\nfor this to work. See `CircleCI Preinstalled Python\nVersions <#circleci-preinstalled-python-versions>`__ for a list.\n\nCorresponding `tox.ini <https://tox.readthedocs.org/en/latest/config.html>`__\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n.. code:: ini\n\n    [tox]\n    envlist = py27,py34,py35\n\nThe result of the setup above means running ``tox`` will run tests\nagainst python 2.7.9, python 3.4.3 and python 3.5.0, assuming those\nversions of python have been\n`pyenv install <https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-install>`__\\ed.\n\nnotes\n^^^^^\n\nIf you want tox to *exclusively* use ``pyenv which`` to find\nexecutables, you will need use the ``--tox-pyenv-no-fallback`` command\nline option, or set ``tox_pyenv_fallback=False`` in your tox.ini. By\ndefault, if ``tox-pyenv`` fails to find a python executable it will\nfallback to tox's built-in strategy.\n\nCircleCI Preinstalled Python Versions\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nHere is the list of python versions that are *pre-installed* in the\nCircleCI build environment (as of 09/27/2017):\n\n::\n\n    $ pyenv versions\n      system\n      2.6.6\n      2.6.8\n      2.7\n      2.7.10\n      2.7.11\n      2.7.3\n      2.7.4\n      2.7.5\n      2.7.6\n      2.7.7\n      2.7.8\n    * 2.7.9 (set by /home/ubuntu/.pyenv/version)\n      3.1.5\n      3.2\n      3.2.5\n      3.3.0\n      3.3.2\n      3.3.3\n      3.4.0\n      3.4.1\n      3.4.2\n      3.4.3\n      3.5.0\n      pypy-2.2.1\n      pypy-2.3.1\n      pypy-2.4.0\n      pypy-2.5.0\n\nIf the version you need isn't in the list, such as Python ``3.6-dev``\ninclude an ``install`` step:\n\n::\n\n    dependencies:\n      override:\n        - pip install tox tox-pyenv\n        - pyenv install --skip-existing 3.6-dev\n        - pyenv local 3.6-dev\n\n.. |latest| image:: https://img.shields.io/pypi/v/tox-pyenv.svg\n   :target: https://pypi.python.org/pypi/tox-pyenv\n.. |Circle CI| image:: https://circleci.com/gh/samstav/tox-pyenv/tree/master.svg?style=shield\n   :target: https://circleci.com/gh/samstav/tox-pyenv/tree/master\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "tox plugin that makes tox use `pyenv which` to find python executables",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/samstav/tox-pyenv"
    },
    "split_keywords": [
        "tox",
        "pyenv",
        "python",
        "ae48885f"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b756ee1b984fbfb745cc637009dcb054b5fc9399c838b465c634846fd1550511",
                "md5": "d83e1d920ce71df84f2005848b800fb3",
                "sha256": "e470c18af115fe52eeff95e7e3cdd0793613eca19709966fc2724b79d55246cb"
            },
            "downloads": -1,
            "filename": "tox_pyenv-1.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d83e1d920ce71df84f2005848b800fb3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6824,
            "upload_time": "2017-08-29T23:13:20",
            "upload_time_iso_8601": "2017-08-29T23:13:20.508401Z",
            "url": "https://files.pythonhosted.org/packages/b7/56/ee1b984fbfb745cc637009dcb054b5fc9399c838b465c634846fd1550511/tox_pyenv-1.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "160e0208374ee677ccb9dbb4e9bc23f6d304bef6b881cc6ccb8bec2ae81b1e99",
                "md5": "eee1c5035503c2339f51a3fc06052b01",
                "sha256": "916c2213577aec0b3b5452c5bfb32fd077f3a3196f50a81ad57d7ef3fc2599e4"
            },
            "downloads": -1,
            "filename": "tox-pyenv-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "eee1c5035503c2339f51a3fc06052b01",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4925,
            "upload_time": "2017-08-29T23:13:22",
            "upload_time_iso_8601": "2017-08-29T23:13:22.524949Z",
            "url": "https://files.pythonhosted.org/packages/16/0e/0208374ee677ccb9dbb4e9bc23f6d304bef6b881cc6ccb8bec2ae81b1e99/tox-pyenv-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-08-29 23:13:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "samstav",
    "github_project": "tox-pyenv",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "tox": true,
    "lcname": "tox-pyenv"
}
        
Elapsed time: 0.55800s