Skip to content

Commit bafe0fe

Browse files
committed
Merge branch 'main' into strip-npymath
2 parents 0a23c71 + b850c3b commit bafe0fe

File tree

1,246 files changed

+56718
-56169
lines changed

Some content is hidden

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

1,246 files changed

+56718
-56169
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- checkout
2121

2222
- run:
23-
name: Check-skip
23+
name: check skip
2424
command: |
2525
export git_log=$(git log --max-count=1 --pretty=format:"%B" | tr "\n" " ")
2626
echo "Got commit message:"
@@ -40,22 +40,19 @@ jobs:
4040
- run:
4141
name: update submodules
4242
command: |
43-
git submodule init
44-
git submodule update
43+
git submodule update --init
4544
4645
- run:
47-
name: create virtual environment, install dependencies
46+
name: install system dependencies
4847
command: |
4948
sudo apt-get update
50-
#sudo apt-get install -y python3.9 python3.9-dev python3-venv graphviz texlive-fonts-recommended texlive-latex-recommended \
5149
sudo apt-get install -y graphviz texlive-fonts-recommended texlive-latex-recommended \
5250
texlive-latex-extra latexmk texlive-xetex texlive-lang-chinese doxygen
53-
python3.11 -m venv venv
54-
. venv/bin/activate
5551
5652
- run:
57-
name: build numpy
53+
name: build NumPy
5854
command: |
55+
python3.11 -m venv venv
5956
. venv/bin/activate
6057
pip install --progress-bar=off -r test_requirements.txt
6158
# get newer, pre-release versions of critical packages
@@ -67,16 +64,19 @@ jobs:
6764
name: create release notes
6865
command: |
6966
. venv/bin/activate
70-
VERSION=$(python -c "import setup; print(setup.VERSION)")
67+
VERSION=$(pip show numpy | grep Version: | cut -d ' ' -f 2 | cut -c 1-5)
7168
towncrier build --version $VERSION --yes
7269
./tools/ci/test_all_newsfragments_used.py
7370
7471
- run:
7572
name: run doctests on documentation
7673
command: |
7774
. venv/bin/activate
78-
(cd doc ; git submodule update --init)
75+
# Note: keep these two checks separate, because they seem to
76+
# influence each other through changing global state (e.g., via
77+
# `np.polynomial.set_default_printstyle`)
7978
python tools/refguide_check.py --rst
79+
python tools/refguide_check.py --doctests
8080
8181
- run:
8282
name: build devdocs w/ref warnings

.cirrus.star

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ def main(ctx):
4848
if wheel:
4949
return fs.read("tools/ci/cirrus_wheels.yml")
5050

51-
return fs.read("tools/ci/cirrus_macosx_arm64.yml")
51+
if int(pr_number) < 0:
52+
return []
53+
54+
return fs.read("tools/ci/cirrus_arm.yml")

.devcontainer/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
curl micro.mamba.pm/install.sh | bash
5+
"${SHELL}" <(curl -Ls micro.mamba.pm/install.sh) < /dev/null
66

77
conda init --all
88
micromamba shell init -s bash

.gitattributes

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,22 @@
99
# Mark some files as vendored
1010
numpy/linalg/lapack_lite/f2c.c linguist-vendored
1111
numpy/linalg/lapack_lite/f2c.h linguist-vendored
12-
tools/npy_tempita/* linguist-vendored
13-
numpy/core/include/numpy/libdivide/* linguist-vendored
14-
numpy/core/src/umath/svml/* linguist-vendored
15-
numpy/core/src/common/dlpack/dlpack.h linguist-vendored
12+
numpy/_core/include/numpy/libdivide/* linguist-vendored
13+
numpy/_core/src/umath/svml/* linguist-vendored
14+
numpy/_core/src/common/dlpack/dlpack.h linguist-vendored
1615

1716
# Mark some files as generated
1817
numpy/linalg/lapack_lite/f2c_*.c linguist-generated
1918
numpy/linalg/lapack_lite/lapack_lite_names.h linguist-generated
20-
numpy/_version.py linguist-generated
2119

22-
# versioneer config
23-
numpy/_version.py export-subst
20+
# version generated from pyproject.toml during build
21+
numpy/version.py linguist-generated
2422

2523
# Configuration files
2624
*.ini text
2725
*.cfg text
28-
./MANIFEST.in text
29-
./numpy/core/npymath.ini.in text
30-
./numpy/core/mlib.ini.in text
31-
./site.cfg.example text
26+
./numpy/_core/npymath.ini.in text
27+
./numpy/_core/mlib.ini.in text
3228

3329
# Python sources
3430
*.py text diff=python
@@ -107,8 +103,7 @@ numpy/_version.py export-subst
107103
./doc/neps/index.rst.tmpl text
108104
./benchmarks/asv_compare.conf.json.tpl text
109105
./tools/swig/test/*.i text
110-
./tools/gitpod/gitpod.Dockerfile text
111106
./doc/source/dev/gitwash/git_links.inc text
112107
./doc/source/reference/simd/*.inc text
113-
./numpy/core/src/_simd/*.inc text diff=c
108+
./numpy/_core/src/_simd/*.inc text diff=c
114109

.github/actions/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/meson_actions/action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: MesonBuildTest
2+
description: "checkout repo, build, and test numpy"
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Build
7+
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
8+
env:
9+
TERM: xterm-256color
10+
PKG_CONFIG_PATH: ./.openblas
11+
run: |
12+
echo "::group::Installing Build Dependencies"
13+
pip install -r build_requirements.txt
14+
echo "::endgroup::"
15+
echo "::group::Building NumPy"
16+
spin build --clean -- ${MESON_ARGS[@]}
17+
echo "::endgroup::"
18+
19+
- name: Meson Log
20+
shell: bash
21+
if: always()
22+
run: |
23+
echo "::group::Meson Log"
24+
cat build/meson-logs/meson-log.txt
25+
echo "::endgroup::"
26+
27+
- name: Test
28+
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
29+
env:
30+
TERM: xterm-256color
31+
run: |
32+
echo "::group::Installing Test Dependencies"
33+
pip install pytest pytest-xdist hypothesis typing_extensions setuptools
34+
echo "::endgroup::"
35+
echo "::group::Test NumPy"
36+
spin test
37+
echo "::endgroup::"

0 commit comments

Comments
 (0)