]>
Commit | Line | Data |
---|---|---|
ea1213b7 JS |
1 | [metadata] |
2 | name = qemu | |
3afc3290 | 3 | version = file:VERSION |
ea1213b7 JS |
4 | maintainer = QEMU Developer Team |
5 | maintainer_email = [email protected] | |
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 | |
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] | |
25 | python_requires = >= 3.6 | |
26 | packages = | |
27 | qemu.qmp | |
28 | qemu.machine | |
29 | qemu.utils | |
a093a655 | 30 | qemu.aqmp |
ef42440d | 31 | |
7f179082 JS |
32 | [options.package_data] |
33 | * = py.typed | |
34 | ||
dbe75f55 | 35 | [options.extras_require] |
3afa3501 JS |
36 | # For the devel group, When adding new dependencies or bumping the minimum |
37 | # version, use e.g. "pipenv install --dev pylint==3.0.0". | |
38 | # Subsequently, edit 'Pipfile' to remove e.g. 'pylint = "==3.0.0'. | |
dbe75f55 | 39 | devel = |
4320f717 | 40 | avocado-framework >= 90.0 |
dbe75f55 | 41 | flake8 >= 3.6.0 |
c63f3b0b | 42 | fusepy >= 2.0.4 |
dbe75f55 JS |
43 | isort >= 5.1.2 |
44 | mypy >= 0.770 | |
45 | pylint >= 2.8.0 | |
3c8de38c | 46 | tox >= 3.18.0 |
974e2f47 NB |
47 | urwid >= 2.1.2 |
48 | urwid-readline >= 0.13 | |
f37c34d6 | 49 | Pygments >= 2.9.0 |
dbe75f55 | 50 | |
c63f3b0b JS |
51 | # Provides qom-fuse functionality |
52 | fuse = | |
53 | fusepy >= 2.0.4 | |
54 | ||
974e2f47 NB |
55 | # AQMP TUI dependencies |
56 | tui = | |
57 | urwid >= 2.1.2 | |
58 | urwid-readline >= 0.13 | |
f37c34d6 | 59 | Pygments >= 2.9.0 |
974e2f47 | 60 | |
7c4c595f JS |
61 | [options.entry_points] |
62 | console_scripts = | |
63 | qom = qemu.qmp.qom:main | |
64 | qom-set = qemu.qmp.qom:QOMSet.entry_point | |
65 | qom-get = qemu.qmp.qom:QOMGet.entry_point | |
66 | qom-list = qemu.qmp.qom:QOMList.entry_point | |
67 | qom-tree = qemu.qmp.qom:QOMTree.entry_point | |
176c5490 | 68 | qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse] |
7e7c2a0d | 69 | qemu-ga-client = qemu.qmp.qemu_ga_client:main |
957f3c5c | 70 | qmp-shell = qemu.qmp.qmp_shell:main |
35755f7d | 71 | aqmp-tui = qemu.aqmp.aqmp_tui:main [tui] |
7c4c595f | 72 | |
81f8c446 JS |
73 | [flake8] |
74 | extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's | |
21d0b866 | 75 | exclude = __pycache__, |
81f8c446 | 76 | |
e941c844 JS |
77 | [mypy] |
78 | strict = True | |
79 | python_version = 3.6 | |
80 | warn_unused_configs = True | |
0542a4c9 | 81 | namespace_packages = True |
e941c844 | 82 | |
30ec845c JS |
83 | [mypy-qemu.qmp.qom_fuse] |
84 | # fusepy has no type stubs: | |
85 | allow_subclassing_any = True | |
86 | ||
aeb6b48a NB |
87 | [mypy-qemu.aqmp.aqmp_tui] |
88 | # urwid and urwid_readline have no type stubs: | |
89 | allow_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 |
94 | ignore_missing_imports = True |
95 | ||
96 | [mypy-urwid] | |
97 | ignore_missing_imports = True | |
98 | ||
99 | [mypy-urwid_readline] | |
30ec845c JS |
100 | ignore_missing_imports = True |
101 | ||
f37c34d6 NB |
102 | [mypy-pygments] |
103 | ignore_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 | 115 | disable=consider-using-f-string, |
29a8ea9b | 116 | too-many-function-args, # mypy handles this with less false positives. |
4cd17f37 | 117 | no-member, # mypy also handles this better. |
ef42440d JS |
118 | |
119 | [pylint.basic] | |
120 | # Good variable names which should always be accepted, separated by a comma. | |
121 | good-names=i, | |
122 | j, | |
123 | k, | |
124 | ex, | |
125 | Run, | |
d229f1c8 JS |
126 | _, # By convention: Unused variable |
127 | fh, # fh = open(...) | |
128 | fd, # fd = os.open(...) | |
129 | c, # for c in string: ... | |
35b9a85a | 130 | T, # for TypeVars. See pylint#3401 |
ef42440d JS |
131 | |
132 | [pylint.similarities] | |
133 | # Ignore imports when computing similarities. | |
134 | ignore-imports=yes | |
5690b437 | 135 | ignore-signatures=yes |
158ac451 | 136 | |
22305c2a JS |
137 | # Minimum lines number of a similarity. |
138 | # TODO: Remove after we opt in to Pylint 2.8.3. See commit msg. | |
139 | min-similarity-lines=6 | |
140 | ||
141 | ||
158ac451 JS |
142 | [isort] |
143 | force_grid_wrap=4 | |
144 | force_sort_within_sections=True | |
145 | include_trailing_comma=True | |
146 | line_length=72 | |
147 | lines_after_imports=2 | |
148 | multi_line_output=3 | |
3c8de38c JS |
149 | |
150 | # tox (https://tox.readthedocs.io/) is a tool for running tests in | |
151 | # multiple virtualenvs. This configuration file will run the test suite | |
152 | # on all supported python versions. To use it, "pip install tox" and | |
153 | # then run "tox" from this directory. You will need all of these versions | |
154 | # of python available on your system to run this test. | |
155 | ||
156 | [tox:tox] | |
157 | envlist = py36, py37, py38, py39, py310 | |
6f651a6d | 158 | skip_missing_interpreters = true |
3c8de38c JS |
159 | |
160 | [testenv] | |
161 | allowlist_externals = make | |
c63f3b0b JS |
162 | deps = |
163 | .[devel] | |
164 | .[fuse] # Workaround to trigger tox venv rebuild | |
974e2f47 | 165 | .[tui] # Workaround to trigger tox venv rebuild |
3c8de38c JS |
166 | commands = |
167 | make check | |
a4ffaecd JS |
168 | |
169 | # Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for | |
170 | # measuring code coverage of Python programs. It monitors your program, | |
171 | # noting which parts of the code have been executed, then analyzes the | |
172 | # source to identify code that could have been executed but was not. | |
173 | ||
174 | [coverage:run] | |
175 | concurrency = multiprocessing | |
176 | source = qemu/ | |
177 | parallel = true |