summaryrefslogtreecommitdiff
path: root/runtests.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22493 from mwtoews/maint-openSebastian Berg2023-04-281-3/+3
|\ | | | | MAINT: remove redundant open() modes and io.open() alias
| * MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-291-3/+3
| |
* | CI: Rebase numpy DLLs in runtests.py.DWesl2023-01-301-0/+11
|/ | | | | This assumes NumPy is rebased before tests run, but does not assume the locations are in the database.
* BUG: refguide-check: respect the verbosityEvgeni Burovski2022-05-221-0/+2
| | | | | | $ python runtests.py -s numpy.lib.recfunctions --refguide-check -v Previously, the `-v` switch was silently ignored.
* DEV: fix `python runtests.py --bench-compare`Ralf Gommers2022-02-181-2/+3
| | | | | | | [skip azurepipelines] [skip travis] Closes gh-20355
* MAINT: Fix runtests.py overridingabatomunkuev2021-11-021-2/+8
|
* TST: Make this sysconfig handling a bit more portableKevin Modzelewski2021-09-171-11/+6
| | | | | | | | In particular this supports Pyston, which has an additional format field in these path schemes. Instead of manually specifying which fields we think exist, do what I assume is the intention of using the default field values for everything except for the few that we want to override.
* MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-1/+1
|
* TST,BUG: Sanitize path-separators when running `runtest.py`Bas van Beek2021-08-131-2/+6
|
* BUG: add base to templated arguments for platlibmattip2021-08-121-0/+1
|
* TST: avoid distutils.sysconfig in runtests.py (#19628)Matti Picus2021-08-111-3/+13
| | | | | | | * TST: avoid distutils.sysconfig in runtests.py * fix for platlibdir (new in python3.9) * linting
* DOC: add an extra example in runtests.py help testRalf Gommers2021-05-091-0/+4
| | | | | | | This was a little confusing in the sprint. To verify, look at the output of `python runtests.py --help` [ci skip]
* MAINT: make runtests.py argument list help strings end with spaceChristopher Dahlin2021-04-191-10/+10
|
* MAINT: make runtests.py argument list fulfill E501Christopher Dahlin2021-04-191-16/+24
|
* MAINT: make runtests.py help texts sentence caseChristopher Dahlin2021-04-191-6/+6
|
* MAINT: clarify runtests.py verbosity help textChristopher Dahlin2021-04-191-1/+1
|
* MAINT: Replaced master with mainGanesh Kathiresan2021-03-071-2/+2
|
* ENH, MAINT: Added runtest options | Added unified diffGanesh Kathiresan2021-03-071-0/+31
|
* Merge pull request #17736 from seiko2plus/issue_17716Matti Picus2020-12-161-0/+1
|\ | | | | BUG, Benchmark: fix passing optimization build options to asv
| * BUG, Benchmark: fix passing optimization build options to asvSayed Adel2020-11-091-0/+1
| |
* | TST: Fix passing build options when `--debug-info` is enabledSayed Adel2020-12-081-3/+3
|/
* ENH: Expose the NumPy C SIMD vectorization interface "NPYV" to PythonSayed Adel2020-10-271-0/+5
| | | | | | | | | | | | | | | | '_simd' is a new module to bring the NumPy C SIMD vectorization interface "NPYV" The module is designed to be extremely flexible so that it can accommodate any kind intrinsics, also to generate a python interface almost similar to the C interface. The main purpose of this module is to test NPYV intrinsics in python, but still can be used as an effective solution in designing SIMD kernels. Also add a new command-line argument `--simd-test` to control of targeted CPU features for the `_simd` module. Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* ENH: Pass optimizations arguments to asv buildSayed Adel2020-09-111-3/+102
| | | | | This patch allows passing `-j`, `--cpu-baseline`, `--cpu-dispatch` and `--disable-optimization` to ASV build when argument `--bench-compare` is used.
* TST: Fix the path to `mypy.ini`Bas van Beek2020-09-071-1/+2
|
* MAINT: use sysconfig not distutils.sysconfig where possiblemattip2020-09-021-3/+3
|
* ENH: allow running mypy through runtests.pyJosh Wilson2020-08-201-1/+32
| | | | | | | | | | | | | | Currently running mypy with the NumPy stubs configured requires either: - Installing NumPy - Adding the source directory to MYPYPATH and linking to the mypy.ini Both options are somewhat inconvenient, so add a `--mypy` option to runtests that handles setting things up for you. This will also be useful in the future for any typing codegen since it will ensure the project is built before type checking.
* ENH: enable colors for `runtests.py --ipython`Josh Wilson2020-07-261-1/+1
| | | | Currently the IPython shell from runtests has no colors; enable them.
* Revert "MAINT: setuptools 49.2.0 emits a warning, avoid it"mattip2020-07-141-3/+0
|
* MAINT: one more place where distutils is importedmattip2020-07-131-0/+3
|
* ENH: [3/7] enable multi-platform SIMD compiler optimizationsSayed Adel2020-06-151-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Put `CCompilerOpt` in action through add two command line arguments that passed directly to `CCompilerOpt`'s parameters which explained as follows: * `--cpu-baseline` minimal set of required optimizations, default is 'min' which provides the minimum CPU features that can safely run on a wide range of users platforms. * `--cpu-dispatch` dispatched set of additional optimizations, default is 'max-xop-fma4' which enables all CPU features, except for AMD legacy features. the new arguments can be reached from `build`, `build_clib`, `build_ext`, if `build_clib` or `build_ext` are not specified by the user the arguments of `build` will be used, which also hold the default values. - Activate the new compiler dispatcher that comes with `CCompilerOpt`, through adding a hock inside `build_clib` and `build_ext` that works as a filter taking any C source files ends with `.dispatch.c` and pass it directly to `CCompilerOpt` and then take returned objects and linked to the final C lib. - Add a third command-line argument `--disable-optimization` which explicitly disable the whole new infrastructure, also It adds a new compiler definition called `NPY_DISABLE_OPTIMIZATION`. when `--disable-optimization` is enabled the dispatch-able sources that end with `.dispatch.c` will be treated as a normal C sources, also due to this disabling any C headers that generated by `CCompilerOpt` must guard it with `NPY_DISABLE_OPTIMIZATION`, otherwise, it will definitely break the build. - New auto-generated C header located at `core/include/numpy/_cpu_dispatch.h`, the new header contains all definitions and headers of CPU features that enabled according to specified configuration in `--cpu-baseline` and `--cpu-dispatch`.
* DEV: Pass additional runtests.py args to ASVSayed Adel2020-05-031-6/+16
| | | | | | | | | | | | | Since arguments list benchmarks, all arguments after the first unknown `--` starting (removing a single first `--`) are passed on to asv. Previously this was the right pattern for passing to pytest, so it now works also for ASV. Examples: `runtests.py` `--bench-compare master sin --cpu-affinity 1` `--bench-compare master -- --cpu-affinity 1` `--bench sin --cpu-affinity 1` `--bench -- --cpu-affinity 1`
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+0
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-21/+2
|
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUILD: change to build_src --verbose-cfg, runtests.py --debug-infomattip2019-10-031-4/+4
|
* Merge pull request #14572 from seberg/runtests-helpCharles Harris2019-09-221-0/+4
|\ | | | | DOC: Note runtests.py `-- -s` method to use pytests `-s`
| * DOC: Note runtests.py `-- -s` method to use pytests `-s`Sebastian Berg2019-09-211-0/+4
| | | | | | | | | | | | | | | | The `-s` option allows disabling the printing capture, which can be useful during debugging, and thus should be a bit more discoverable. Replaces/closes gh-12829
* | BUILD: add warn-error option to turn compiler warnings into errors (-Werror)mattip2019-09-201-0/+4
| |
* | DOC: improve help stringmattip2019-09-201-1/+3
| |
* | MAINT: move the option to build_src, simplifies logicmattip2019-09-201-2/+2
| |
* | BUILD: fix runtests.py option, fix previous changesetmattip2019-09-201-2/+2
| |
* | BUILD: add --debug-configure option to reduce output, use logger moremattip2019-09-201-0/+4
|/
* DEV: cleanup imports and some assignments (from LGTM)mattip2019-03-171-2/+0
|
* TEST: allow margin of error, increase discoverability of refcheck optionmattip2019-03-061-1/+1
|
* BLD: move -std=c99 from runtests.py to Azure configRalf Gommers2019-01-061-2/+0
| | | | See gh-12610 for details.
* TST: Update runtests.py to specify C99 for gcc.Charles Harris2018-12-251-1/+2
| | | | | Prefix `-std=c99` to the CFLAGS environmental variable. C99 is the standard for NumPy >= 1.17.
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-2/+10
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* BUG: compiler used is env['CC'], then config_vars['CC']mattip2018-08-101-2/+3
|
* Merge pull request #11566 from danielballan/skip-gcc-warnings-on-clangRalf Gommers2018-07-231-12/+14
|\ | | | | BLD: Do not use gcc warnings flags when 'gcc' is actually clang.