xref: /qemu/python/setup.cfg (revision 7e7c2a0de74d56c3f47205df3dcf68ed7d43d30d)
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
23[options]
24python_requires = >= 3.6
25packages =
26    qemu.qmp
27    qemu.machine
28    qemu.utils
29
30[options.extras_require]
31# Run `pipenv lock --dev` when changing these requirements.
32devel =
33    avocado-framework >= 87.0
34    flake8 >= 3.6.0
35    fusepy >= 2.0.4
36    isort >= 5.1.2
37    mypy >= 0.770
38    pylint >= 2.8.0
39    tox >= 3.18.0
40
41# Provides qom-fuse functionality
42fuse =
43    fusepy >= 2.0.4
44
45[options.entry_points]
46console_scripts =
47    qom = qemu.qmp.qom:main
48    qom-set = qemu.qmp.qom:QOMSet.entry_point
49    qom-get = qemu.qmp.qom:QOMGet.entry_point
50    qom-list = qemu.qmp.qom:QOMList.entry_point
51    qom-tree = qemu.qmp.qom:QOMTree.entry_point
52    qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse]
53    qemu-ga-client = qemu.qmp.qemu_ga_client:main
54
55[flake8]
56extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's
57exclude = __pycache__,
58          .venv,
59          .tox,
60
61[mypy]
62strict = True
63python_version = 3.6
64warn_unused_configs = True
65namespace_packages = True
66
67[mypy-qemu.qmp.qom_fuse]
68# fusepy has no type stubs:
69allow_subclassing_any = True
70
71[mypy-fuse]
72# fusepy has no type stubs:
73ignore_missing_imports = True
74
75[pylint.messages control]
76# Disable the message, report, category or checker with the given id(s). You
77# can either give multiple identifiers separated by comma (,) or put this
78# option multiple times (only on the command line, not in the configuration
79# file where it should appear only once). You can also use "--disable=all" to
80# disable everything first and then reenable specific checks. For example, if
81# you want to run only the similarities checker, you can use "--disable=all
82# --enable=similarities". If you want to run only the classes checker, but have
83# no Warning level messages displayed, use "--disable=all --enable=classes
84# --disable=W".
85disable=too-many-arguments,
86        too-many-instance-attributes,
87        too-many-public-methods,
88
89[pylint.basic]
90# Good variable names which should always be accepted, separated by a comma.
91good-names=i,
92           j,
93           k,
94           ex,
95           Run,
96           _,   # By convention: Unused variable
97           fh,  # fh = open(...)
98           fd,  # fd = os.open(...)
99           c,   # for c in string: ...
100
101[pylint.similarities]
102# Ignore imports when computing similarities.
103ignore-imports=yes
104
105[isort]
106force_grid_wrap=4
107force_sort_within_sections=True
108include_trailing_comma=True
109line_length=72
110lines_after_imports=2
111multi_line_output=3
112
113# tox (https://tox.readthedocs.io/) is a tool for running tests in
114# multiple virtualenvs. This configuration file will run the test suite
115# on all supported python versions. To use it, "pip install tox" and
116# then run "tox" from this directory. You will need all of these versions
117# of python available on your system to run this test.
118
119[tox:tox]
120envlist = py36, py37, py38, py39, py310
121
122[testenv]
123allowlist_externals = make
124deps =
125    .[devel]
126    .[fuse]  # Workaround to trigger tox venv rebuild
127commands =
128    make check
129