aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/keyval.py
AgeCommit message (Collapse)AuthorFilesLines
2021-11-23modules/keyval: add type annotationsDylan Baker1-14/+16
And use typed_pos_args
2021-11-23modules/keyval: cleanup importsDylan Baker1-4/+3
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger1-1/+1
2021-05-28modules: Add methods dict everywhereXavier Claessens1-0/+3
This fix calling random internal methods from meson.build as long as they were not prefixed by underscore.
2021-05-28modules: Remove snippet methodsXavier Claessens1-6/+5
The only advantage they have is they have the interpreter in arguments, but it's already available as self.interpreter. We should discourage usage of the interpreter API and rely on ModuleState object instead in the future. This also lift the restriction that a module method cannot add build targets, but that was not enforced for snippet methods anyway (and some modules were doing it) and it's really loose restriction as it should check for many other things if we wanted to make it consistent.
2021-04-01interpreter: Move to its own folder and split itXavier Claessens1-2/+1
2021-03-04mass rewrite of string formatting to use f-strings everywhereEli Schwartz1-1/+1
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04various python neatness cleanupsEli Schwartz1-1/+1
All changes were created by running "pyupgrade --py3-only --keep-percent-format" and committing the results. I have not touched string formatting for now. - use set literals - simplify .format() parameter naming - remove __future__ - remove default "r" mode for open() - use OSError rather than compatibility aliases - remove stray parentheses in function(generator) scopes
2020-07-19Stabilize keyval moduleMarc-André Lureau1-0/+71
We have experimented with the module for about a year in a qemu branch (https://wiki.qemu.org/Features/Meson), and we would like to start moving the build system to meson. For that, keyval should have the stability guarantees. Cc: Paolo Bonzini <pbonzini@redhat.com>