forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into force-tuple
- Loading branch information
Showing
369 changed files
with
16,053 additions
and
10,985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ jobs: | |
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install cython sphinx matplotlib | ||
sudo apt-get update | ||
sudo apt-get install -y graphviz texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra texlive-generic-extra latexmk texlive-xetex | ||
- run: | ||
name: build numpy | ||
|
@@ -29,6 +31,7 @@ jobs: | |
pip install --upgrade pip setuptools | ||
pip install cython | ||
pip install . | ||
pip install scipy | ||
- run: | ||
name: build devdocs | ||
|
@@ -54,8 +57,51 @@ jobs: | |
# path: doc/neps/_build/html/ | ||
# destination: neps | ||
|
||
- deploy: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "9f:8c:e5:3f:53:40:0b:ee:c9:c3:0f:fd:0f:3c:cc:55" | ||
|
||
- run: | ||
name: deploy devdocs | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
echo "Deploying on master" | ||
touch doc/build/html/.nojekyll | ||
./tools/ci/push_docs_to_repo.py doc/build/html \ | ||
[email protected]:numpy/devdocs.git \ | ||
--committer "numpy-circleci-bot" \ | ||
--email "numpy-circleci-bot@nomail" \ | ||
--message "Docs build of $CIRCLE_SHA1" \ | ||
--force | ||
else | ||
echo "Not on the master branch; skipping deployment" | ||
fi | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "11:fb:19:69:80:3a:6d:37:9c:d1:ac:20:17:cd:c8:17" | ||
|
||
- run: | ||
name: select SSH key for neps repo | ||
command: | | ||
cat <<\EOF > ~/.ssh/config | ||
Host github.com | ||
IdentitiesOnly yes | ||
IdentityFile /home/circleci/.ssh/id_rsa_11fb1969803a6d379cd1ac2017cdc817 | ||
EOF | ||
- run: | ||
name: deploy neps | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
touch doc/neps/_build/html/.nojekyll | ||
./tools/ci/push_docs_to_repo.py doc/neps/_build/html \ | ||
[email protected]:numpy/neps.git \ | ||
--committer "numpy-circleci-bot" \ | ||
--email "numpy-circleci-bot@nomail" \ | ||
--message "Docs build of $CIRCLE_SHA1" \ | ||
--force | ||
else | ||
echo "Not on the master branch; skipping deployment" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[run] | ||
branch = True | ||
include = */numpy/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Benchmarks for `numpy.lib`.""" | ||
|
||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
from .common import Benchmark | ||
|
||
import numpy as np | ||
|
||
|
||
class Pad(Benchmark): | ||
"""Benchmarks for `numpy.pad`.""" | ||
|
||
param_names = ["shape", "pad_width", "mode"] | ||
params = [ | ||
[(1000,), (10, 100), (10, 10, 10)], | ||
[1, 3, (0, 5)], | ||
["constant", "edge", "linear_ramp", "mean", "reflect", "wrap"], | ||
] | ||
|
||
def setup(self, shape, pad_width, mode): | ||
self.array = np.empty(shape) | ||
|
||
def time_pad(self, shape, pad_width, mode): | ||
np.pad(self.array, pad_width, mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.