summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-04various python neatness cleanupsEli Schwartz
All changes were created by running "pyupgrade --py3-only" and committing the results. Although this has been performed in the past, newer versions of pyupgrade can automatically catch more opportunities, notably list comprehensions can use generators instead, in the following cases: - unpacking into function arguments as function(*generator) - unpacking into assignments of the form x, y = generator - as the argument to some builtin functions such as min/max/sorted Also catch a few creeping cases of new code added using older styles.
2021-10-04Merge pull request #8960 from mensinda/yamlDocJussi Pakkanen
Reference Manual 2.0
2021-10-04Minor fixupsDaniel Mensinger
2021-10-04interpreter: improve the error message about install_modeZbigniew Jędrzejewski-Szmek
We wrote: ERROR: install_emptydir keyword argument "install_mode" permissions string must be exactly 9 characters, got "4" in the form rwxr-xr-x Let's change this around to be easier to read. Also, 1-based numbering was used (for components) and 0-based for "bits". And actually the "bits" are not bits, but octal digits. So say "permissions character 1", "permissions character 2". And finally change "must be … if provided" to "can only be". (If it isn't provided, it "is not", so the sentence is still valid. The user will only get this error if they provide something, so we don't need to be super precise and say "if provided". And then we avoid confusing the reader whether it's "if provided" attaches to the the "False" or to the whole sentence.)
2021-10-03fix typo in error message breaking newline escapeEli Schwartz
Broken in commit 3feaea6b29197cd224fbce0ac65fd43d08c3beac.
2021-10-03modules/i18n: fix gettext use of --datadirs paramDan Streetman
The previous commit bd2fcb268b9ff48797bebb6a2ef94d2741234191 accidentally used the wrong var so the param name was missing, leading to an error of "unrecognized arguments" for the datadirs parameter value.
2021-10-03cmake module: if cmake cannot be found, do not tracebackEli Schwartz
We ended up passing a NoneType as the program binary, which is a very awkward way to communicate an error when failing to write a basic package version file.
2021-10-03docs: Update YAML docs after rebaseDaniel Mensinger
2021-10-03docs: Add myself to CODEOWNERS for docs/refmanDaniel Mensinger
2021-10-03docs: Added new static docsDaniel Mensinger
2021-10-03docs: Fix mypyDaniel Mensinger
2021-10-03docs: added install_tag docsDaniel Mensinger
2021-10-03docs: added unset_variable()Daniel Mensinger
2021-10-03docs: Document documenting MesonDaniel Mensinger
2021-10-03docs: Fix broken linksDaniel Mensinger
2021-10-03docs: Use a custom hotdoc extension for links to RefManDaniel Mensinger
2021-10-03docs: Remove the old Reference manualDaniel Mensinger
2021-10-03docs: Fixes found during the YAML conversion processDaniel Mensinger
2021-10-03docs: Fix the GitHub actionDaniel Mensinger
2021-10-03docs: Hook up the new RefMan generator to MesonDaniel Mensinger
2021-10-03docs: Added Markdown generatorDaniel Mensinger
2021-10-03docs: Added pickle generatorDaniel Mensinger
2021-10-03docs: Add the YAML Reference manualDaniel Mensinger
2021-10-03docs: Initial reference manual generatorDaniel Mensinger
2021-10-02Improve linker detection failure error message.Jussi Pakkanen
2021-10-01rust: dependencies need to cause a rebuild/relink not just reorderDylan Baker
Otherwise changes to a dependency don't propogate
2021-09-30modules/i18n: Fix remaining mypy spotted issuesDylan Baker
2021-09-30modules/i18n: use typed_kwargs for gettextDylan Baker
There were two allowed kwargs that were unused, I've dropped them for now, though I need to check if they were documented. If they are then we need to deprecate them to remove them, otherwise we'll just leave them removed.
2021-09-30modules/i18n: Use typed_kwargs for merge_fileDylan Baker
2021-09-30modules/i18n: use typed_pos_argsDylan Baker
2021-09-30interpreter: move some of CustomTarget's args to type_checkingDylan Baker
As there are so many wrappers that need these as well
2021-09-30modules/i18n: add easy type annotationsDylan Baker
2021-09-30modules/i18n: sort and clean up importsDylan Baker
2021-09-30modules: make ReturnValue.new_objects covariantDylan Baker
Otherwise we have to do a lot of casting to ensure that we get the appropriate invariant type
2021-09-30dependency: Allow searching for multiple namesXavier Claessens
2021-09-30Fix typosChristian Clauss
2021-09-30interpreter: Use typed_kwargs for func_custom_targetDylan Baker
This does not convert the build side, or remove any of the checking it does. We still need that for other callers of custom target. What we'll do for those is add an internal interface that defaults things, then we'll be able to have those callers do their own validation, and the CustomTarget validation machinary can be removed. Fixes #9096
2021-09-30build: Prepare CustomTarget.process_kwargs to co-existDylan Baker
We still need this to co-exist as long as there are interfaces for CustomTarget other than `func_custom_target`, this gets us there.
2021-09-30build: Allow `Dict[OptionKey, str` in parse_overridesDylan Baker
We really want to move all of this option handling into the interpreter through the typed_kwargs, this is the first step to that
2021-09-30interpreter: Allow FileMode to be passed to _get_kwarg_install_modeDylan Baker
This will happen as we transition from doing the conversion in the function body to using the KwargInfo to make that change. If we get one just return it.
2021-09-30interpreter: move command kwarg to type_checkingDylan Baker
2021-09-30interpreter/type_checking: Add DEPEND_FILES_KWDylan Baker
since most of the Target classes use this, let's just go ahead and add it here instead of moving it later
2021-09-30interpreter: move KwargInfo('depends') to type_checkingDylan Baker
2021-09-30interpreter: DEPFILE_KW should be Optional[str]Dylan Baker
2021-09-30interpreter: remove duplicate permittedKwargsDylan Baker
func_generator already has typed_kwargs, it doesn't need both.
2021-09-30interpreter: move DEPFILE_KW to type_checkingtDylan Baker
2021-09-30build: Use isinstance(other, Target) instead of hasattrDylan Baker
In the comparison methods of Target. There are several problems with the old implementation: 1. It's not idiomatic 2. It can match on things that It shouldn't (like a Compiler, which has a `get_id() -> str` method, but not one that we should compare with Targets 3. It confuses mypy, which doesn't handle hasattr
2021-09-30build: Add type annotations to AliasTargetDylan Baker
It's just a RunTarget with one default value overriden
2021-09-30interpreter: use typed_kwargs on func_run_targetDylan Baker
2021-09-30build: drop unnecissary method from RunTargetDylan Baker