1[metadata] 2name = qemu 3version = file:VERSION 4maintainer = QEMU Developer Team 5maintainer_email = qemu-devel@nongnu.org 6url = https://www.qemu.org/ 7download_url = https://www.qemu.org/download/ 8description = QEMU Python Build, Debug and SDK tooling. 9long_description = file:PACKAGE.rst 10long_description_content_type = text/x-rst 11classifiers = 12 Development Status :: 3 - Alpha 13 License :: OSI Approved :: GNU General Public License v2 (GPLv2) 14 Natural Language :: English 15 Operating System :: OS Independent 16 Programming Language :: Python :: 3 :: Only 17 Programming Language :: Python :: 3.6 18 Programming Language :: Python :: 3.7 19 Programming Language :: Python :: 3.8 20 Programming Language :: Python :: 3.9 21 Programming Language :: Python :: 3.10 22 Typing :: Typed 23 24[options] 25python_requires = >= 3.6 26packages = 27 qemu.qmp 28 qemu.machine 29 qemu.utils 30 qemu.aqmp 31 32[options.package_data] 33* = py.typed 34 35[options.extras_require] 36# For the devel group, When adding new dependencies or bumping the minimum 37# version, use e.g. "pipenv install --dev pylint==3.0.0". 38# Subsequently, edit 'Pipfile' to remove e.g. 'pylint = "==3.0.0'. 39devel = 40 avocado-framework >= 90.0 41 flake8 >= 3.6.0 42 fusepy >= 2.0.4 43 isort >= 5.1.2 44 mypy >= 0.780 45 pylint >= 2.8.0 46 tox >= 3.18.0 47 urwid >= 2.1.2 48 urwid-readline >= 0.13 49 Pygments >= 2.9.0 50 51# Provides qom-fuse functionality 52fuse = 53 fusepy >= 2.0.4 54 55# AQMP TUI dependencies 56tui = 57 urwid >= 2.1.2 58 urwid-readline >= 0.13 59 Pygments >= 2.9.0 60 61[options.entry_points] 62console_scripts = 63 qom = qemu.utils.qom:main 64 qom-set = qemu.utils.qom:QOMSet.entry_point 65 qom-get = qemu.utils.qom:QOMGet.entry_point 66 qom-list = qemu.utils.qom:QOMList.entry_point 67 qom-tree = qemu.utils.qom:QOMTree.entry_point 68 qom-fuse = qemu.utils.qom_fuse:QOMFuse.entry_point [fuse] 69 qemu-ga-client = qemu.utils.qemu_ga_client:main 70 qmp-shell = qemu.aqmp.qmp_shell:main 71 qmp-shell-wrap = qemu.aqmp.qmp_shell:main_wrap 72 aqmp-tui = qemu.aqmp.aqmp_tui:main [tui] 73 74[flake8] 75extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's 76exclude = __pycache__, 77 78[mypy] 79strict = True 80python_version = 3.6 81warn_unused_configs = True 82namespace_packages = True 83 84[mypy-qemu.utils.qom_fuse] 85# fusepy has no type stubs: 86allow_subclassing_any = True 87 88[mypy-qemu.aqmp.aqmp_tui] 89# urwid and urwid_readline have no type stubs: 90allow_subclassing_any = True 91 92# The following missing import directives are because these libraries do not 93# provide type stubs. Allow them on an as-needed basis for mypy. 94[mypy-fuse] 95ignore_missing_imports = True 96 97[mypy-urwid] 98ignore_missing_imports = True 99 100[mypy-urwid_readline] 101ignore_missing_imports = True 102 103[mypy-pygments] 104ignore_missing_imports = True 105 106[pylint.messages control] 107# Disable the message, report, category or checker with the given id(s). You 108# can either give multiple identifiers separated by comma (,) or put this 109# option multiple times (only on the command line, not in the configuration 110# file where it should appear only once). You can also use "--disable=all" to 111# disable everything first and then reenable specific checks. For example, if 112# you want to run only the similarities checker, you can use "--disable=all 113# --enable=similarities". If you want to run only the classes checker, but have 114# no Warning level messages displayed, use "--disable=all --enable=classes 115# --disable=W". 116disable=consider-using-f-string, 117 too-many-function-args, # mypy handles this with less false positives. 118 no-member, # mypy also handles this better. 119 120[pylint.basic] 121# Good variable names which should always be accepted, separated by a comma. 122good-names=i, 123 j, 124 k, 125 ex, 126 Run, 127 _, # By convention: Unused variable 128 fh, # fh = open(...) 129 fd, # fd = os.open(...) 130 c, # for c in string: ... 131 T, # for TypeVars. See pylint#3401 132 133[pylint.similarities] 134# Ignore imports when computing similarities. 135ignore-imports=yes 136ignore-signatures=yes 137 138# Minimum lines number of a similarity. 139# TODO: Remove after we opt in to Pylint 2.8.3. See commit msg. 140min-similarity-lines=6 141 142 143[isort] 144force_grid_wrap=4 145force_sort_within_sections=True 146include_trailing_comma=True 147line_length=72 148lines_after_imports=2 149multi_line_output=3 150 151# tox (https://tox.readthedocs.io/) is a tool for running tests in 152# multiple virtualenvs. This configuration file will run the test suite 153# on all supported python versions. To use it, "pip install tox" and 154# then run "tox" from this directory. You will need all of these versions 155# of python available on your system to run this test. 156 157[tox:tox] 158envlist = py36, py37, py38, py39, py310 159skip_missing_interpreters = true 160 161[testenv] 162allowlist_externals = make 163deps = 164 .[devel] 165 .[fuse] # Workaround to trigger tox venv rebuild 166 .[tui] # Workaround to trigger tox venv rebuild 167 setuptools < 60 # Workaround, please see commit msg. 168commands = 169 make check 170 171# Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for 172# measuring code coverage of Python programs. It monitors your program, 173# noting which parts of the code have been executed, then analyzes the 174# source to identify code that could have been executed but was not. 175 176[coverage:run] 177concurrency = multiprocessing 178source = qemu/ 179parallel = true 180