summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build_test.yml2
-rw-r--r--azure-steps-windows.yml5
-rw-r--r--doc/source/_static/numpy.css30
-rw-r--r--doc/source/conf.py6
-rw-r--r--environment.yml2
-rw-r--r--numpy/linalg/linalg.py1
-rwxr-xr-xruntests.py2
-rw-r--r--tools/gitpod/gitpod.Dockerfile1
-rwxr-xr-xtools/pypy-test.sh49
9 files changed, 43 insertions, 55 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 6725719aa..dd4dff07c 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -215,7 +215,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
- python-version: pypy-3.8-v7.3.8
+ python-version: pypy-3.8-v7.3.9
- uses: ./.github/actions
sdist:
diff --git a/azure-steps-windows.yml b/azure-steps-windows.yml
index f0cd5112d..671e01c5b 100644
--- a/azure-steps-windows.yml
+++ b/azure-steps-windows.yml
@@ -6,8 +6,9 @@ steps:
architecture: $(PYTHON_ARCH)
condition: not(contains(variables['PYTHON_VERSION'], 'PyPy'))
- powershell: |
- # $url = "http://buildbot.pypy.org/nightly/py3.8/pypy-c-jit-latest-win64.zip"
- $url = "https://downloads.python.org/pypy/pypy3.8-v7.3.7-win64.zip"
+ # UsePythonVersion only supports pypy3.6, we need 3.8
+ # https://github.com/microsoft/azure-pipelines-tasks/pull/15553
+ $url = "https://downloads.python.org/pypy/pypy3.8-v7.3.9-win64.zip"
$output = "pypy.zip"
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, $output)
diff --git a/doc/source/_static/numpy.css b/doc/source/_static/numpy.css
index fc296e8ab..b68bb3780 100644
--- a/doc/source/_static/numpy.css
+++ b/doc/source/_static/numpy.css
@@ -32,6 +32,36 @@ h3 {
letter-spacing: -.03em;
}
+/* Style the active version button.
+
+- dev: orange
+- stable: green
+- old, PR: red
+
+Colors from:
+
+Wong, B. Points of view: Color blindness.
+Nat Methods 8, 441 (2011). https://doi.org/10.1038/nmeth.1618
+*/
+
+/* If the active version has the name "dev", style it orange */
+#version_switcher_button[data-active-version-name*="dev"] {
+ background-color: #E69F00;
+ border-color: #E69F00;
+}
+
+/* green for `stable` */
+#version_switcher_button[data-active-version-name*="stable"] {
+ background-color: #009E73;
+ border-color: #009E73;
+}
+
+/* red for `old` */
+#version_switcher_button:not([data-active-version-name*="stable"], [data-active-version-name*="dev"], [data-active-version-name=""]) {
+ background-color: #980F0F;
+ border-color: #980F0F;
+}
+
/* Main page overview cards */
.intro-card {
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 5c056b201..854885270 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -172,7 +172,11 @@ html_logo = '_static/numpylogo.svg'
html_favicon = '_static/favicon/favicon.ico'
# Set up the version switcher. The versions.json is stored in the devdocs.
-if ".dev" in version:
+if os.environ.get('CIRCLE_JOB', False) and \
+ os.environ.get('CIRCLE_BRANCH', '') != 'main':
+ # For PR, name is set to its ref
+ switcher_version = os.environ['CIRCLE_BRANCH']
+elif ".dev" in version:
switcher_version = "devdocs"
else:
switcher_version = f"doc/{version}"
diff --git a/environment.yml b/environment.yml
index 1d0c956ac..c45b406b5 100644
--- a/environment.yml
+++ b/environment.yml
@@ -8,7 +8,7 @@ channels:
- conda-forge
dependencies:
- python=3.9 #need to pin to avoid issues with builds
- - cython=0.29.30
+ - cython>=0.29.30
- compilers
- openblas
- nomkl
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 40f259001..264bc98b9 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -1951,7 +1951,6 @@ def pinv(a, rcond=1e-15, hermitian=False):
See Also
--------
scipy.linalg.pinv : Similar function in SciPy.
- scipy.linalg.pinv2 : Similar function in SciPy (SVD-based).
scipy.linalg.pinvh : Compute the (Moore-Penrose) pseudo-inverse of a
Hermitian matrix.
diff --git a/runtests.py b/runtests.py
index 5d48bfa7f..fea29a10d 100755
--- a/runtests.py
+++ b/runtests.py
@@ -287,6 +287,8 @@ def main(argv):
if args.refguide_check:
cmd = [os.path.join(ROOT_DIR, 'tools', 'refguide_check.py'),
'--doctests']
+ if args.verbose:
+ cmd += ['-' + 'v'*args.verbose]
if args.submodule:
cmd += [args.submodule]
os.execv(sys.executable, [sys.executable] + cmd)
diff --git a/tools/gitpod/gitpod.Dockerfile b/tools/gitpod/gitpod.Dockerfile
index 7894be5bc..8dac0d597 100644
--- a/tools/gitpod/gitpod.Dockerfile
+++ b/tools/gitpod/gitpod.Dockerfile
@@ -34,6 +34,7 @@ COPY --from=clone --chown=gitpod /tmp/numpy ${WORKSPACE}
WORKDIR ${WORKSPACE}
# Build numpy to populate the cache used by ccache
+RUN git config --global --add safe.directory /workspace/numpy
RUN git submodule update --init --depth=1 -- numpy/core/src/umath/svml
RUN conda activate ${CONDA_ENV} && \
python setup.py build_ext --inplace && \
diff --git a/tools/pypy-test.sh b/tools/pypy-test.sh
deleted file mode 100755
index e6c6ae719..000000000
--- a/tools/pypy-test.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env bash
-
-# Exit if a command fails
-set -e
-set -o pipefail
-# Print expanded commands
-set -x
-
-sudo apt-get -yq update
-sudo apt-get -yq install gfortran-5
-export F77=gfortran-5
-export F90=gfortran-5
-
-# Download the proper OpenBLAS x64 precompiled library
-target=$(python3 tools/openblas_support.py)
-ls -lR "$target"
-echo getting OpenBLAS into $target
-export LD_LIBRARY_PATH=$target/lib
-export LIB=$target/lib
-export INCLUDE=$target/include
-
-# Use a site.cfg to build with local openblas
-cat << EOF > site.cfg
-[openblas]
-libraries = openblas
-library_dirs = $target/lib:$LIB
-include_dirs = $target/lib:$LIB
-runtime_library_dirs = $target/lib
-EOF
-
-echo getting PyPy 3.6-v7.3.2
-wget -q https://downloads.python.org/pypy/pypy3.6-v7.3.2-linux64.tar.bz2 -O pypy.tar.bz2
-mkdir -p pypy3
-(cd pypy3; tar --strip-components=1 -xf ../pypy.tar.bz2)
-pypy3/bin/pypy3 -mensurepip
-pypy3/bin/pypy3 -m pip install --upgrade pip
-pypy3/bin/pypy3 -m pip install --user -r test_requirements.txt --no-warn-script-location
-
-echo
-echo pypy3 version
-pypy3/bin/pypy3 -c "import sys; print(sys.version)"
-echo
-
-pypy3/bin/pypy3 runtests.py --debug-info --show-build-log -v -- -rsx \
- --junitxml=junit/test-results.xml --durations 10
-
-echo Make sure the correct openblas has been linked in
-pypy3/bin/pypy3 -mpip install --no-build-isolation .
-pypy3/bin/pypy3 tools/openblas_support.py --check_version