Skip to content

Commit 0821347

Browse files
authored
Merge pull request #18 from MichaIng/main-numpymeson
Update to v1.6.1
2 parents 7300f5f + 6139cf3 commit 0821347

File tree

415 files changed

+4902
-1872
lines changed

Some content is hidden

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

415 files changed

+4902
-1872
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Initialize CodeQL
23-
uses: github/codeql-action/init@v2
23+
uses: github/codeql-action/init@v3
2424
with:
2525
# bypass cache: https://github.com/github/codeql-action/issues/1445
26-
tools: latest
26+
tools: linked
2727
config-file: .github/codeql/codeql-config.yml
2828
languages: python
2929
# we have none
30-
setup-python-dependencies: false
3130

3231
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@v2
32+
uses: github/codeql-action/analyze@v3

.github/workflows/cygwin.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ on:
1313
paths:
1414
- "mesonbuild/**"
1515
- "test cases/**"
16+
- "unittests/**"
1617
- ".github/workflows/cygwin.yml"
1718
- "run*tests.py"
1819
pull_request:
1920
paths:
2021
- "mesonbuild/**"
2122
- "test cases/**"
23+
- "unittests/**"
2224
- ".github/workflows/cygwin.yml"
2325
- "run*tests.py"
2426

@@ -39,7 +41,7 @@ jobs:
3941
MESON_CI_JOBNAME: cygwin-${{ matrix.NAME }}
4042

4143
steps:
42-
- uses: actions/cache/restore@v3
44+
- uses: actions/cache/restore@v4
4345
id: restore-cache
4446
with:
4547
# should use 'pip3 cache dir' to discover this path
@@ -49,7 +51,7 @@ jobs:
4951

5052
- run: git config --global core.autocrlf input
5153

52-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5355

5456
- uses: cygwin/cygwin-install-action@master
5557
with:
@@ -67,6 +69,7 @@ jobs:
6769
libgtk3-devel
6870
libxml2-devel
6971
libxslt-devel
72+
make
7073
ninja
7174
python2-devel
7275
python3-devel
@@ -83,7 +86,7 @@ jobs:
8386
python3 -m pip --disable-pip-version-check install gcovr fastjsonschema pefile pytest pytest-subtests pytest-xdist coverage
8487
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
8588

86-
- uses: actions/cache/save@v3
89+
- uses: actions/cache/save@v4
8790
with:
8891
# should use 'pip3 cache dir' to discover this path
8992
path: C:\cygwin\home\runneradmin\.cache\pip
@@ -99,7 +102,7 @@ jobs:
99102
SKIP_STATIC_BOOST: 1
100103
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
101104

102-
- uses: actions/upload-artifact@v3
105+
- uses: actions/upload-artifact@v4
103106
with:
104107
name: ${{ matrix.NAME }}
105108
path: meson-test-run.*

.github/workflows/file_format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
format:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v4
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.x'
2020
- run: python3 ./run_format_tests.py

.github/workflows/images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- { name: Ubuntu Bionic, id: bionic }
4646
- { name: Ubuntu Rolling, id: ubuntu-rolling }
4747
steps:
48+
# Need v3 because of bionic
4849
- uses: actions/checkout@v3
4950

5051
# Login to dockerhub

.github/workflows/lint.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ on:
99
paths:
1010
- "**.py"
1111
- ".github/workflows/lint.yml"
12+
- ".pylintrc"
13+
- ".flake8"
14+
- ".mypy.ini"
1215
pull_request:
1316
paths:
1417
- "**.py"
1518
- ".github/workflows/lint.yml"
19+
- ".pylintrc"
20+
- ".flake8"
21+
- ".mypy.ini"
1622

1723
permissions:
1824
contents: read
@@ -22,8 +28,8 @@ jobs:
2228
pylint:
2329
runs-on: ubuntu-latest
2430
steps:
25-
- uses: actions/checkout@v3
26-
- uses: actions/setup-python@v4
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
2733
with:
2834
python-version: '3.x'
2935
- run: python -m pip install pylint
@@ -32,8 +38,8 @@ jobs:
3238
flake8:
3339
runs-on: ubuntu-latest
3440
steps:
35-
- uses: actions/checkout@v3
36-
- uses: actions/setup-python@v4
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-python@v5
3743
with:
3844
python-version: '3.x'
3945
- run: python -m pip install flake8
@@ -42,8 +48,8 @@ jobs:
4248
mypy:
4349
runs-on: ubuntu-latest
4450
steps:
45-
- uses: actions/checkout@v3
46-
- uses: actions/setup-python@v4
51+
- uses: actions/checkout@v4
52+
- uses: actions/setup-python@v5
4753
with:
4854
python-version: '3.x'
4955
# Pin mypy to version 1.8, so we retain the ability to lint for Python 3.7

