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