1ea1213b7SJohn Snow[metadata] 2ea1213b7SJohn Snowname = qemu 33afc3290SJohn Snowversion = file:VERSION 4ea1213b7SJohn Snowmaintainer = QEMU Developer Team 5ea1213b7SJohn Snowmaintainer_email = qemu-devel@nongnu.org 6ea1213b7SJohn Snowurl = https://www.qemu.org/ 7ea1213b7SJohn Snowdownload_url = https://www.qemu.org/download/ 8ea1213b7SJohn Snowdescription = QEMU Python Build, Debug and SDK tooling. 9ea1213b7SJohn Snowlong_description = file:PACKAGE.rst 10ea1213b7SJohn Snowlong_description_content_type = text/x-rst 11ea1213b7SJohn Snowclassifiers = 12ea1213b7SJohn Snow Development Status :: 3 - Alpha 13ea1213b7SJohn Snow License :: OSI Approved :: GNU General Public License v2 (GPLv2) 14ea1213b7SJohn Snow Natural Language :: English 15ea1213b7SJohn Snow Operating System :: OS Independent 16ea1213b7SJohn Snow Programming Language :: Python :: 3 :: Only 173c8de38cSJohn Snow Programming Language :: Python :: 3.8 183c8de38cSJohn Snow Programming Language :: Python :: 3.9 193c8de38cSJohn Snow Programming Language :: Python :: 3.10 20519f3cfcSJohn Snow Programming Language :: Python :: 3.11 217f179082SJohn Snow Typing :: Typed 22ea1213b7SJohn Snow 23ea1213b7SJohn Snow[options] 24*ca056f44SPaolo Bonzinipython_requires = >= 3.8 25ea1213b7SJohn Snowpackages = 2637094b6dSJohn Snow qemu.qmp 27ea1213b7SJohn Snow qemu.machine 28ea1213b7SJohn Snow qemu.utils 29ef42440dSJohn Snow 307f179082SJohn Snow[options.package_data] 317f179082SJohn Snow* = py.typed 327f179082SJohn Snow 33dbe75f55SJohn Snow[options.extras_require] 346832189fSJohn Snow# Remember to update tests/minreqs.txt if changing anything below: 35dbe75f55SJohn Snowdevel = 364320f717SJohn Snow avocado-framework >= 90.0 37c5538eedSJohn Snow distlib >= 0.3.6 387b4b98c4SPaolo Bonzini flake8 >= 5.0.4 39c63f3b0bSJohn Snow fusepy >= 2.0.4 40dbe75f55SJohn Snow isort >= 5.1.2 413d7b8974SPaolo Bonzini mypy >= 1.4.0 427b4b98c4SPaolo Bonzini pylint >= 2.17.3 433c8de38cSJohn Snow tox >= 3.18.0 44974e2f47SG S Niteesh Babu urwid >= 2.1.2 45974e2f47SG S Niteesh Babu urwid-readline >= 0.13 46f37c34d6SG S Niteesh Babu Pygments >= 2.9.0 47dbe75f55SJohn Snow 48c63f3b0bSJohn Snow# Provides qom-fuse functionality 49c63f3b0bSJohn Snowfuse = 50c63f3b0bSJohn Snow fusepy >= 2.0.4 51c63f3b0bSJohn Snow 52b1a9b1f7SJohn Snow# QMP TUI dependencies 53974e2f47SG S Niteesh Babutui = 54974e2f47SG S Niteesh Babu urwid >= 2.1.2 55974e2f47SG S Niteesh Babu urwid-readline >= 0.13 56f37c34d6SG S Niteesh Babu Pygments >= 2.9.0 57974e2f47SG S Niteesh Babu 587c4c595fSJohn Snow[options.entry_points] 597c4c595fSJohn Snowconsole_scripts = 600347c4c4SJohn Snow qom = qemu.utils.qom:main 610347c4c4SJohn Snow qom-set = qemu.utils.qom:QOMSet.entry_point 620347c4c4SJohn Snow qom-get = qemu.utils.qom:QOMGet.entry_point 630347c4c4SJohn Snow qom-list = qemu.utils.qom:QOMList.entry_point 640347c4c4SJohn Snow qom-tree = qemu.utils.qom:QOMTree.entry_point 650347c4c4SJohn Snow qom-fuse = qemu.utils.qom_fuse:QOMFuse.entry_point [fuse] 660347c4c4SJohn Snow qemu-ga-client = qemu.utils.qemu_ga_client:main 6737094b6dSJohn Snow qmp-shell = qemu.qmp.qmp_shell:main 6837094b6dSJohn Snow qmp-shell-wrap = qemu.qmp.qmp_shell:main_wrap 69b1a9b1f7SJohn Snow qmp-tui = qemu.qmp.qmp_tui:main [tui] 707c4c595fSJohn Snow 7181f8c446SJohn Snow[flake8] 72745d58f7SJohn Snow# Prefer pylint's bare-except checks to flake8's 73745d58f7SJohn Snowextend-ignore = E722 7421d0b866SJohn Snowexclude = __pycache__, 7581f8c446SJohn Snow 76e941c844SJohn Snow[mypy] 77e941c844SJohn Snowstrict = True 78*ca056f44SPaolo Bonzinipython_version = 3.8 79e941c844SJohn Snowwarn_unused_configs = True 800542a4c9SJohn Snownamespace_packages = True 81e7874a50SJohn Snowwarn_unused_ignores = False 82e941c844SJohn Snow 830347c4c4SJohn Snow[mypy-qemu.utils.qom_fuse] 8430ec845cSJohn Snow# fusepy has no type stubs: 8530ec845cSJohn Snowallow_subclassing_any = True 8630ec845cSJohn Snow 87b1a9b1f7SJohn Snow[mypy-qemu.qmp.qmp_tui] 88aeb6b48aSG S Niteesh Babu# urwid and urwid_readline have no type stubs: 89aeb6b48aSG S Niteesh Babuallow_subclassing_any = True 90aeb6b48aSG S Niteesh Babu 91aeb6b48aSG S Niteesh Babu# The following missing import directives are because these libraries do not 92aeb6b48aSG S Niteesh Babu# provide type stubs. Allow them on an as-needed basis for mypy. 9330ec845cSJohn Snow[mypy-fuse] 94aeb6b48aSG S Niteesh Babuignore_missing_imports = True 95aeb6b48aSG S Niteesh Babu 9671ed611cSPaolo Bonzini[mypy-tomli] 9771ed611cSPaolo Bonziniignore_missing_imports = True 9871ed611cSPaolo Bonzini 9971ed611cSPaolo Bonzini[mypy-tomllib] 10071ed611cSPaolo Bonziniignore_missing_imports = True 10171ed611cSPaolo Bonzini 102aeb6b48aSG S Niteesh Babu[mypy-urwid] 103aeb6b48aSG S Niteesh Babuignore_missing_imports = True 104aeb6b48aSG S Niteesh Babu 105aeb6b48aSG S Niteesh Babu[mypy-urwid_readline] 10630ec845cSJohn Snowignore_missing_imports = True 10730ec845cSJohn Snow 108f37c34d6SG S Niteesh Babu[mypy-pygments] 109f37c34d6SG S Niteesh Babuignore_missing_imports = True 110f37c34d6SG S Niteesh Babu 111dd84028fSJohn Snow[mypy-importlib.metadata] 112dd84028fSJohn Snowignore_missing_imports = True 113dd84028fSJohn Snow 114dd84028fSJohn Snow[mypy-importlib_metadata] 115dd84028fSJohn Snowignore_missing_imports = True 116dd84028fSJohn Snow 117dd84028fSJohn Snow[mypy-pkg_resources] 118dd84028fSJohn Snowignore_missing_imports = True 119dd84028fSJohn Snow 120c5538eedSJohn Snow[mypy-distlib] 121c5538eedSJohn Snowignore_missing_imports = True 122c5538eedSJohn Snow 12392834894SJohn Snow[mypy-distlib.scripts] 12492834894SJohn Snowignore_missing_imports = True 12592834894SJohn Snow 126c5538eedSJohn Snow[mypy-distlib.version] 127c5538eedSJohn Snowignore_missing_imports = True 128c5538eedSJohn Snow 12968ea6d17SJohn Snow[mypy-pip._vendor.distlib] 13068ea6d17SJohn Snowignore_missing_imports = True 13168ea6d17SJohn Snow 13268ea6d17SJohn Snow[mypy-pip._vendor.distlib.scripts] 13368ea6d17SJohn Snowignore_missing_imports = True 13468ea6d17SJohn Snow 13568ea6d17SJohn Snow[mypy-pip._vendor.distlib.version] 13668ea6d17SJohn Snowignore_missing_imports = True 13768ea6d17SJohn Snow 138ef42440dSJohn Snow[pylint.messages control] 139ef42440dSJohn Snow# Disable the message, report, category or checker with the given id(s). You 140ef42440dSJohn Snow# can either give multiple identifiers separated by comma (,) or put this 141ef42440dSJohn Snow# option multiple times (only on the command line, not in the configuration 142ef42440dSJohn Snow# file where it should appear only once). You can also use "--disable=all" to 143ef42440dSJohn Snow# disable everything first and then reenable specific checks. For example, if 144ef42440dSJohn Snow# you want to run only the similarities checker, you can use "--disable=all 145ef42440dSJohn Snow# --enable=similarities". If you want to run only the classes checker, but have 146ef42440dSJohn Snow# no Warning level messages displayed, use "--disable=all --enable=classes 147ef42440dSJohn Snow# --disable=W". 148eb8033f6SJohn Snowdisable=consider-using-f-string, 1495c66d7d8SDaniel P. Berrangé consider-using-with, 1505c66d7d8SDaniel P. Berrangé too-many-arguments, 15129a8ea9bSJohn Snow too-many-function-args, # mypy handles this with less false positives. 1525c66d7d8SDaniel P. Berrangé too-many-instance-attributes, 1534cd17f37SJohn Snow no-member, # mypy also handles this better. 154ef42440dSJohn Snow 155ef42440dSJohn Snow[pylint.basic] 156ef42440dSJohn Snow# Good variable names which should always be accepted, separated by a comma. 157ef42440dSJohn Snowgood-names=i, 158ef42440dSJohn Snow j, 159ef42440dSJohn Snow k, 160ef42440dSJohn Snow ex, 161ef42440dSJohn Snow Run, 162d229f1c8SJohn Snow _, # By convention: Unused variable 163d229f1c8SJohn Snow fh, # fh = open(...) 164d229f1c8SJohn Snow fd, # fd = os.open(...) 165d229f1c8SJohn Snow c, # for c in string: ... 16635b9a85aSJohn Snow T, # for TypeVars. See pylint#3401 1676c2537d3SJohn Snow SocketAddrT, # Not sure why this is invalid. 168ef42440dSJohn Snow 169ef42440dSJohn Snow[pylint.similarities] 170ef42440dSJohn Snow# Ignore imports when computing similarities. 171ef42440dSJohn Snowignore-imports=yes 1725690b437SJohn Snowignore-signatures=yes 173158ac451SJohn Snow 17422305c2aSJohn Snow# Minimum lines number of a similarity. 17522305c2aSJohn Snow# TODO: Remove after we opt in to Pylint 2.8.3. See commit msg. 17622305c2aSJohn Snowmin-similarity-lines=6 17722305c2aSJohn Snow 17822305c2aSJohn Snow 179158ac451SJohn Snow[isort] 180158ac451SJohn Snowforce_grid_wrap=4 181158ac451SJohn Snowforce_sort_within_sections=True 182158ac451SJohn Snowinclude_trailing_comma=True 183158ac451SJohn Snowline_length=72 184158ac451SJohn Snowlines_after_imports=2 185158ac451SJohn Snowmulti_line_output=3 1863c8de38cSJohn Snow 1873c8de38cSJohn Snow# tox (https://tox.readthedocs.io/) is a tool for running tests in 1883c8de38cSJohn Snow# multiple virtualenvs. This configuration file will run the test suite 1893c8de38cSJohn Snow# on all supported python versions. To use it, "pip install tox" and 1903c8de38cSJohn Snow# then run "tox" from this directory. You will need all of these versions 1913c8de38cSJohn Snow# of python available on your system to run this test. 1923c8de38cSJohn Snow 1933c8de38cSJohn Snow[tox:tox] 194*ca056f44SPaolo Bonzinienvlist = py38, py39, py310, py311 1956f651a6dSWainer dos Santos Moschettaskip_missing_interpreters = true 1963c8de38cSJohn Snow 1973c8de38cSJohn Snow[testenv] 1983c8de38cSJohn Snowallowlist_externals = make 199c63f3b0bSJohn Snowdeps = 200c63f3b0bSJohn Snow .[devel] 201c63f3b0bSJohn Snow .[fuse] # Workaround to trigger tox venv rebuild 202974e2f47SG S Niteesh Babu .[tui] # Workaround to trigger tox venv rebuild 2033c8de38cSJohn Snowcommands = 2043c8de38cSJohn Snow make check 205a4ffaecdSJohn Snow 206a4ffaecdSJohn Snow# Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for 207a4ffaecdSJohn Snow# measuring code coverage of Python programs. It monitors your program, 208a4ffaecdSJohn Snow# noting which parts of the code have been executed, then analyzes the 209a4ffaecdSJohn Snow# source to identify code that could have been executed but was not. 210a4ffaecdSJohn Snow 211a4ffaecdSJohn Snow[coverage:run] 212a4ffaecdSJohn Snowconcurrency = multiprocessing 213a4ffaecdSJohn Snowsource = qemu/ 214a4ffaecdSJohn Snowparallel = true 215