.github/workflows/macos.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
unittests-appleclang:
3232
runs-on: macos-latest
3333
steps:
34-
- uses: actions/checkout@v3
35-
- uses: actions/setup-python@v4
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.x'
3838
- run: |
@@ -81,7 +81,7 @@ jobs:
8181
HOMEBREW_NO_AUTO_UPDATE: 1
8282

8383
steps:
84-
- uses: actions/checkout@v3
84+
- uses: actions/checkout@v4
8585
# Avoid picking up an older version of LLVM that does not work.
8686
- run: brew update
8787
# github actions overwrites brew's python. Force it to reassert itself, by running in a separate step.
@@ -132,8 +132,8 @@ jobs:
132132
env:
133133
HOMEBREW_NO_AUTO_UPDATE: 1
134134
steps:
135-
- uses: actions/checkout@v3
136-
- uses: actions/setup-python@v4
135+
- uses: actions/checkout@v4
136+
- uses: actions/setup-python@v5
137137
with:
138138
python-version: '3.x'
139139
- run: python -m pip install -e .
@@ -145,13 +145,13 @@ jobs:
145145
- run: ln -sfn /usr/local/Cellar/qt@4/4.8.7_6.reinstall /usr/local/Cellar/qt@4/4.8.7_6
146146
- run: meson setup "test cases/frameworks/4 qt" build -Drequired=qt4
147147
- run: meson compile -C build
148-
- uses: actions/upload-artifact@v3
148+
- uses: actions/upload-artifact@v4
149149
if: failure()
150150
with:
151151
name: Qt4_Mac_build
152152
path: build/meson-logs/meson-log.txt
153153
- run: meson test -C build -v
154-
- uses: actions/upload-artifact@v3
154+
- uses: actions/upload-artifact@v4
155155
if: failure()
156156
with:
157157
name: Qt4_Mac_test

.github/workflows/msys2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
shell: msys2 {0}
6262

6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565

6666
- uses: msys2/setup-msys2@v2
6767
with:
@@ -127,7 +127,7 @@ jobs:
127127
128128
MSYSTEM= python3 ./tools/run_with_cov.py run_tests.py --backend=ninja
129129
130-
- uses: actions/upload-artifact@v3
130+
- uses: actions/upload-artifact@v4
131131
with:
132132
name: ${{ matrix.NAME }}
133133
path: meson-test-run.*

.github/workflows/nonnative.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
apt-get -y purge clang gcc gdc
3838
apt-get -y autoremove
3939
python3 -m pip install coverage
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
- name: Run tests
4242
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./tools/run_with_cov.py ./run_tests.py $CI_ARGS --cross ubuntu-armhf.json --cross-only'
4343

.github/workflows/os_comp.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,36 @@ jobs:
4949
- { name: Gentoo, id: gentoo }
5050
- { name: OpenSUSE, id: opensuse }
5151
- { name: Ubuntu Bionic, id: bionic }
52-
container: mesonbuild/${{ matrix.cfg.id }}:latest
52+
container:
53+
image: mesonbuild/${{ matrix.cfg.id }}:latest
54+
volumes:
55+
- ${{ matrix.cfg.id == 'bionic' && '/node20217:/node20217:rw,rshared' || ' ' }}
56+
- ${{ matrix.cfg.id == 'bionic' && '/node20217:/__e/node20:ro,rshared' || ' ' }}
5357
env:
5458
MESON_CI_JOBNAME: linux-${{ matrix.cfg.id }}-gcc
5559

5660
steps:
57-
- uses: actions/checkout@v3
61+
- name: install nodejs20glibc2.17
62+
if: ${{ matrix.cfg.id == 'bionic' }}
63+
run: |
64+
apt install curl -y
65+
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
66+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
67+
ldd /__e/node20/bin/node
68+
- uses: actions/checkout@v4
69+
5870
- name: Run tests
5971
# All environment variables are stored inside the docker image in /ci/env_vars.sh
6072
# They are defined in the `env` section in each image.json. CI_ARGS should be set
6173
# via the `args` array ub the image.json
62-
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./tools/run_with_cov.py ./run_tests.py $CI_ARGS'
74+
shell: bash
75+
run: |
76+
# dmd is installed under /root on OpenSUSE
77+
[[ ${{ matrix.cfg.id }} == opensuse ]] && export HOME=/root
78+
79+
source /ci/env_vars.sh
80+
cd $GITHUB_WORKSPACE
81+
./tools/run_with_cov.py ./run_tests.py $CI_ARGS
6382
6483
- name: Aggregate coverage reports
6584
run: ./ci/combine_cov.sh
@@ -80,7 +99,7 @@ jobs:
8099
MESON_CI_JOBNAME_UPDATE: linux-arch-gcc-pypy
81100

