提供与conda集成的tox插件
tox-conda的Python项目详细描述
毒性条件图片::https://www.repostatus.org/badges/latest/wip.svg
:alt:project status:wip–初始开发正在进行中,但还没有一个稳定、可用的、适合于公众的版本。
:target:https://www.repostatus.org/wip
。图片::https://img.shields.io/pypi/v/tox conda.svg
:目标:https://pypi.org/project/tox conda
:alt:pypi version
图片::https://img.shields.io/pypi/pyversions/tox conda.svg
:目标:https://pypi.org/project/tox conda
:alt:python版本
…图片::https://travis-ci.org/tox-dev/tox-conda.svg?branch=master
:目标:https://travis ci.org/tox dev/tox conda
:alt:请参阅travis ci上的生成状态
…图片::https://ci.appveyor.com/api/projects/status/github/tox-dev/tox-conda?branch=master
:target:https://ci.appveyor.com/project/tox dev/tox conda/branch/master
:a lt:see build status on appveyor
``tox conda``是一个插件,它为tox
<;https://conda.io>;``包和环境管理器提供集成;https://tox.readthedocs.io>;``自动化工具。就像吃了蛋糕然后也吃了一样!
默认情况下,``tox``使用'virtualenv
<;https://virtualenv.pypa.io>;``创建隔离环境,并从'pip``安装依赖项。
来自"conda"的依赖项。这对于依赖conda进行环境管理和包分发,但希望利用
``tox``提供的功能实现测试自动化的开发人员来说非常有用。
要安装,只需使用
以下命令:
:
$pip install tox conda
然后在您的环境中安装:
:
$cd tox conda
$pip install.
to install in`development
mode<;https://packaging.python.org/tutorials/distributing packages/
tox-conda``插件要求已经安装了``tox``和``conda``并且
在您的工作环境中可用。
用法
----
>有关``tox``用法的详细信息,请参见` tox文档
<;https://tox.readthedocs.io>;``.
没有其他更改,``tox conda``插件将使用
``conda``创建环境,并使用'`pip``安装在'`tox.ini``配置文件中给定的依赖项。
``tox conda``在configur的'`[testenv]`
部分添加两个附加(和可选)设置。操作文件:
*``conda_deps```,用于配置从'conda``而不是从'pip``安装的依赖项。"conda_deps"中的所有依赖项都安装在"deps"中所有依赖项之前。如果未给定,则不会使用"conda"安装依赖项
。
*``conda_channel s``,它指定应使用哪个通道来解析"conda"依赖项。如果没有给出,则只使用"default"通道
。
下面给出了一个配置文件示例:
:
[tox]
envlist=
{py35,py36,py37}-{stable,dev}
[testenv]
deps=
pytest sugar
py35,py36:importlib资源
dev:git+git://github.com/numpy/numpy
conda_deps=
pytest<;=3.8
稳定:numpy=1.15
conda_channels=
conda forge
命令=
pytest{posargs}
可以使用"tox"运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
如果有任何问题,请"提交问题"并附上详细说明。
…_` Cookiecutter`:https://github.com/audreyr/Cookiecutter
。_`@obestwalter`:https://github.com/tox dev
。_` mit`:http://opensource.org/licenses/mit
。_` bsd-3`:http://opensource.org/licenses/bsd-3-clause
。_` gnu gpl v3.0`:http://www.gnu.org/licenses/gpl-3.0.txt
。_` apache软件许可证2.0`:http://www.apache.org/licenses/license-2.0
。_` cookiecutter tox plugin`:https://github.com/tox dev/cookiecutter tox plugin
。_`提交问题:https://github.com/tox dev/tox conda/issues
。_` pytest`:https://github.com/pytest dev/pytest
。_` tox`:https://tox.readthedocs.io/en/latest/
。_` pip`:https://pypi.org/project/pip/
。_` pypi`:https://pypi.org
:alt:project status:wip–初始开发正在进行中,但还没有一个稳定、可用的、适合于公众的版本。
:target:https://www.repostatus.org/wip
。图片::https://img.shields.io/pypi/v/tox conda.svg
:目标:https://pypi.org/project/tox conda
:alt:pypi version
图片::https://img.shields.io/pypi/pyversions/tox conda.svg
:目标:https://pypi.org/project/tox conda
:alt:python版本
…图片::https://travis-ci.org/tox-dev/tox-conda.svg?branch=master
:目标:https://travis ci.org/tox dev/tox conda
:alt:请参阅travis ci上的生成状态
…图片::https://ci.appveyor.com/api/projects/status/github/tox-dev/tox-conda?branch=master
:target:https://ci.appveyor.com/project/tox dev/tox conda/branch/master
:a lt:see build status on appveyor
``tox conda``是一个插件,它为tox
<;https://conda.io>;``包和环境管理器提供集成;https://tox.readthedocs.io>;``自动化工具。就像吃了蛋糕然后也吃了一样!
默认情况下,``tox``使用'virtualenv
<;https://virtualenv.pypa.io>;``创建隔离环境,并从'pip``安装依赖项。
来自"conda"的依赖项。这对于依赖conda进行环境管理和包分发,但希望利用
``tox``提供的功能实现测试自动化的开发人员来说非常有用。
要安装,只需使用
以下命令:
:
$pip install tox conda
然后在您的环境中安装:
:
$cd tox conda
$pip install.
to install in`development
mode<;https://packaging.python.org/tutorials/distributing packages/
tox-conda``插件要求已经安装了``tox``和``conda``并且
在您的工作环境中可用。
用法
----
>有关``tox``用法的详细信息,请参见` tox文档
<;https://tox.readthedocs.io>;``.
没有其他更改,``tox conda``插件将使用
``conda``创建环境,并使用'`pip``安装在'`tox.ini``配置文件中给定的依赖项。
``tox conda``在configur的'`[testenv]`
部分添加两个附加(和可选)设置。操作文件:
*``conda_deps```,用于配置从'conda``而不是从'pip``安装的依赖项。"conda_deps"中的所有依赖项都安装在"deps"中所有依赖项之前。如果未给定,则不会使用"conda"安装依赖项
。
*``conda_channel s``,它指定应使用哪个通道来解析"conda"依赖项。如果没有给出,则只使用"default"通道
。
下面给出了一个配置文件示例:
:
[tox]
envlist=
{py35,py36,py37}-{stable,dev}
[testenv]
deps=
pytest sugar
py35,py36:importlib资源
dev:git+git://github.com/numpy/numpy
conda_deps=
pytest<;=3.8
稳定:numpy=1.15
conda_channels=
conda forge
命令=
pytest{posargs}
可以使用"tox"运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
如果有任何问题,请"提交问题"并附上详细说明。
…_` Cookiecutter`:https://github.com/audreyr/Cookiecutter
。_`@obestwalter`:https://github.com/tox dev
。_` mit`:http://opensource.org/licenses/mit
。_` bsd-3`:http://opensource.org/licenses/bsd-3-clause
。_` gnu gpl v3.0`:http://www.gnu.org/licenses/gpl-3.0.txt
。_` apache软件许可证2.0`:http://www.apache.org/licenses/license-2.0
。_` cookiecutter tox plugin`:https://github.com/tox dev/cookiecutter tox plugin
。_`提交问题:https://github.com/tox dev/tox conda/issues
。_` pytest`:https://github.com/pytest dev/pytest
。_` tox`:https://tox.readthedocs.io/en/latest/
。_` pip`:https://pypi.org/project/pip/
。_` pypi`:https://pypi.org