]> git.proxmox.com Git - mirror_qemu.git/blame - python/setup.cfg
x86: cpu: fixup number of addressable IDs for logical processors sharing cache
[mirror_qemu.git] / python / setup.cfg
CommitLineData
ea1213b7
JS
1[metadata]
2name = qemu
3afc3290 3version = file:VERSION
ea1213b7
JS
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
3c8de38c
JS
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
7f179082 22 Typing :: Typed
ea1213b7
JS
23
24[options]
25python_requires = >= 3.6
26packages =
37094b6d 27 qemu.qmp
ea1213b7
JS
28 qemu.machine
29 qemu.utils
ef42440d 30
7f179082
JS
31[options.package_data]
32* = py.typed
33
dbe75f55 34[options.extras_require]
3afa3501
JS
35# For the devel group, When adding new dependencies or bumping the minimum
36# version, use e.g. "pipenv install --dev pylint==3.0.0".
37# Subsequently, edit 'Pipfile' to remove e.g. 'pylint = "==3.0.0'.
dbe75f55 38devel =
4320f717 39 avocado-framework >= 90.0
dbe75f55 40 flake8 >= 3.6.0
c63f3b0b 41 fusepy >= 2.0.4
dbe75f55 42 isort >= 5.1.2
74a1505d 43 mypy >= 0.780
dbe75f55 44 pylint >= 2.8.0
3c8de38c 45 tox >= 3.18.0
974e2f47
NB
46 urwid >= 2.1.2
47 urwid-readline >= 0.13
f37c34d6 48 Pygments >= 2.9.0
dbe75f55 49
c63f3b0b
JS
50# Provides qom-fuse functionality
51fuse =
52 fusepy >= 2.0.4
53
b1a9b1f7 54# QMP TUI dependencies
974e2f47
NB
55tui =
56 urwid >= 2.1.2
57 urwid-readline >= 0.13
f37c34d6 58 Pygments >= 2.9.0
974e2f47 59
7c4c595f
JS
60[options.entry_points]
61console_scripts =
0347c4c4
JS
62 qom = qemu.utils.qom:main
63 qom-set = qemu.utils.qom:QOMSet.entry_point
64 qom-get = qemu.utils.qom:QOMGet.entry_point
65 qom-list = qemu.utils.qom:QOMList.entry_point
66 qom-tree = qemu.utils.qom:QOMTree.entry_point
67 qom-fuse = qemu.utils.qom_fuse:QOMFuse.entry_point [fuse]
68 qemu-ga-client = qemu.utils.qemu_ga_client:main
37094b6d
JS
69 qmp-shell = qemu.qmp.qmp_shell:main
70 qmp-shell-wrap = qemu.qmp.qmp_shell:main_wrap
b1a9b1f7 71 qmp-tui = qemu.qmp.qmp_tui:main [tui]
7c4c595f 72
81f8c446
JS
73[flake8]
74extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
21d0b866 75exclude = __pycache__,
81f8c446 76
e941c844
JS
77[mypy]
78strict = True
79python_version = 3.6
80warn_unused_configs = True
0542a4c9 81namespace_packages = True
e941c844 82
0347c4c4 83[mypy-qemu.utils.qom_fuse]
30ec845c
JS
84# fusepy has no type stubs:
85allow_subclassing_any = True
86
b1a9b1f7 87[mypy-qemu.qmp.qmp_tui]
aeb6b48a
NB
88# urwid and urwid_readline have no type stubs:
89allow_subclassing_any = True
90
91# The following missing import directives are because these libraries do not
92# provide type stubs. Allow them on an as-needed basis for mypy.
30ec845c 93[mypy-fuse]
aeb6b48a
NB
94ignore_missing_imports = True
95
96[mypy-urwid]
97ignore_missing_imports = True
98
99[mypy-urwid_readline]
30ec845c
JS
100ignore_missing_imports = True
101
f37c34d6
NB
102[mypy-pygments]
103ignore_missing_imports = True
104
ef42440d
JS
105[pylint.messages control]
106# Disable the message, report, category or checker with the given id(s). You
107# can either give multiple identifiers separated by comma (,) or put this
108# option multiple times (only on the command line, not in the configuration
109# file where it should appear only once). You can also use "--disable=all" to
110# disable everything first and then reenable specific checks. For example, if
111# you want to run only the similarities checker, you can use "--disable=all
112# --enable=similarities". If you want to run only the classes checker, but have
113# no Warning level messages displayed, use "--disable=all --enable=classes
114# --disable=W".
eb8033f6 115disable=consider-using-f-string,
5c66d7d8
DB
116 consider-using-with,
117 too-many-arguments,
29a8ea9b 118 too-many-function-args, # mypy handles this with less false positives.
5c66d7d8 119 too-many-instance-attributes,
4cd17f37 120 no-member, # mypy also handles this better.
ef42440d
JS
121
122[pylint.basic]
123# Good variable names which should always be accepted, separated by a comma.
124good-names=i,
125 j,
126 k,
127 ex,
128 Run,
d229f1c8
JS
129 _, # By convention: Unused variable
130 fh, # fh = open(...)
131 fd, # fd = os.open(...)
132 c, # for c in string: ...
35b9a85a 133 T, # for TypeVars. See pylint#3401
ef42440d
JS
134
135[pylint.similarities]
136# Ignore imports when computing similarities.
137ignore-imports=yes
5690b437 138ignore-signatures=yes
158ac451 139
22305c2a
JS
140# Minimum lines number of a similarity.
141# TODO: Remove after we opt in to Pylint 2.8.3. See commit msg.
142min-similarity-lines=6
143
144
158ac451
JS
145[isort]
146force_grid_wrap=4
147force_sort_within_sections=True
148include_trailing_comma=True
149line_length=72
150lines_after_imports=2
151multi_line_output=3
3c8de38c
JS
152
153# tox (https://tox.readthedocs.io/) is a tool for running tests in
154# multiple virtualenvs. This configuration file will run the test suite
155# on all supported python versions. To use it, "pip install tox" and
156# then run "tox" from this directory. You will need all of these versions
157# of python available on your system to run this test.
158
159[tox:tox]
160envlist = py36, py37, py38, py39, py310
6f651a6d 161skip_missing_interpreters = true
3c8de38c
JS
162
163[testenv]
164allowlist_externals = make
c63f3b0b
JS
165deps =
166 .[devel]
167 .[fuse] # Workaround to trigger tox venv rebuild
974e2f47 168 .[tui] # Workaround to trigger tox venv rebuild
3c8de38c
JS
169commands =
170 make check
a4ffaecd
JS
171
172# Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for
173# measuring code coverage of Python programs. It monitors your program,
174# noting which parts of the code have been executed, then analyzes the
175# source to identify code that could have been executed but was not.
176
177[coverage:run]
178concurrency = multiprocessing
179source = qemu/
180parallel = true