Commit Graph

11001 Commits

Author SHA1 Message Date
Dylan Baker e23f78141a modules: Fix type annotation imports 2021-06-15 12:35:15 -07:00
Dylan Baker 118f70fede modules/qt: have pre-process dispatch to moc_compile
for ode sharing and simplicity
2021-06-15 12:35:15 -07:00
Dylan Baker 2322804a4d modules/qt: Add a compile_moc method
This method only compiles moc resources, nothing else
2021-06-15 12:35:15 -07:00
Dylan Baker ec592a4eca modules/qt: use the compile_ui method inside the preprocess method
for code deduplication
2021-06-15 12:35:15 -07:00
Dylan Baker fcdb0f9879 modules/qt: Add a compile_ui method
Which is the same functionality split out of preprocess
2021-06-15 12:35:15 -07:00
Dylan Baker ed06ae3db1 modules/qt: Dispatch the preprocess method to the compile_resources method
Which removes code duplication and makes our testing better
2021-06-15 12:35:15 -07:00
Dylan Baker d27948b1dc modules/qt: Add a `compile_resources` method
This is a separate method for just handling qrc resources.
2021-06-15 12:35:15 -07:00
Dylan Baker 4575ed3d31 modules/qt: Deprecated the preprocess sources keyword argument 2021-06-15 12:35:15 -07:00
Dylan Baker f559e56d0a docs/qt: document all of the arguments of the preprocess function 2021-06-15 12:35:15 -07:00
Dylan Baker 0fe3dc6571 modules/qt: Deprecated the *sources variadic argument to preproccess
It's confusing, and it's a duplicate of the `sources` keyword argument,
which has always existed.
2021-06-15 12:35:15 -07:00
Eli Schwartz 1086305715
doc: fix typo preventing correct page generation
This originally worked but was erroneously reported as wrong and thereby
regressed in commit a7357887c7
2021-06-14 19:24:54 -04:00
Dylan Baker 9851c25895 backends: fix TestSerialisation.suite annotations
It's a `str[]` not `str`
2021-06-14 12:30:02 -07:00
Dylan Baker e2266e8708 interpreter: use typed_*args for test and benchmark
this also requires some changes to the Rust module, as it calls into the
test code.
2021-06-14 12:30:02 -07:00
Dylan Baker 86704261a7 interpreter: use typed_pos_args for func_test and func_benchmark
Requires a few small changes to the Rust module, as it calls `func_test`
2021-06-14 12:30:02 -07:00
Dylan Baker 5bb75dc3af interpreterbase: Add deprecated_values and since_values to KwargInfo
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-14 12:30:02 -07:00
Dylan Baker 6490b13f22 run_unittests: mock meson global before changing
For safety
2021-06-14 12:30:02 -07:00
Ralf Gommers bc6df45663 Fix issue with generated Cython code in a subdir
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-14 09:36:28 -07:00
Ting-Wei Lan fc93c07e9e environment: Add LLVM suffixes for 11 and 12
Both LLVM 11 and 12 are stable releases. Note that FreeBSD changes the
way to version LLVM executables in LLVM 10.
2021-06-14 09:10:34 -07:00
Eli Schwartz 0c7cdb1862
minit: do not misdetect files suffixed as "" or named "." or "c" or "s" as c#
You cannot `str() in str()` and expect it to act like `str() in list()`.

Fixes regression in commit bbc2745dcc
Unbreaks #6573
Fixes #8872
2021-06-13 14:28:08 -04:00
andy5995 15fb6a407f README: update IRC info to denote OFTC and Matrix 2021-06-13 14:31:54 +03:00
Xavier Claessens 97bedd015f run_mypy: Check mypy version to avoid spurious errors 2021-06-11 23:03:43 +02:00
Xavier Claessens d5917c1b87 coredata: Invalidate deps cache when changing wrap_mode option
Fixes: #8858
2021-06-11 09:40:21 -04:00
Jon Turney 636bf91586 CI: Split out file format test as a separate GitHub workflow
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-11 15:28:07 +02:00
Daniel Mensinger 25f2d8826e ci: Fix CI image builder 2021-06-11 11:10:55 +02:00
Jon Turney 1ab0694556 CI: Don't try to update website in a forked repository 2021-06-11 10:46:55 +02:00
Jon Turney 89f2f78972 CI: Don't try to push docker image in a forked repository
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-11 10:46:55 +02:00
Daniel Mensinger e686545fce interpreter: Split decorators from interpreterbase.py 2021-06-11 10:42:18 +02:00
Daniel Mensinger fc0397b309 interpreter: Split Disabler from interpreterbase.py 2021-06-11 10:42:18 +02:00
Daniel Mensinger 687eebee29 interpreter: Split base objects and helpers from interpreterbase.py 2021-06-11 10:42:18 +02:00
Daniel Mensinger 2e3550db14 interpreter: Split exception calsses from interpreterbase.py 2021-06-11 10:42:18 +02:00
Daniel Mensinger ad584f022d interpreter: Move interpreterbase.py into a new package 2021-06-11 10:42:18 +02:00
andy5995 07e6e0ca8c markdown/Dependencies:remove tabs
Remove tabs introduced by https://github.com/mesonbuild/meson/pull/8866
2021-06-10 21:15:41 -04:00
Andy Alt 53e4ca2456 add example for defining curses preprocessor symbols 2021-06-11 01:03:34 +03:00
Jon Turney 0accc3b72d
Move Cygwin tests to a GitHub workflow (#8829)
* 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-10 19:42:02 +03:00
Xavier Claessens 5a5ab79078 interpreter: Add missing FeatureNewKwarg for allow_fallback 2021-06-10 11:22:18 +02:00
Xavier Claessens 8255100485
doc: Add direct link to matrix channel (#8859) [skip ci] 2021-06-09 10:15:04 -07:00
Eli Schwartz c3f5c2e745 cuda module: fully buy into new modules API
In commit 3340284805 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-09 10:36:02 -04:00
Daniel Mensinger e987a88c19 tests: Force colorize CI output 2021-06-09 13:25:36 +02:00
Daniel Mensinger 7fac515acf tests: Don't even start running skipped tests 2021-06-09 13:25:36 +02:00
Daniel Mensinger 30ff36dc91 tests: Fix global state issue 2021-06-09 13:25:36 +02:00
Daniel Mensinger 0aa8843fb2 tests: Add option to limit the number of workers
Also, increase the minimum ammount of workers from 1 to
2 when the core count can not be determined.
2021-06-09 13:25:36 +02:00
Daniel Mensinger 098e3f9994 tests: Optional progress bar with tqdm 2021-06-09 13:25:36 +02:00
Daniel Mensinger 25df6e7d16 tests: Refactored test runner 2021-06-09 13:25:36 +02:00
Daniel Mensinger e1708d3de9 tests: Reduce complexity of the run_tests signature 2021-06-09 13:25:36 +02:00
Daniel Mensinger 99d3897caf tests: reduce global variables 2021-06-09 13:25:36 +02:00
Daniel Mensinger 7fc755b334 typing: Fully annotate run_project_tests.py 2021-06-09 13:25:36 +02:00
Daniel Mensinger 9c40b33cf6 compilers: Fix missing functions in Compiler base class 2021-06-09 09:46:37 +02:00
Daniel Mensinger 2263a84d07 typing: Rename some variables 2021-06-09 09:46:37 +02:00
Daniel Mensinger a8cd45d3ab typing: remove unused DependencyType 2021-06-09 09:46:37 +02:00
Daniel Mensinger 15b69d0421 typing: Fully annotate dependencies 2021-06-09 09:46:37 +02:00