]>
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 = 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 | |
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 | |
dbe75f55 | 49 | |
c63f3b0b JS |
50 | # Provides qom-fuse functionality |
51 | fuse = | |
52 | fusepy >= 2.0.4 | |
53 | ||
974e2f47 NB |
54 | # AQMP TUI dependencies |
55 | tui = | |
56 | urwid >= 2.1.2 | |
57 | urwid-readline >= 0.13 | |
58 | ||
7c4c595f JS |
59 | [options.entry_points] |
60 | console_scripts = | |
61 | qom = qemu.qmp.qom:main | |
62 | qom-set = qemu.qmp.qom:QOMSet.entry_point | |
63 | qom-get = qemu.qmp.qom:QOMGet.entry_point | |
64 | qom-list = qemu.qmp.qom:QOMList.entry_point | |
65 | qom-tree = qemu.qmp.qom:QOMTree.entry_point | |
176c5490 | 66 | qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse] |
7e7c2a0d | 67 | qemu-ga-client = qemu.qmp.qemu_ga_client:main |
957f3c5c | 68 | qmp-shell = qemu.qmp.qmp_shell:main |
7c4c595f | 69 | |
81f8c446 JS |
70 | [flake8] |
71 | extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's | |
21d0b866 | 72 | exclude = __pycache__, |
81f8c446 | 73 | |
e941c844 JS |
74 | [mypy] |
75 | strict = True | |
76 | python_version = 3.6 | |
77 | warn_unused_configs = True | |
0542a4c9 | 78 | namespace_packages = True |
e941c844 | 79 | |
30ec845c JS |
80 | [mypy-qemu.qmp.qom_fuse] |
81 | # fusepy has no type stubs: | |
82 | allow_subclassing_any = True | |
83 | ||
84 | [mypy-fuse] | |
85 | # fusepy has no type stubs: | |
86 | ignore_missing_imports = True | |
87 | ||
ef42440d JS |
88 | [pylint.messages control] |
89 | # Disable the message, report, category or checker with the given id(s). You | |
90 | # can either give multiple identifiers separated by comma (,) or put this | |
91 | # option multiple times (only on the command line, not in the configuration | |
92 | # file where it should appear only once). You can also use "--disable=all" to | |
93 | # disable everything first and then reenable specific checks. For example, if | |
94 | # you want to run only the similarities checker, you can use "--disable=all | |
95 | # --enable=similarities". If you want to run only the classes checker, but have | |
96 | # no Warning level messages displayed, use "--disable=all --enable=classes | |
97 | # --disable=W". | |
eb8033f6 | 98 | disable=consider-using-f-string, |
29a8ea9b | 99 | too-many-function-args, # mypy handles this with less false positives. |
4cd17f37 | 100 | no-member, # mypy also handles this better. |
ef42440d JS |
101 | |
102 | [pylint.basic] | |
103 | # Good variable names which should always be accepted, separated by a comma. | |
104 | good-names=i, | |
105 | j, | |
106 | k, | |
107 | ex, | |
108 | Run, | |
d229f1c8 JS |
109 | _, # By convention: Unused variable |
110 | fh, # fh = open(...) | |
111 | fd, # fd = os.open(...) | |
112 | c, # for c in string: ... | |
35b9a85a | 113 | T, # for TypeVars. See pylint#3401 |
ef42440d JS |
114 | |
115 | [pylint.similarities] | |
116 | # Ignore imports when computing similarities. | |
117 | ignore-imports=yes | |
5690b437 | 118 | ignore-signatures=yes |
158ac451 | 119 | |
22305c2a JS |
120 | # Minimum lines number of a similarity. |
121 | # TODO: Remove after we opt in to Pylint 2.8.3. See commit msg. | |
122 | min-similarity-lines=6 | |
123 | ||
124 | ||
158ac451 JS |
125 | [isort] |
126 | force_grid_wrap=4 | |
127 | force_sort_within_sections=True | |
128 | include_trailing_comma=True | |
129 | line_length=72 | |
130 | lines_after_imports=2 | |
131 | multi_line_output=3 | |
3c8de38c JS |
132 | |
133 | # tox (https://tox.readthedocs.io/) is a tool for running tests in | |
134 | # multiple virtualenvs. This configuration file will run the test suite | |
135 | # on all supported python versions. To use it, "pip install tox" and | |
136 | # then run "tox" from this directory. You will need all of these versions | |
137 | # of python available on your system to run this test. | |
138 | ||
139 | [tox:tox] | |
140 | envlist = py36, py37, py38, py39, py310 | |
6f651a6d | 141 | skip_missing_interpreters = true |
3c8de38c JS |
142 | |
143 | [testenv] | |
144 | allowlist_externals = make | |
c63f3b0b JS |
145 | deps = |
146 | .[devel] | |
147 | .[fuse] # Workaround to trigger tox venv rebuild | |
974e2f47 | 148 | .[tui] # Workaround to trigger tox venv rebuild |
3c8de38c JS |
149 | commands = |
150 | make check | |
a4ffaecd JS |
151 | |
152 | # Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for | |
153 | # measuring code coverage of Python programs. It monitors your program, | |
154 | # noting which parts of the code have been executed, then analyzes the | |
155 | # source to identify code that could have been executed but was not. | |
156 | ||
157 | [coverage:run] | |
158 | concurrency = multiprocessing | |
159 | source = qemu/ | |
160 | parallel = true |