82101
steps:
83-
- uses: actions/checkout@v3
102+
- uses: actions/checkout@v4
84103
- name: Run tests
85104
run: |
86105
source /ci/env_vars.sh
@@ -134,7 +153,7 @@ jobs:
134153

135154
steps:
136155
- name: Checkout code
137-
uses: actions/checkout@v3
156+
uses: actions/checkout@v4
138157

139158
- name: Run tests
140159
shell: bash

.github/workflows/stable_builddir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
TESTDIR: "manual tests/13 builddir upgrade"
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: install ninja
1919
run: sudo apt-get -y install build-essential ninja-build
2020
- name: Fetch tags and unshallow

.github/workflows/unusedargs_missingreturn.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
linux:
4545
runs-on: ubuntu-20.04
4646
steps:
47-
- uses: actions/checkout@v3
48-
- uses: actions/setup-python@v4
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-python@v5
4949
with:
5050
python-version: '3.x'
5151
- name: Install Compilers
@@ -71,8 +71,8 @@ jobs:
7171
windows:
7272
runs-on: windows-latest
7373
steps:
74-
- uses: actions/checkout@v3
75-
- uses: actions/setup-python@v4
74+
- uses: actions/checkout@v4
75+
- uses: actions/setup-python@v5
7676
with:
7777
python-version: '3.x'
7878

.github/workflows/website.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
HAS_SSH_KEY: ${{ secrets.WEBSITE_PRIV_KEY != '' }}
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636

37-
- uses: actions/cache/restore@v3
37+
- uses: actions/cache/restore@v4
3838
id: restore-cache
3939
with:
4040
# should use 'pip3 cache dir' to discover this path
@@ -47,7 +47,7 @@ jobs:
4747
sudo apt-get -y install python3-pip ninja-build libjson-glib-dev
4848
pip install hotdoc chevron strictyaml
4949
50-
- uses: actions/cache/save@v3
50+
- uses: actions/cache/save@v4
5151
with:
5252
# should use 'pip3 cache dir' to discover this path
5353
path: ~/.cache/pip

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ disable=
6666
too-many-lines,
6767
too-many-locals,
6868
too-many-nested-blocks,
69+
too-many-positional-arguments,
6970
too-many-public-methods,
7071
too-many-return-statements,
7172
too-many-statements,

ci/ciimage/arch/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pkgs=(
1111
ninja make git sudo fakeroot autoconf automake patch
1212
libelf gcc gcc-fortran gcc-objc vala rust bison flex cython go dlang-dmd
1313
mono boost qt5-base gtkmm3 gtest gmock protobuf gobject-introspection
14-
itstool gtk3 java-environment=8 gtk-doc llvm clang sdl2 graphviz
14+
itstool glib2-devel gtk3 java-environment=8 gtk-doc llvm clang sdl2 graphviz
1515
doxygen vulkan-validation-layers openssh mercurial gtk-sharp-2 qt5-tools
1616
libwmf cmake netcdf-fortran openmpi nasm gnustep-base gettext
1717
python-lxml hotdoc rust-bindgen qt6-base qt6-tools wayland wayland-protocols
@@ -41,6 +41,9 @@ useradd -m $AUR_USER
4141
echo "${AUR_USER}:" | chpasswd -e
4242
echo "$AUR_USER ALL = NOPASSWD: ALL" >> /etc/sudoers
4343

44+
# fix installing packages from source, attempting to install debug info
45+
sed -i '/OPTIONS/{s|debug|!debug|}' /etc/makepkg.conf
46+
4447
# Install yay
4548
su $AUR_USER -c 'cd; git clone https://aur.archlinux.org/yay.git'
4649
su $AUR_USER -c 'cd; cd yay; makepkg'

ci/ciimage/gentoo/install.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ pkgs_stable=(
4040
sci-libs/hdf5
4141
dev-qt/linguist-tools
4242
sys-devel/llvm
43-
# qt6 unstable
44-
#dev-qt/qttools
43+
dev-qt/qttools
4544

4645
# misc
4746
app-admin/sudo
@@ -158,3 +157,11 @@ install_python_packages
158157
python3 -m pip install "${base_python_pkgs[@]}"
159158

160159
echo "source /etc/profile" >> /ci/env_vars.sh
160+
161+
# Cleanup to avoid including large contents in the docker image.
162+
# We don't need cache files that are side artifacts of installing packages.
163+
# We also don't need the gentoo tree -- the official docker image doesn't
164+
# either, and expects you to use emerge-webrsync once you need it.
165+
rm -rf /var/cache/binpkgs
166+
rm -rf /var/cache/distfiles
167+
rm -rf /var/db/repos/gentoo

0 commit comments

Comments
 (0)