GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MAINT: Massive update of files from main · numpy/numpy@33df2b2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .cirrus.star
  • .github/workflows
    • build_test.yml
    • emscripten.yml
    • linux_meson.yml
    • linux_musl.yml
  • .spin
    • cmds.py
  • azure-pipelines.yml
  • azure-steps-windows.yml
  • build_requirements.txt
  • numpy
    • f2py
      • capi_maps.py
      • cfuncs.py
      • tests
        • test_return_integer.py
        • test_return_real.py
        • util.py
    • random
      • _examples/cython
        • setup.py
      • _generator.pyx
      • _mt19937.pyx
      • _pcg64.pyx
      • _philox.pyx
      • _sfc64.pyx
      • bit_generator.pyx
      • meson.build
      • mtrand.pyx
      • src
        • distributions
          • distributions.c
        • mt19937
          • randomkit.h
        • pcg64
          • pcg64.orig.h
      • tests
        • test_extending.py
        • test_generator_mt19937.py
        • test_generator_mt19937_regressions.py
        • test_random.py
        • test_randomstate.py
  • pyproject.toml.setuppy
  • pyproject.toml
  • test_requirements.txt
  • tools
    • ci
      • cirrus_macosx_arm64.yml
      • cirrus_wheels.yml
    • openblas_support.py
    • travis-before-install.sh
    • travis-test.sh
    • wheels
      • repair_windows.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.cirrus.star‎

Copy file name to clipboardExpand all lines: .cirrus.star
+19-7Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,26 @@ def main(ctx):
2626
SHA = env.get("CIRRUS_CHANGE_IN_REPO")
2727
url = "https://api.github.com/repos/numpy/numpy/git/commits/" + SHA
2828
dct = http.get(url).json()
29-
# if "[wheel build]" in dct["message"]:
30-
# return fs.read("ci/cirrus_wheels.yml")
3129

32-
if "[skip cirrus]" in dct["message"] or "[skip ci]" in dct["message"]:
30+
commit_msg = dct["message"]
31+
if "[skip cirrus]" in commit_msg or "[skip ci]" in commit_msg:
3332
return []
3433

35-
# add extra jobs to the cirrus run by += adding to config
36-
config = fs.read("tools/ci/cirrus_wheels.yml")
37-
config += fs.read("tools/ci/cirrus_macosx_arm64.yml")
34+
wheel = False
35+
labels = env.get("CIRRUS_PR_LABELS", "")
36+
pr_number = env.get("CIRRUS_PR", "-1")
37+
tag = env.get("CIRRUS_TAG", "")
3838

39-
return config
39+
if "[wheel build]" in commit_msg:
40+
wheel = True
41+
42+
# if int(pr_number) > 0 and ("14 - Release" in labels or "36 - Build" in labels):
43+
# wheel = True
44+
45+
if tag.startswith("v") and "dev0" not in tag:
46+
wheel = True
47+
48+
if wheel:
49+
return fs.read("tools/ci/cirrus_wheels.yml")
50+
51+
return fs.read("tools/ci/cirrus_macosx_arm64.yml")
Collapse file

‎.github/workflows/build_test.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build_test.yml
+8-28Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
if: github.event_name != 'push'
6767
strategy:
6868
matrix:
69-
python-version: ["3.9", "3.10", "3.11", "pypy3.9-v7.3.11"]
69+
python-version: ["3.9", "3.10", "3.11", "pypy3.9-v7.3.12"]
7070
env:
7171
EXPECT_CPU_FEATURES: "SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL"
7272
steps:
@@ -96,7 +96,7 @@ jobs:
9696
# for add-apt-repository
9797
sudo apt install software-properties-common -y
9898
sudo add-apt-repository ppa:deadsnakes/ppa -y
99-
sudo apt install python3.9-dev -y
99+
sudo apt install python3.9-dev ninja-build -y
100100
sudo ln -s /usr/bin/python3.9 /usr/bin/pythonx
101101
pythonx -m pip install --upgrade pip setuptools wheel
102102
pythonx -m pip install -r test_requirements.txt
@@ -195,6 +195,7 @@ jobs:
195195
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
196196
with:
197197
python-version: ${{ env.PYTHON_VERSION }}
198+
198199
- uses: ./.github/actions
199200

200201
blas64:
@@ -287,26 +288,6 @@ jobs:
287288
python-version: ${{ env.PYTHON_VERSION }}
288289
- uses: ./.github/actions
289290

