]>
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 | |
ea1213b7 JS |
22 | |
23 | [options] | |
24 | python_requires = >= 3.6 | |
25 | packages = | |
26 | qemu.qmp | |
27 | qemu.machine | |
28 | qemu.utils | |
ef42440d | 29 | |
dbe75f55 JS |
30 | [options.extras_require] |
31 | # Run `pipenv lock --dev` when changing these requirements. | |
32 | devel = | |
31622b2a | 33 | avocado-framework >= 87.0 |
dbe75f55 JS |
34 | flake8 >= 3.6.0 |
35 | isort >= 5.1.2 | |
36 | mypy >= 0.770 | |
37 | pylint >= 2.8.0 | |
3c8de38c | 38 | tox >= 3.18.0 |
dbe75f55 | 39 | |
81f8c446 JS |
40 | [flake8] |
41 | extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's | |
21d0b866 JS |
42 | exclude = __pycache__, |
43 | .venv, | |
3c8de38c | 44 | .tox, |
81f8c446 | 45 | |
e941c844 JS |
46 | [mypy] |
47 | strict = True | |
48 | python_version = 3.6 | |
49 | warn_unused_configs = True | |
0542a4c9 | 50 | namespace_packages = True |
e941c844 | 51 | |
ef42440d JS |
52 | [pylint.messages control] |
53 | # Disable the message, report, category or checker with the given id(s). You | |
54 | # can either give multiple identifiers separated by comma (,) or put this | |
55 | # option multiple times (only on the command line, not in the configuration | |
56 | # file where it should appear only once). You can also use "--disable=all" to | |
57 | # disable everything first and then reenable specific checks. For example, if | |
58 | # you want to run only the similarities checker, you can use "--disable=all | |
59 | # --enable=similarities". If you want to run only the classes checker, but have | |
60 | # no Warning level messages displayed, use "--disable=all --enable=classes | |
61 | # --disable=W". | |
62 | disable=too-many-arguments, | |
63 | too-many-instance-attributes, | |
64 | too-many-public-methods, | |
65 | ||
66 | [pylint.basic] | |
67 | # Good variable names which should always be accepted, separated by a comma. | |
68 | good-names=i, | |
69 | j, | |
70 | k, | |
71 | ex, | |
72 | Run, | |
73 | _, | |
74 | fd, | |
75 | c, | |
76 | ||
77 | [pylint.similarities] | |
78 | # Ignore imports when computing similarities. | |
79 | ignore-imports=yes | |
158ac451 JS |
80 | |
81 | [isort] | |
82 | force_grid_wrap=4 | |
83 | force_sort_within_sections=True | |
84 | include_trailing_comma=True | |
85 | line_length=72 | |
86 | lines_after_imports=2 | |
87 | multi_line_output=3 | |
3c8de38c JS |
88 | |
89 | # tox (https://tox.readthedocs.io/) is a tool for running tests in | |
90 | # multiple virtualenvs. This configuration file will run the test suite | |
91 | # on all supported python versions. To use it, "pip install tox" and | |
92 | # then run "tox" from this directory. You will need all of these versions | |
93 | # of python available on your system to run this test. | |
94 | ||
95 | [tox:tox] | |
96 | envlist = py36, py37, py38, py39, py310 | |
97 | ||
98 | [testenv] | |
99 | allowlist_externals = make | |
100 | deps = .[devel] | |
101 | commands = | |
102 | make check |