aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-06-14interpreter: use typed_*args for test and benchmarkDylan Baker5-88/+122
this also requires some changes to the Rust module, as it calls into the test code.
2021-06-14interpreter: use typed_pos_args for func_test and func_benchmarkDylan Baker2-13/+17
Requires a few small changes to the Rust module, as it calls `func_test`
2021-06-14interpreterbase: Add deprecated_values and since_values to KwargInfoDylan Baker2-0/+69
This allows checking specific values that are added or deprecated, which we do a surprising amount of. This works with both containers and scalar values
2021-06-14run_unittests: mock meson global before changingDylan Baker1-0/+1
For safety
2021-06-14Fix issue with generated Cython code in a subdirRalf Gommers4-0/+35
This is a follow-up to gh-8706, which contained the initial fix to ninjabackend.py but somehow lost it. This re-applies the fix and adds a test for it. Without the fix, the error is: ninja: error: 'ct2.pyx', needed by 'libdir/ct2.cpython-39-x86_64-linux-gnu.so.p/ct2.pyx.c', missing and no known rule to make it
2021-06-14environment: Add LLVM suffixes for 11 and 12Ting-Wei Lan1-2/+4
Both LLVM 11 and 12 are stable releases. Note that FreeBSD changes the way to version LLVM executables in LLVM 10.
2021-06-14dependencies: Use a typing.NewType for Dependency.type_nameDylan Baker10-27/+33
This allow mypy to catch cases where we accidently assign the dependency name to the type_name, as it sees them as having different types (though at runtime they're all strings).
2021-06-14dependencies: Use the SystemDependencyDylan Baker9-38/+41
This fixes these dependencies, which currently return the name of the dependency as the type. Fixes #8877
2021-06-13dependencies: Add a System DependencyDylan Baker1-0/+29
as a base class for other system dependencies. This will later be used to to fix the type_name vs name confusion.
2021-06-13run_mypy: lower required version to 0.812Dylan Baker1-2/+2
I've run this against Meson and it has no spurious errors. I suspect that all versions >= .8 are fine, but I didn't test those.
2021-06-13minit: do not misdetect files suffixed as "" or named "." or "c" or "s" as c#Eli Schwartz1-1/+1
You cannot `str() in str()` and expect it to act like `str() in list()`. Fixes regression in commit bbc2745dccc40761989a3e1efbe5a69eea0bc77e Unbreaks #6573 Fixes #8872
2021-06-13README: update IRC info to denote OFTC and Matrixandy59951-5/+4
2021-06-11run_mypy: Check mypy version to avoid spurious errorsXavier Claessens1-0/+6
2021-06-11coredata: Invalidate deps cache when changing wrap_mode optionXavier Claessens2-2/+10
Fixes: #8858
2021-06-11CI: Split out file format test as a separate GitHub workflowJon Turney3-48/+95
Split out checking of file format as a separate GitHub workflow, rather than running it as part of the project tests for every platform and toolchain combination in CI, so that this test is not effected by the changed paths constraints which are applied to the project tests.
2021-06-11ci: Fix CI image builderDaniel Mensinger8-18/+48
2021-06-11CI: Don't try to update website in a forked repositoryJon Turney1-3/+10
2021-06-11CI: Don't try to push docker image in a forked repositoryJon Turney1-2/+4
The 'build images' workflow runs on a schedule, so will run (and fail) weekly in every fork. Don't try to push to docker if docker credentials aren't in repository secrets. (A test for that has to be written rather indirectly due to https://github.com/actions/runner/issues/520)
2021-06-11interpreter: Split decorators from interpreterbase.pyDaniel Mensinger3-561/+576
2021-06-11interpreter: Split Disabler from interpreterbase.pyDaniel Mensinger3-37/+44
2021-06-11interpreter: Split base objects and helpers from interpreterbase.pyDaniel Mensinger4-177/+237
2021-06-11interpreter: Split exception calsses from interpreterbase.pyDaniel Mensinger3-25/+51
2021-06-11interpreter: Move interpreterbase.py into a new packageDaniel Mensinger3-3/+118
2021-06-10markdown/Dependencies:remove tabsandy59951-11/+11
Remove tabs introduced by https://github.com/mesonbuild/meson/pull/8866
2021-06-11add example for defining curses preprocessor symbolsAndy Alt1-0/+23
2021-06-10Move Cygwin tests to a GitHub workflow (#8829)Jon Turney3-72/+99
* CI: Don't run cross-only test when other workflows are changed * CI: Move Cygwin test run from Azure Pipelines to GitHub workflow Also review installed package list, dropping detritus from 42792554, not removed in f5ed85d7.
2021-06-10interpreter: Add missing FeatureNewKwarg for allow_fallbackXavier Claessens1-1/+1
2021-06-09doc: Add direct link to matrix channel (#8859) [skip ci]Xavier Claessens1-1/+2
2021-06-09cuda module: fully buy into new modules APIEli Schwartz1-3/+3
In commit 3340284805b96a4b9b62405f626020276341944c the new ModuleObject API got further updated to hide self.interpreter; at the time, the CUDA module got transferred over to the wrapper which does provide it. But it works fine without self.interpreter, so let's just use the best base class.
2021-06-09tests: Force colorize CI outputDaniel Mensinger2-0/+15
2021-06-09tests: Don't even start running skipped testsDaniel Mensinger1-7/+9
2021-06-09tests: Fix global state issueDaniel Mensinger1-5/+27
2021-06-09tests: Add option to limit the number of workersDaniel Mensinger1-18/+29
Also, increase the minimum ammount of workers from 1 to 2 when the core count can not be determined.
2021-06-09tests: Optional progress bar with tqdmDaniel Mensinger1-13/+36
2021-06-09tests: Refactored test runnerDaniel Mensinger1-81/+154
2021-06-09tests: Reduce complexity of the run_tests signatureDaniel Mensinger2-40/+27
2021-06-09tests: reduce global variablesDaniel Mensinger1-26/+24
2021-06-09typing: Fully annotate run_project_tests.pyDaniel Mensinger6-108/+148
2021-06-09compilers: Fix missing functions in Compiler base classDaniel Mensinger8-16/+21
2021-06-09typing: Rename some variablesDaniel Mensinger8-45/+54
2021-06-09typing: remove unused DependencyTypeDaniel Mensinger2-2/+2
2021-06-09typing: Fully annotate dependenciesDaniel Mensinger6-88/+77
2021-06-08docs: fix issues with the cython docsDylan Baker2-5/+5
2021-06-08document the enhancement to the Fs module permitting File argumentsEli Schwartz2-3/+14
Add a release notes snippet too!
2021-06-08doc: Fix link to Commands.mdXavier Claessens1-1/+1
2021-06-08Merge pull request #8512 from bonzini/feature-methodsJussi Pakkanen7-5/+99
Utility methods for feature objects
2021-06-08interpreter: make helper methods protectedDylan Baker1-15/+15
They really aren't meant to be called outside of the interpreter itself, so don't expose them as public
2021-06-08interpreter: Add type annotations for the add_*_arguments helpersDylan Baker1-9/+8
internally these all used a set of shared heleprs, add type annotations for those as well
2021-06-08build: fix type annotations fo project_*_argsDylan Baker1-2/+2
These are Dict[str, Dict[str, List[str]]], unlike global arguments because they must store the information per subproject
2021-06-08interpreter: use typed_kwargs for the add_*_arguments familyDylan Baker2-20/+65
This makes use of the new convertor and validator arguments, so that we can check that the languages passed are in fact vaild, and then convert the native boolean into a MachineChoice internally.