Debian软件包安装程序tox插件
tox-DEBIAN的Python项目详细描述
毒性物质
tox_DEBIAN.py
是提取Debian包的tox插件。
进入tox管理的虚拟环境。
依赖性
钩子依赖性
插件实现了tox_testenv_install_deps
pluggy挂钩,
外部依赖性
插件使用apt-get
、dpkg
和cp
工具。
测试依赖性
tox_DEBIAN
,就像tox
,使用py.test实现测试自动化。
语法
debian依赖项必须列在testenv
部分中
作为debian_deps
多行选项。
[testenv]debian_deps= python3-ipaddr python3-yaml
可以使用apt_opts
选项为apt-get
定义额外选项:
[testenv]apt_opts= --allow-unauthenticateddebian_deps= python3-ipaddr python3-yaml
安装
安装TOX
pip install tox
tox
使用来自pkg_resources
的RequirementParseError
,因此setuptools
可能需要升级:
pip install --upgrade setuptools
安装tox_DEBIAN
pip install tox_DEBIAN
测试
本地tox_DEBIAN
安装
git clone https://github.com/tpazderka/tox-debian-plugin.git pip install -e tox-debian-plugin
安装py.test
pip install pytest
试运行
cd tox-debian-plugin
py.test tests