xref: /openbmc/qemu/python/setup.cfg (revision 908ff4b2)
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    isort >= 5.1.2
36    mypy >= 0.770
37    pylint >= 2.8.0
38    tox >= 3.18.0
39
40[options.entry_points]
41console_scripts =
42    qom = qemu.qmp.qom:main
43    qom-set = qemu.qmp.qom:QOMSet.entry_point
44    qom-get = qemu.qmp.qom:QOMGet.entry_point
45    qom-list = qemu.qmp.qom:QOMList.entry_point
46    qom-tree = qemu.qmp.qom:QOMTree.entry_point
47
48[flake8]
49extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's
50exclude = __pycache__,
51          .venv,
52          .tox,
53
54[mypy]
55strict = True
56python_version = 3.6
57warn_unused_configs = True
58namespace_packages = True
59
60[pylint.messages control]
61# Disable the message, report, category or checker with the given id(s). You
62# can either give multiple identifiers separated by comma (,) or put this
63# option multiple times (only on the command line, not in the configuration
64# file where it should appear only once). You can also use "--disable=all" to
65# disable everything first and then reenable specific checks. For example, if
66# you want to run only the similarities checker, you can use "--disable=all
67# --enable=similarities". If you want to run only the classes checker, but have
68# no Warning level messages displayed, use "--disable=all --enable=classes
69# --disable=W".
70disable=too-many-arguments,
71        too-many-instance-attributes,
72        too-many-public-methods,
73
74[pylint.basic]
75# Good variable names which should always be accepted, separated by a comma.
76good-names=i,
77           j,
78           k,
79           ex,
80           Run,
81           _,
82           fd,
83           c,
84
85[pylint.similarities]
86# Ignore imports when computing similarities.
87ignore-imports=yes
88
89[isort]
90force_grid_wrap=4
91force_sort_within_sections=True
92include_trailing_comma=True
93line_length=72
94lines_after_imports=2
95multi_line_output=3
96
97# tox (https://tox.readthedocs.io/) is a tool for running tests in
98# multiple virtualenvs. This configuration file will run the test suite
99# on all supported python versions. To use it, "pip install tox" and
100# then run "tox" from this directory. You will need all of these versions
101# of python available on your system to run this test.
102
103[tox:tox]
104envlist = py36, py37, py38, py39, py310
105
106[testenv]
107allowlist_externals = make
108deps = .[devel]
109commands =
110    make check
111