init_venv: Also install pyroma/check-manifest.

This commit is contained in:
Florian Bruhin 2015-03-06 17:50:15 +01:00
parent f7b036cf15
commit a919ce2ffe

View File

@ -79,7 +79,8 @@ def get_dev_packages(short=False):
short: Remove the version specification. short: Remove the version specification.
""" """
packages = ['colorlog', 'flake8', 'astroid', 'pylint', 'pep257', packages = ['colorlog', 'flake8', 'astroid', 'pylint', 'pep257',
'colorama', 'beautifulsoup4', 'coverage'] 'colorama', 'beautifulsoup4', 'coverage', 'pyroma',
'check-manifest']
if short: if short:
packages = [re.split(r'[<>=]', p)[0] for p in packages] packages = [re.split(r'[<>=]', p)[0] for p in packages]
return packages return packages
@ -112,11 +113,14 @@ def test_toolchain():
utils.print_title("Checking toolchain") utils.print_title("Checking toolchain")
packages = ['sip', 'PyQt5.QtCore', 'PyQt5.QtWebKit', 'qutebrowser.app'] packages = ['sip', 'PyQt5.QtCore', 'PyQt5.QtWebKit', 'qutebrowser.app']
renames = {'beautifulsoup4': 'bs4', 'check-manifest': 'check_manifest'}
if g_args.dev: if g_args.dev:
packages += get_dev_packages(short=True) packages += get_dev_packages(short=True)
for pkg in packages: for pkg in packages:
if pkg == 'beautifulsoup4': try:
pkg = 'bs4' pkg = renames[pkg]
except KeyError:
pass
print("Importing {}".format(pkg)) print("Importing {}".format(pkg))
venv_python('-c', 'import {}'.format(pkg)) venv_python('-c', 'import {}'.format(pkg))