290-
numpy2_flag:
291-
needs: [smoke_test]
292-
runs-on: ubuntu-latest
293-
if: github.event_name != 'push'
294-
env:
295-
# Test for numpy-2.0 feature-flagged behavior.
296-
NPY_NUMPY_2_BEHAVIOR: 1
297-
# Using the future "weak" state doesn't pass tests
298-
# currently unfortunately
299-
NPY_PROMOTION_STATE: legacy
300-
steps:
301-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
302-
with:
303-
submodules: recursive
304-
fetch-depth: 0
305-
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
306-
with:
307-
python-version: ${{ env.PYTHON_VERSION }}
308-
- uses: ./.github/actions
309-
310291
no_openblas:
311292
needs: [smoke_test]
312293
runs-on: ubuntu-latest
@@ -361,11 +342,10 @@ jobs:
361342
sudo apt update
362343
sudo apt install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gfortran-arm-linux-gnueabihf
363344
364-
# Keep the `test_requirements.txt` dependency-subset synced
365-
docker run --name the_container --interactive -v /:/host arm32v7/ubuntu:22.04 /bin/bash -c "
345+
docker run --name the_container --interactive -v /:/host -v $(pwd):/numpy arm32v7/ubuntu:22.04 /bin/bash -c "
366346
apt update &&
367347
apt install -y git python3 python3-dev python3-pip &&
368-
python3 -m pip install cython==0.29.34 setuptools\<49.2.0 hypothesis==6.23.3 pytest==6.2.5 'typing_extensions>=4.2.0' &&
348+
python3 -m pip install -r /numpy/test_requirements.txt
369349
ln -s /host/lib64 /lib64 &&
370350
ln -s /host/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu &&
371351
ln -s /host/usr/arm-linux-gnueabihf /usr/arm-linux-gnueabihf &&
@@ -443,7 +423,7 @@ jobs:
443423
python-version: ${{ env.PYTHON_VERSION }}
444424
- name: Install Intel SDE
445425
run: |
446-
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/751535/sde-external-9.14.0-2022-10-25-lin.tar.xz
426+
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/784319/sde-external-9.24.0-2023-07-13-lin.tar.xz
447427
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
448428
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
449429
- name: Install dependencies
@@ -454,14 +434,14 @@ jobs:
454434
run: |
455435
export CC=/usr/bin/gcc-12
456436
export CXX=/usr/bin/g++-12
457-
python -m pip install -e .
437+
python setup.py develop
458438
- name: Show config
459439
run: |
460440
python -c "import numpy as np; np.show_config()"
461441
# Run only a few tests, running everything in an SDE takes a long time
462442
# Using pytest directly, unable to use python runtests.py -n -t ...
463-
# Disabled running in the SDE because of an SDE bug
464443
- name: Run linalg/ufunc/umath tests
465444
run: |
466445
python -m pytest numpy/core/tests/test_umath* numpy/core/tests/test_ufunc.py numpy/linalg/tests/test_*
446+
# Can't run on SDE just yet: see https://github.com/numpy/numpy/issues/23545#issuecomment-1659047365
467447
#sde -spr -- python -m pytest numpy/core/tests/test_umath* numpy/core/tests/test_ufunc.py numpy/linalg/tests/test_*
Collapse file

‎.github/workflows/emscripten.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/emscripten.yml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ jobs:
5555
run: pip install "pydantic<2" pyodide-build==$PYODIDE_VERSION
5656

5757
- name: Build
58-
run: CFLAGS=-g2 LDFLAGS=-g2 pyodide build
58+
run: |
59+
# Pyodide is still in the process of adding better/easier support for
60+
# non-setup.py based builds.
61+
cp pyproject.toml.setuppy pyproject.toml
62+
CFLAGS=-g2 LDFLAGS=-g2 pyodide build
5963
6064
- name: set up node
6165
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
@@ -67,6 +71,7 @@ jobs:
6771
pyodide venv .venv-pyodide
6872
source .venv-pyodide/bin/activate
6973
pip install dist/*.whl
74+
python -c "import sys; print(sys.platform)"
7075
pip install -r test_requirements.txt
7176
- name: Test
7277
run: |
Collapse file

‎.github/workflows/linux_meson.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linux_meson.yml
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
meson_spin:
2525
if: "github.repository == 'numpy/numpy'"
2626
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
USE_NIGHTLY_OPENBLAS: [false, true]
30+
env:
31+
USE_NIGHTLY_OPENBLAS: ${{ matrix.USE_NIGHTLY_OPENBLAS }}
32+
name: "Test Linux (${{ matrix.USE_NIGHTLY_OPENBLAS && 'nightly' || 'stable' }} OpenBLAS)"
2733
steps:
2834
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2935
with:
@@ -35,7 +41,15 @@ jobs:
3541
- name: Install dependencies
3642
run: |
3743
pip install -r build_requirements.txt
38-
sudo apt-get install -y libopenblas-serial-dev
44+
# Install OpenBLAS
45+
set -xe
46+
if [[ $USE_NIGHTLY_OPENBLAS == "true" ]]; then
47+
target=$(python tools/openblas_support.py --nightly)
48+
else
49+
target=$(python tools/openblas_support.py)
50+
fi
51+
sudo cp -r $target/lib/* /usr/lib
52+
sudo cp $target/include/* /usr/include
3953
- name: Build
4054
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
4155
env:
@@ -52,6 +66,7 @@ jobs:
5266
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
5367
env:
5468
TERM: xterm-256color
69+
LD_LIBRARY_PATH: "/usr/local/lib/" # to find libopenblas.so.0
5570
run: |
56-
pip install pytest hypothesis typing_extensions
57-
spin test
71+
pip install pytest pytest-xdist hypothesis typing_extensions
72+
spin test -j auto
Collapse file

‎.github/workflows/linux_musl.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linux_musl.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
RUNNER_OS=Linux sh tools/wheels/cibw_before_build.sh .
6060
6161
pip install -r build_requirements.txt
62-
pip install pytest hypothesis typing_extensions
62+
pip install pytest pytest-xdist hypothesis typing_extensions
6363
6464
# use meson to build and test
6565
spin build
66-
spin test
66+
spin test -j auto

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.