Skip to content

Commit 3f28c54

Browse files
authored
Merge pull request #15 from rgommers/merge-150rc1
Merge in changes included in Meson 1.5.2
2 parents 6f88e48 + 11dffde commit 3f28c54

File tree

213 files changed

+3810
-2108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+3810
-2108
lines changed

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
find /opt/homebrew/Cellar/python* -name EXTERNALLY-MANAGED -print0 | xargs -0 rm -vf
9797
# use python3 from homebrew because it is a valid framework, unlike the actions one:
9898
# https://github.com/actions/setup-python/issues/58
99-
- run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 boost-python3 gtk-doc zstd ncurses objfw
99+
- run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 boost-python3 gtk-doc zstd ncurses objfw libomp
100100
- run: |
101101
python3 -m pip install --upgrade setuptools
102102
python3 -m pip install --upgrade pip

.github/workflows/os_comp.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ on:
2626
- ".github/workflows/os_comp.yml"
2727
- "run*tests.py"
2828

29+
# make GHA actions use node16 which still works with bionic
30+
# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
31+
# Unclear how long this will work though
32+
env:
33+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
34+
2935
permissions:
3036
contents: read
3137

.pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ disable=
1717
cell-var-from-loop,
1818
consider-using-f-string,
1919
consider-using-with,
20+
contextmanager-generator-missing-cleanup,
2021
cyclic-import,
2122
deprecated-decorator,
2223
duplicate-code,
@@ -47,6 +48,7 @@ disable=
4748
not-an-iterable,
4849
not-callable,
4950
pointless-string-statement,
51+
possibly-used-before-assignment,
5052
protected-access,
5153
raise-missing-from,
5254
redeclared-assigned-name,
@@ -75,6 +77,7 @@ disable=
7577
unsubscriptable-object,
7678
unused-argument,
7779
unused-variable,
80+
used-before-assignment,
7881
useless-super-delegation,
7982
wrong-import-order,
8083
wrong-import-position,

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trigger:
2626
- 'test cases'
2727
- 'unittests'
2828
- 'azure-pipelines.yml'
29-
- 'ci/azure-steps.yml'
29+
- 'ci/run.ps1'
3030
- 'run_project_tests.py'
3131
- 'run_tests.py'
3232
- 'run_unittests.py'
@@ -41,7 +41,7 @@ pr:
4141
- 'test cases'
4242
- 'unittests'
4343
- 'azure-pipelines.yml'
44-
- 'ci/azure-steps.yml'
44+
- 'ci/run.ps1'
4545
- 'run_project_tests.py'
4646
- 'run_tests.py'
4747
- 'run_unittests.py'

ci/ciimage/build.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ def gen_bashrc(self) -> None:
8080
fi
8181
'''
8282

83-
if self.data_dir.name == 'gentoo':
84-
out_data += '''
85-
source /etc/profile
86-
'''
87-
8883
out_file.write_text(out_data, encoding='utf-8')
8984

9085
# make it executable

ci/ciimage/cuda/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ install_minimal_python_packages
1818
# Manually remove cache to avoid GitHub space restrictions
1919
rm -rf /var/cache/pacman
2020

21-
echo "source /etc/profile.d/cuda.sh" >> /ci/env_vars.sh
21+
echo "source /etc/profile" >> /ci/env_vars.sh

ci/ciimage/gentoo/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,5 @@ rm /usr/lib/python/EXTERNALLY-MANAGED
156156
python3 -m ensurepip
157157
install_python_packages
158158
python3 -m pip install "${base_python_pkgs[@]}"
159+
160+
echo "source /etc/profile" >> /ci/env_vars.sh

ci/run.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ if ($LastExitCode -ne 0) {
88
$env:Path = ($env:Path.Split(';') | Where-Object { $_ -notmatch 'mingw|Strawberry|Chocolatey|PostgreSQL' }) -join ';'
99

1010
if ($env:arch -eq 'x64') {
11+
rustup default 1.77
1112
# Rust puts its shared stdlib in a secret place, but it is needed to run tests.
12-
$env:Path += ";$HOME/.rustup/toolchains/stable-x86_64-pc-windows-msvc/bin"
13+
$env:Path += ";$HOME/.rustup/toolchains/1.77-x86_64-pc-windows-msvc/bin"
1314
} elseif ($env:arch -eq 'x86') {
1415
# Switch to the x86 Rust toolchain
15-
rustup default stable-i686-pc-windows-msvc
16-
17-
# Also install clippy
18-
rustup component add clippy
16+
rustup default 1.77-i686-pc-windows-msvc
1917

2018
# Rust puts its shared stdlib in a secret place, but it is needed to run tests.
21-
$env:Path += ";$HOME/.rustup/toolchains/stable-i686-pc-windows-msvc/bin"
19+
$env:Path += ";$HOME/.rustup/toolchains/1.77-i686-pc-windows-msvc/bin"
2220
# Need 32-bit Python for tests that need the Python dependency
2321
$env:Path = "C:\hostedtoolcache\windows\Python\3.7.9\x86;C:\hostedtoolcache\windows\Python\3.7.9\x86\Scripts;$env:Path"
2422
}
2523

24+
# Also install clippy
25+
rustup component add clippy
26+
2627
# Set the CI env var for the meson test framework
2728
$env:CI = '1'
2829

data/shell-completions/bash/meson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ _meson-test() {
580580
quiet
581581
timeout-multiplier
582582
setup
583+
max-lines
583584
test-args
584585
)
585586

data/shell-completions/zsh/_meson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ local -a meson_commands=(
196196
'(--quiet -q)'{'--quiet','-q'}'[produce less output to the terminal]'
197197
'(--timeout-multiplier -t)'{'--timeout-multiplier','-t'}'[a multiplier for test timeouts]:Python floating-point number: '
198198
'--setup[which test setup to use]:test setup: '
199+
'--max-lines[Maximum number of lines to show from a long test log]:Python integer number: '
199200
'--test-args[arguments to pass to the tests]: : '
200201
'*:Meson tests:__meson_test_names'
201202
)

0 commit comments

Comments
 (0)