summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* TST: Update travis and appveyor to use pytest.Charles Harris2018-04-044-35/+31
| | | | | For the time being, these tests will ignore the flood of deprecated yield test warnings. Fixing those is for another PR.
* TST: Update `runtests.py` to use pytest.Charles Harris2018-04-041-62/+36
| | | | | | Takes over some bits from SciPy. The most visible user change is the replacement of `--timer` by `--durations`, with `--durations=0` meaning time all tests.
* TST: Update modules `test` to PytestTester.Charles Harris2018-04-0412-35/+44
| | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
* TST: Switch to using pytest markersCharles Harris2018-04-0456-458/+535
| | | | | | | | | | | Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
* TST: Add `.coveragerc` file for coverage testing.Charles Harris2018-04-041-0/+3
|
* TST: Update pytest.ini and PytestTesterCharles Harris2018-04-042-12/+31
| | | | | | | | * Make PytestTester callable. * Rename 'timer' to 'durations', corresponding with pytest. * Offset 'verbose', no entry is now '-q'. * Move some `ignore` warnings into PytestTester so that they affect releases, not just develop.
* Merge pull request #10827 from charris/create-pytesttesterCharles Harris2018-04-0112-13/+190
|\ | | | | ENH: Add tester for pytest.
| * ENH: Add tester for pytest.Charles Harris2018-03-311-0/+175
| | | | | | | | | | | | [ci skip] This is not used yet, but has been tested with temporary changes and works.
| * MAINT: Update pytest.ini.Charles Harris2018-03-311-3/+15
| | | | | | | | Include relevant suppression of various warnings.
| * MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-3110-10/+0
| | | | | | | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* | Merge pull request #10834 from juliantaylor/opt-docCharles Harris2018-04-011-0/+2
|\ \ | | | | | | DOC: note that NDEBUG should be set when OPT should increase optimization
| * | DOC: note that NDEBUG should be set when OPT should increase optimizationJulian Taylor2018-04-011-0/+2
| |/
* | Merge pull request #10833 from aurel32/riscv64Charles Harris2018-04-013-1/+9
|\ \ | | | | | | ENH: Add support for the 64-bit RISC-V architecture
| * | MAINT: Fix hard tab.Charles Harris2018-04-011-1/+1
| | |
| * | ENH: Add a release note about support for 64-bit RISC-VAurelien Jarno2018-04-011-0/+4
| | |
| * | ENH: Add support for the 64-bit RISC-V architectureDavid Abdurachmanov2018-04-012-1/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | RISC-V (pronounced "RISC Five") is an open source instruction set architecture (ISA). The 64-bit version may run the Linux kernel and the usual stack of applications on top of it, including Python. This patch adds support for riscv64 to Numpy. With it the full testsuite passes for both Python 2.7 and 3.6, with the only exception of test_float (test_numeric.TestBoolCmp). See #8213 for details. Closes: #8213
* | Merge pull request #10781 from stefanv/nep_index_builderCharles Harris2018-04-0121-69/+178
|\ \ | |/ |/| NEP index builder
| * Install graphviz on CircleCIStefan van der Walt2018-03-221-0/+2
| |
| * Move Status tag to more appropriate locationStefan van der Walt2018-03-221-2/+1
| |
| * Add missing check for Replaces tag in replacement NEPStefan van der Walt2018-03-221-0/+6
| |
| * Add consistency check for superseded NEPsStefan van der Walt2018-03-211-1/+37
| | | | | | | | | | A superseded NEP should have a Replaced-By header. The replacing NEP should have a Replaces header. They should point to one another.
| * Raise errors in Sphinx warningsStefan van der Walt2018-03-211-1/+1
| |
| * Use correct tag Final for merged NEPs. Add resolution to NEP 14.Stefan van der Walt2018-03-218-10/+13
| |
| * Add tool for building NEP indexStefan van der Walt2018-03-2120-63/+126
| |
* | Merge pull request #10832 from orestisf1993/issue-10810Stephan Hoyer2018-03-312-1/+8
|\ \ | | | | | | ENH: datetime64: support AC dates starting with '+'
| * | ENH: datetime64: support AC dates starting with '+'Orestis Floros2018-03-312-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Numpy allows negatives signs but throws a value error when parsing datetime strings starting with '+': >>> np.datetime64('+1000-01-01T00:00:00Z') ValueError: Error parsing datetime string "+1000-01-01T00:00:00Z" at position 0 Since the default is positive years, we just need to skip the '+' character. Fixes #10810.
* | | Merge pull request #10786 from lakshayg/stablesortJulian Taylor2018-03-316-9/+37
|\ \ \ | |/ / |/| | ENH: Add "stablesort" option to inp.sort as an alias for "mergesort".
| * | Remove NPY_STABLESORT enumLakshay Garg2018-03-297-21/+19
| | |
| * | add test for stable sortLakshay Garg2018-03-251-0/+6
| | |
| * | add release noteLakshay Garg2018-03-251-0/+14
| | |
| * | add stablesort in np.sort and point to mergesortLakshay Garg2018-03-239-14/+24
| | | | | | | | | | | | Closes #10784
* | | Merge pull request #10830 from charris/fix-testing-warningsRalf Gommers2018-03-303-6/+6
|\ \ \ | | | | | | | | BUG: Fix obvious warning bugs.
| * | | BUG: Fix obvious warning bugs.Charles Harris2018-03-303-6/+6
| | | | | | | | | | | | | | | | The warning type is the second, not the first, argument.
* | | | Merge pull request #10831 from luzpaz/fix-minor-typosCharles Harris2018-03-3010-11/+11
|\ \ \ \ | | | | | | | | | | DOC: Fix minor typos
| * | | | DOC: Fix minor typosluz.paz2018-03-3010-11/+11
|/ / / / | | | | | | | | Found via `codespell -q 3 -I ../numpy-whitelist.txt`
* | | | Merge pull request #10829 from rgommers/doc-pyverCharles Harris2018-03-301-1/+1
|\ \ \ \ | |/ / / |/| | | BLD: use Python 3.6 instead of 2.7 as default for doc build.
| * | | BLD: use Python 3.6 instead of 2.7 as default for doc build.Ralf Gommers2018-03-291-1/+1
| | | |
* | | | Merge pull request #10828 from rgommers/importwarning-bugCharles Harris2018-03-301-2/+2
|\ \ \ \ | |/ / / |/| | | BUG: fix obvious mistake in testing/decorators warning.
| * | | BUG: fix obvious mistake in testing/decorators warning.Ralf Gommers2018-03-291-2/+2
|/ / /
* | | Merge pull request #10812 from charris/rearrange-testing-filesCharles Harris2018-03-2913-13/+32
|\ \ \ | | | | | | | | MAINT: Rearrange `numpy/testing` files
| * | | MAINT: Warn when importing numpy.testing.<module>.Charles Harris2018-03-294-4/+18
| | | | | | | | | | | | | | | | | | | | Downstream projects were importing directly from the testing modules rather than from testing. Discourage this.
| * | | MAINT: Rearrange numpy/testing files.Charles Harris2018-03-2913-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to prepare for the switch to pytest. * Rename `numpy/testing/nose_tools` to `numpy/testing/_private`. * Redirect imports as needed. * Copy `_testutils.py` from scipy to `numpy/testing/_private`. * Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
* | | | Merge pull request #10619 from eric-wieser/fix-notmasked_contiguousMarten van Kerkwijk2018-03-273-28/+73
|\ \ \ \ | | | | | | | | | | BUG: np.ma.flatnotmasked_contiguous behaves differently on mask=nomask and mask=zeros
| * | | | BUG: Always return a list from np.ma.flatnotmasked_contiguousEric Wieser2018-03-253-17/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the input, this would return: * A single slice, if mask=nomask * A list of slices, if mask is an array * None, if mask is fully masked The documented return value is a list, and all downstream callers of this function end up having to correct for it not being one. This affects the result of np.ma.notmasked_contiguous, which also did not document these unusual return values.
| * | | | TST: simplify test of notmasked_contiguousEric Wieser2018-03-251-13/+22
| |/ / /
* | | | Merge pull request #10807 from pvanmulbregt/doc_devtoxCharles Harris2018-03-261-1/+1
|\ \ \ \ | | | | | | | | | | DOC: Update link to tox in development docs (#10806)
| * | | | DOC: Update link to tox in development docs (#10806)Paul van Mulbregt2018-03-261-1/+1
|/ / / /
* | | | Merge pull request #10795 from eric-wieser/einsum-output-spacesMarten van Kerkwijk2018-03-262-10/+28
|\ \ \ \ | | | | | | | | | | BUG: Allow spaces in output string of einsum
| * | | | BUG: Allow spaces in output string of einsumEric Wieser2018-03-252-10/+28
| |/ / / | | | | | | | | | | | | | | | | | | | | Also produce more useful error messages Fixes gh-10794
* | | | Merge pull request #10798 from jaimefrio/einsum_mappingEric Wieser2018-03-262-4/+9
|\ \ \ \ | | | | | | | | | | BUG: error checking before mapping of einsum axes.