summaryrefslogtreecommitdiff
path: root/numpy/tests/test_public_api.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Kill unused fileRohit Goswami2022-05-051-1/+0
| | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Merge pull request #20416 from ARCCA/armcompilerMatti Picus2021-12-241-0/+2
|\ | | | | ENH: Add ARM Compiler with ARM Performance Library support
| * Update test_public_api.pyThomas Green2021-12-021-0/+2
| |
* | ENH: Generate the docstrings of umath into a separated C headerSayed Adel2021-12-121-0/+1
|/ | | | | | | | To allow access to the docstring of ufunc via identifier #DOC_PLACE_OF_UFUNC, e.g. DOC_NUMPY_CORE_UMATH_ABSOLUTE. This patch is part of a series of steps aimed at replacing template sources and the umath python generator with C++ meta-programming.
* ENH: Add the linalg extension to the array_api submodule (#19980)Aaron Meurer2021-11-141-0/+1
|
* xfail `test_array_api_entry_point` on python-dbgMatthew2021-11-041-0/+9
|
* Use ep.load() instead of import_module() to get xpMatthew Barber2021-11-041-1/+1
| | | | Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
* Clearer test logicMatthew Barber2021-11-041-6/+13
|
* Make test compatible with Python >=3.10Matthew Barber2021-11-041-5/+11
|
* Test array_api entry point exists and points to numpy.array_apiMatthew Barber2021-11-041-0/+16
|
* DEP: Deprecate the `np.core.machar` moduleBas van Beek2021-10-261-1/+0
|
* Add new module numpy.f2py.symbolicPearu Peterson2021-09-011-0/+1
|
* Merge pull request #18585 from data-apis/array-apiCharles Harris2021-08-231-0/+1
|\ | | | | ENH: Implementation of the NEP 47 (adopting the array API standard)
| * Make sure array_api is included in the public API testsAaron Meurer2021-08-121-0/+1
| |
* | MAINT: Cleanup code after dropping Python 3.7.Charles Harris2021-08-161-16/+2
| |
* | Rm numpy.lib.npyio.mafromtxt.Ross Barnowski2021-08-051-1/+0
| |
* | Rm numpy.lib.npyio.ndfromtxt.Ross Barnowski2021-08-051-1/+0
|/
* API: Move `polynomial.polyutils` to the `PRIVATE_BUT_PRESENT_MODULES` listBas van Beek2021-03-161-1/+1
| | | | Aforementioned module was accidently marked as public
* API: Formally classify `np.lib.stride_tricks` as part of the public APIBas van Beek2021-03-151-1/+1
| | | | | | | | | With `as_strided`, and the newly introduced `sliding_window_view` function, there are currently 2 public objects that can: a. Only be imported from a private module b. Are publicly documented to-be imported from aforementioned module Both observations are problematic and in need of rectification. This commit therefore moves `np.lib.stride_tricks` to the `PUBLIC_MODULES` list.
* TST: Add `numpy.typing.mypy_plugin` to the list of public modulesBas van Beek2020-12-221-0/+1
|
* DOC: Doc for deprecate_with_doc (#17852)kumudlakara2020-12-171-1/+1
| | | | | | * Add doc for deprecate_with_doc Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com> Co-authored-by: Matti Picus <matti.picus@gmail.com>
* ENH: add support for fujitsu compiler to numpy. (#17792)Tomoki, Karatsu2020-12-031-0/+1
|
* Change string to f-stringJakob2020-10-231-1/+1
|
* Merge pull request #17344 from danbeibei/masterCharles Harris2020-10-091-0/+1
|\ | | | | ENH: Support for the NVIDIA HPC SDK nvfortran compiler
| * ENH: Add support for the NVIDIA HPC SDK fortran compilerDaniel Vanzo2020-09-221-0/+1
| |
* | Merge pull request #17223 from mattip/setuptools1Charles Harris2020-09-041-12/+0
|\ \ | | | | | | MAINT: use sysconfig not distutils.sysconfig where possible
| * | MAINT: use sysconfig not distutils.sysconfig where possiblemattip2020-09-021-12/+0
| | |
* | | MAINT, DOC: move informational files from numpy.doc.*.py to their *.rst ↵Matti Picus2020-09-021-11/+0
|/ / | | | | | | | | | | | | | | | | counterparts (#17222) * DOC: redistribute docstring-only content from numpy/doc * DOC: post-transition clean-up * DOC, MAINT: reskip doctests, fix a few easy ones
* | DEP: lib: Remove the deprecated financial functions. (#17067)Warren Weckesser2020-08-121-1/+0
|/ | | | | | | | | As explained in NEP 32, the financial functions are to be removed from version 1.20. They are now replaced with module level `__getattr__` to give a useful error message for those surprised by the `AttributeError`. This only works for Python 3.7+, but it is expected that by the 1.20 release Python 3.6 will not be supported.
* Fixed language styleErfan Nariman | Veneficus2020-06-231-3/+3
|
* Merge pull request #13516 from seiko2plus/core_improve_infa_buildMatti Picus2020-06-171-0/+1
|\ | | | | ENH: enable multi-platform SIMD compiler optimizations
| * ENH: [1/7] enable multi-platform SIMD compiler optimizationsSayed Adel2020-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement new distutils class `CCompilerOpt`, used for handling the CPU/hardware optimization, starting from parsing the command arguments, to managing the relationship between the CPU baseline and dispatch-able features, also generating the required C headers and ending with compiling the sources with proper compiler's flags. `CCompilerOpt` mainly used as a helper class for `CCompiler`, and doesn't provide any runtime detection for the CPU features, instead only focuses on the compiler side, but it generates abstract C headers that can be used later for the final runtime dispatching process.
* | Merge pull request #16558 from person142/typing-runtimeMatti Picus2020-06-171-1/+2
|\ \ | | | | | | ENH: make typing module available at runtime
| * | MAINT: make typing module available at runtimeJosh Wilson2020-06-091-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes https://github.com/numpy/numpy/issues/16550. This makes `np.typing.ArrayLike` and `np.typing.DtypeLike` available at runtime in addition to typing time. Some things to consider: - `ArrayLike` uses protocols, which are only in the standard library in 3.8+, but are backported in `typing_extensions`. This conditionally imports `Protocol` and sets `_SupportsArray` to `Any` at runtime if the module is not available to prevent NumPy from having a hard dependency on `typing_extensions`. Since e.g. mypy already includes `typing_extensions` as a dependency, anybody actually doing type checking will have it set correctly. - We are starting to hit the edges of "the fiction of the stubs". In particular, they could just cram everything into `__init__.pyi` and ignore the real structure of NumPy. But now that typing is available a runtime, we have to e.g. carefully import `ndarray` from `numpy` in the typing module and not from `..core.multiarray`, because otherwise mypy will think you are talking about a different ndarray. We will probably need to do some shuffling the stubs into more fitting locations to mitigate weirdness like this.
* | DEP: Deprecate aliases of builtin types in python 3.7+Eric Wieser2020-06-121-12/+16
|/ | | | | | | | This: * Makes accessing these attributes emit a deprecation warning * Removes them from `dir(numpy)`, so as not to emit warnings for user of `inspect.getmembers` These aliases are a continual source of confusion for beginners, and are still often used by accident by experts.
* DEP: Deprecate `numpy.dual`.Warren Weckesser2020-05-041-1/+1
| | | | | | Add a deprecation warning in the `numpy.dual` module, and remove the use of `numpy.dual` from the few places where it is used in the numpy code.
* BUG: add missing c_distributions.pxd, enables cython use of random C-API ↵Matti Picus2020-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gh-15463) xref gh-14778 As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them. Squashed commits: * BUG: add missing c_distributions.pxd to enable cython use of random C-API * ENH, TST: add npyrandom library like npymath, test cython use of it * BUG: actually prefix f-string with f * MAINT: fixes from review, add _bit_generato_bit_generator.pxd * STY: fixes from review * BLD: don't use nprandom library for mtrand legacy build * TST: WindowsPath cannot be used in subprocess's list2cmdline * MAINT, API: move _bit_generator to bit_generator * DOC: add release note about moving bit_generator * DOC, MAINT: fixes from review * MAINT: redo dtype determination from review
* MAINT: dir(numpy) returned duplicate "testing" (gh-15425)SanthoshBala182020-01-271-0/+6
| | | | | Modified __dir__() to remove duplicate "Tester/Testing" attribute. Also added a test to verify this. Closes gh-15383
* MAINT: Remove sys.version checks in testsSeth Troisi2020-01-151-3/+0
|
* Merge remote-tracking branch 'upstream/master' into ↵Eric Wieser2020-01-061-3/+0
|\ | | | | | | remove-numpy.distutils.compat
| * MAINT: Remove unused int_asbufferJon Dufresne2020-01-041-1/+0
| | | | | | | | | | | | | | On Python 3, int_asbuffer throws NotImplementedError and goes unused internally. Fixes #12425
| * 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.
* | MAINT: Delete numpy.distutils.compatEric Wieser2020-01-061-1/+0
|/ | | | `get_exception` has no callers as of this commit's parent, and is hard to argue as public API given the only docstring in the file refers to "inside distutils".
* MAINT: move numpy/random/examples -> numpy/random/_examplesmattip2019-11-191-1/+0
|
* API: restructure and document numpy.random C-API (#14604)Matti Picus2019-11-191-1/+2
| | | | | | | | | | | | | | | | * API: restructure and document numpy.random C-API * DOC: fix bad reference * API: ship, document, and start to test numpy.random C-API examples * API, DOC, TST: fix tests, refactor documentation to include snippets * BUILD: move public headers to numpy/core/include/numpy/random * TST: ignore DeprecationWarnings in setuptools and numba * DOC: document the C-API as used from Cython
* API: move bit_generator and generator to be privatemattip2019-10-111-2/+0
|
* API: make BitGenerators privatemattip2019-10-111-4/+0
|
* API: rename common, bounded_integers -> _common, _bounded_integers; cleanupmattip2019-10-111-2/+0
|
* MAINT: remove unused numpy/f2py/info.py fileRalf Gommers2019-09-221-1/+0
|
* DOC: clean up numpy.lib docstring, remove numpy/lib/info.pyRalf Gommers2019-09-221-1/+0
|