{ "info": { "author": "Michael Merickel", "author_email": "michael@merickel.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "===========\npytest-venv\n===========\n\n.. image:: https://img.shields.io/pypi/v/pytest-venv.svg\n :target: https://pypi.python.org/pypi/pytest-venv\n\n.. image:: https://img.shields.io/travis/mmerickel/pytest-venv.svg\n :target: https://travis-ci.org/mmerickel/pytest-venv\n\n``pytest-venv`` is a simple pytest plugin that exposes a ``venv`` fixture.\nThe fixture is used to create a new virtual environment which can be used\nto install packages and run commands inside tests.\n\nUsage\n=====\n\n.. code-block:: python\n\n import os\n\n def test_it(venv):\n venv.install('pyramid', upgrade=True)\n subprocess.check_call(\n [os.path.join(venv.bin, 'pserve'), 'development.ini'],\n )\n\nAPI\n===\n\nThe ``venv`` fixture is an instance of\n``pytest_venv.VirtualEnvironment(path)`` which exposes the following API:\n\n``path``\n\n The path to the virtualenv directory.\n\n``bin``\n\n The path to the bin / Scripts directory.\n\n``python``\n\n The path to the python executable in the virtualenv.\n\n``create(system_site_packages=False, python=None)``\n\n Create a virtualenv. This is called automatically by the ``venv`` fixture.\n If ``python`` is ``None`` then the virtual environment will be created\n using the same executable as the active runtime.\n\n``install(pkg_name, editable=False, upgrade=False)``\n\n Use pip to install a package into the virtualenv. ``pkg_name`` may be a\n path to a package on disk.\n\n``get_version(pkg_name)``\n\n Returns a ``pkg_resources.Version`` object which is sortable and convertable\n to a string.\n\n\n0.2 (2016-11-27)\n================\n\n- Add ``VirtualEnvironment.get_version`` for querying versions from\n installed packages in the virtual environment.\n\n- Support custom python interpreter paths via\n ``VirtualEnvironment.create(python=...)``.\n\n0.1.1 (2016-11-27)\n==================\n\n- Ensure the virtual environment is started with the same Python executable\n as the current process.\n\n0.1 (2016-11-27)\n================\n\n- Initial release.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mmerickel/pytest-venv", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pytest-venv", "package_url": "https://pypi.org/project/pytest-venv/", "platform": "", "project_url": "https://pypi.org/project/pytest-venv/", "project_urls": { "Homepage": "https://github.com/mmerickel/pytest-venv" }, "release_url": "https://pypi.org/project/pytest-venv/0.2/", "requires_dist": [ "setuptools", "virtualenv", "pytest; extra == 'testing'", "pytest-cov; extra == 'testing'" ], "requires_python": "", "summary": "py.test fixture for creating a virtual environment", "version": "0.2" }, "last_serial": 2485497, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6be3a5947f744d9c74d8de7a8e0a6475", "sha256": "ce37462c3e700f8c65519f980da9cf431907850ec3be80482a0280f2d67603a1" }, "downloads": -1, "filename": "pytest_venv-0.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "6be3a5947f744d9c74d8de7a8e0a6475", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4267, "upload_time": "2016-11-27T19:59:23", "url": "https://files.pythonhosted.org/packages/cc/8a/d972eeceab19963f41712ed652bfc1cff80d6a62df2937c06b5b6d1abb8e/pytest_venv-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4231b2288e01cbbc044cd41897c90fe6", "sha256": "4fe2418cfe5433ef8a93167a807875c3fd88f9152a3af605892003a70ce299ee" }, "downloads": -1, "filename": "pytest-venv-0.1.tar.gz", "has_sig": true, "md5_digest": "4231b2288e01cbbc044cd41897c90fe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5549, "upload_time": "2016-11-27T19:59:25", "url": "https://files.pythonhosted.org/packages/1d/c3/af2e064f977429a42f90b45104101a95bd2197b1c2ee25305a37fc3a90b7/pytest-venv-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b7c7f5b2475f124659cef1c01d4d5117", "sha256": "111bfb3726523b7436b62c18cd2a6c263f08479d0ff41488d5870a296a8c0961" }, "downloads": -1, "filename": "pytest_venv-0.1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "b7c7f5b2475f124659cef1c01d4d5117", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4400, "upload_time": "2016-11-27T20:20:04", "url": "https://files.pythonhosted.org/packages/8b/8e/b798efde67f20d498ad3332a8bfba7361742dc10da4321b0591a5107a571/pytest_venv-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "237f5780faa479e60e6b0feba020edea", "sha256": "b071cce9afdc46966775112b0e725e1db552b465c171c8e8f2bea8b347f3cc70" }, "downloads": -1, "filename": "pytest-venv-0.1.1.tar.gz", "has_sig": true, "md5_digest": "237f5780faa479e60e6b0feba020edea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5675, "upload_time": "2016-11-27T20:20:08", "url": "https://files.pythonhosted.org/packages/9d/42/6ca7dc71201f90a6c2966868e21ee1f66cef3c70332b31b3088765dc841a/pytest-venv-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0157c8201a91e8ae9e8ddea9503b59b3", "sha256": "ec842cbc60affbea6b1136bf9876ca858d0b77f6c58740e69a6e0ef708f43ea3" }, "downloads": -1, "filename": "pytest_venv-0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0157c8201a91e8ae9e8ddea9503b59b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4908, "upload_time": "2016-11-27T23:54:51", "url": "https://files.pythonhosted.org/packages/13/f9/acf7cfc40fca6eddd0225382d7bd90de619b8fface0543216b291c2ed98d/pytest_venv-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d240e1db17b9116ecfcd82c78c4cad33", "sha256": "4d0f78e0a6b2f6817061fbfbf4fb9c4a289034808946306fc11ee5ad9156e055" }, "downloads": -1, "filename": "pytest-venv-0.2.tar.gz", "has_sig": true, "md5_digest": "d240e1db17b9116ecfcd82c78c4cad33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6631, "upload_time": "2016-11-27T23:54:54", "url": "https://files.pythonhosted.org/packages/74/80/364847f0e49fc1617c87ff7d929d2a3f71b0663b73827ccd0c4817f032e6/pytest-venv-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0157c8201a91e8ae9e8ddea9503b59b3", "sha256": "ec842cbc60affbea6b1136bf9876ca858d0b77f6c58740e69a6e0ef708f43ea3" }, "downloads": -1, "filename": "pytest_venv-0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0157c8201a91e8ae9e8ddea9503b59b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4908, "upload_time": "2016-11-27T23:54:51", "url": "https://files.pythonhosted.org/packages/13/f9/acf7cfc40fca6eddd0225382d7bd90de619b8fface0543216b291c2ed98d/pytest_venv-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d240e1db17b9116ecfcd82c78c4cad33", "sha256": "4d0f78e0a6b2f6817061fbfbf4fb9c4a289034808946306fc11ee5ad9156e055" }, "downloads": -1, "filename": "pytest-venv-0.2.tar.gz", "has_sig": true, "md5_digest": "d240e1db17b9116ecfcd82c78c4cad33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6631, "upload_time": "2016-11-27T23:54:54", "url": "https://files.pythonhosted.org/packages/74/80/364847f0e49fc1617c87ff7d929d2a3f71b0663b73827ccd0c4817f032e6/pytest-venv-0.2.tar.gz" } ] }