]> git.proxmox.com Git - mirror_qemu.git/blob - python/setup.cfg
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.1-pull-request...
[mirror_qemu.git] / python / setup.cfg
1 [metadata]
2 name = qemu
3 version = file:VERSION
4 maintainer = QEMU Developer Team
5 maintainer_email = qemu-devel@nongnu.org
6 url = https://www.qemu.org/
7 download_url = https://www.qemu.org/download/
8 description = QEMU Python Build, Debug and SDK tooling.
9 long_description = file:PACKAGE.rst
10 long_description_content_type = text/x-rst
11 classifiers =
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]
24 python_requires = >= 3.6
25 packages =
26 qemu.qmp
27 qemu.machine
28 qemu.utils
29
30 [options.extras_require]
31 # Run `pipenv lock --dev` when changing these requirements.
32 devel =
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
42 fuse =
43 fusepy >= 2.0.4
44
45 [options.entry_points]
46 console_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 qmp-shell = qemu.qmp.qmp_shell:main
55
56 [flake8]
57 extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
58 exclude = __pycache__,
59 .venv,
60 .tox,
61
62 [mypy]
63 strict = True
64 python_version = 3.6
65 warn_unused_configs = True
66 namespace_packages = True
67
68 [mypy-qemu.qmp.qom_fuse]
69 # fusepy has no type stubs:
70 allow_subclassing_any = True
71
72 [mypy-fuse]
73 # fusepy has no type stubs:
74 ignore_missing_imports = True
75
76 [pylint.messages control]
77 # Disable the message, report, category or checker with the given id(s). You
78 # can either give multiple identifiers separated by comma (,) or put this
79 # option multiple times (only on the command line, not in the configuration
80 # file where it should appear only once). You can also use "--disable=all" to
81 # disable everything first and then reenable specific checks. For example, if
82 # you want to run only the similarities checker, you can use "--disable=all
83 # --enable=similarities". If you want to run only the classes checker, but have
84 # no Warning level messages displayed, use "--disable=all --enable=classes
85 # --disable=W".
86 disable=too-many-arguments,
87 too-many-instance-attributes,
88 too-many-public-methods,
89
90 [pylint.basic]
91 # Good variable names which should always be accepted, separated by a comma.
92 good-names=i,
93 j,
94 k,
95 ex,
96 Run,
97 _, # By convention: Unused variable
98 fh, # fh = open(...)
99 fd, # fd = os.open(...)
100 c, # for c in string: ...
101
102 [pylint.similarities]
103 # Ignore imports when computing similarities.
104 ignore-imports=yes
105
106 [isort]
107 force_grid_wrap=4
108 force_sort_within_sections=True
109 include_trailing_comma=True
110 line_length=72
111 lines_after_imports=2
112 multi_line_output=3
113
114 # tox (https://tox.readthedocs.io/) is a tool for running tests in
115 # multiple virtualenvs. This configuration file will run the test suite
116 # on all supported python versions. To use it, "pip install tox" and
117 # then run "tox" from this directory. You will need all of these versions
118 # of python available on your system to run this test.
119
120 [tox:tox]
121 envlist = py36, py37, py38, py39, py310
122
123 [testenv]
124 allowlist_externals = make
125 deps =
126 .[devel]
127 .[fuse] # Workaround to trigger tox venv rebuild
128 commands =
129 make check