summaryrefslogtreecommitdiff
path: root/numpy/f2py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #15035 from mattip/issue-14625Sebastian Berg2019-12-093-2/+43
|\ | | | | | | Test, fix for missing end words in fortran subroutines and functions. Fixes gh-14625
| * MAINT: fixes from reviewmattip2019-12-031-3/+4
| |
| * DOC: fix outstanding typo in NumPy versionmattip2019-12-031-1/+1
| |
| * BUG: add endfunction, endsubroutine to valid fortran end wordsmattip2019-12-032-1/+41
| |
* | ENH: Chain exceptions when converting python objects to fortranEric Wieser2019-12-022-28/+9
| | | | | | | | | | | | Note that since we now need `npy_3kcompat.h`, we can delete all duplicated lines in this file We preserve the original exception type for compatibility with old code here.
* | ENH: Show the incorrect type in the fortran error messageEric Wieser2019-12-011-3/+4
|/ | | | | | I just got this error while hacking some scipy internals, and had nowhere near enough information to debug it. This is a little closer to useful.
* Merge pull request #12633 from seberg/f2py-refcntMatti Picus2019-10-158-98/+179
|\ | | | | BUG: General fixes to f2py reference counts (dereferencing)
| * BUG: Further, followup f2py reference count fixesSebastian Berg2019-08-195-16/+53
| | | | | | | | | | | | | | | | Note that the extension module dict seems to be never dereferenced (there is an additional reference to it kept around somewhere). This reference seems to part of the C python module loading (possibly intentionally), and I could not find how to remove it or where it originates from.
| * BUG: General fixes to f2py reference counts (dereferencing)Sebastian Berg2019-08-195-82/+126
| |
* | MAINT: Avoid all BytesWarningJon Dufresne2019-09-251-0/+1
| | | | | | | | | | | | | | | | A BytesWarning can be emitted when bytes are and strings are mismatched. Catching BytesWarning ensures a better boundary between str and bytes type. The test suite is now run with the -b flag to emit this warning. Fixes #9308
* | MAINT: remove unused numpy/f2py/info.py fileRalf Gommers2019-09-221-6/+0
|/
* BUG: Fix leak in the f2py-generated module init and `PyMem_Del` usageSergei Lebedev2019-08-192-5/+11
| | | | | | Using `PyMem_Del` is incorrect, it should be `PyObject_Del` here, while this worked most of the time, it would lead to crashes at least on python 2.5 (after the reference counts were fixed)
* DOC: update or remove outdated sourceforge linksmattip2019-08-081-1/+1
|
* Doc: Use `pip install .` where possible instead of calling setup.pyMatthias Bussonnier2019-07-231-1/+1
| | | | pip will itself call setup.py install with the rights options.
* Merge pull request #13499 from Bharat123rox/file-closingEric Wieser2019-05-122-58/+53
|\ | | | | MAINT: Use with statement to open/close files to fix LGTM alerts
| * Add code review suggestions from @eric-wieserBharat123rox2019-05-081-2/+3
| |
| * Fixed possible regressionsBharat123rox2019-05-081-2/+2
| |
| * Use with statement to open/close files to fix LGTM alertsBharat123rox2019-05-072-60/+54
| |
* | BUG: blindly add TypeError to accepted exceptionsmattip2019-04-301-1/+1
|/
* TEST: update for PyPymattip2019-04-171-1/+2
|
* MAINT: Use textwrap.dedent in f2py testsEric Wieser2019-04-103-43/+42
| | | | Don't touch the fortran files, since indentation is signficant there and it makes things more error-prone
* MAINT: f2py: Add a cast to avoid a compiler warning.Warren Weckesser2019-04-051-1/+1
| | | | | | | | | | | | | The warning [...]/fortranobject.c:138:18: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare] if (size < sizeof(notalloc)) { ~~~~ ^ ~~~~~~~~~~~~~~~~ occurs 17 times when scipy is built. The change in this pull request casts `size` to `size_t` before comparing it to `sizeof(...)`. A previous check has already eliminated the possibility that `size` is negative, so this cast is safe.
* BUG: ppc and riscv don't use REAL(10)Andreas Schwab2019-03-051-1/+1
| | | | This fixes numpy.f2py.tests.test_kind.TestKind
* BUG: Fix testing of f2py.compile from strings.Charles Harris2019-01-202-14/+17
| | | | | | | The test should not be run if there is no Fortran compiler. This PR moves it to `numpy/f2py/tests/test_compile_function.py`, which is appropriate for the test and a place where the presence of the needed compilers is already checked for.
* Merge pull request #12807 from mattip/f2py-source-bytesCharles Harris2019-01-203-5/+52
|\ | | | | BUG, DOC: test, fix that f2py.compile accepts str and bytes, rework docs
| * BUG, DOC: test, fix that f2py.compile accepts str and bytes, rework docsmattip2019-01-203-5/+52
| |
* | BUG: Add 'sparc' to platforms implementing 16 byte reals.Charles Harris2019-01-051-1/+1
| | | | | | | | | | This is for the _selected_real_kind_func function in f2py/crackfortran.py
* | BUG: fix f2py pep338 execution methodJulian Taylor2018-12-171-1/+1
|/ | | | Closes gh-12576
* MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-065-10/+1
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* MAINT: Use list and dict comprehension when possible (#12445)Roman Yurchak2018-12-012-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use list comprehension * More list comprehension migration * Revert key copying in dict * A few more fixes * More reverts * Use dict comprehension * Fix dict comprehension * Address review comments * More review comments * Fix for empty unpacking of zip(* * Revert zip(* unpacking altogether * Fix dict copying * More simplifications
* MAINT, TST: check for unreachable code pathsTyler Reddy2018-11-021-4/+1
| | | | | | | * use vulture to check for unreachable Python code paths in Azure CI * fix up an unreachable path in f2py/capi_maps.py
* MAINT: removed unused vars in f2py test codeTyler Reddy2018-10-291-2/+0
|
* TST, MAINT: Skip some f2py tests on Mac.Charles Harris2018-10-072-4/+15
| | | | | | There is a not yet understood problem in testing f2py C modules (*.pyf) files on the Mac that manifests as erratic module import failures.' This disables those tests until we can figure out what the problem is.
* MAINT: remove unused stdlib importsEmil Hessman2018-09-301-4/+0
|
* MAINT: don't call function with too many argumentsEmil Hessman2018-09-301-2/+2
|
* TST: add macos azure testing to CI.Tyler Reddy2018-09-281-0/+7
|
* MAINT: remove duplicate importsmattip2018-09-261-2/+0
|
* Merge pull request #11894 from QuLogic/f2py-test-parametrizeCharles Harris2018-09-227-47/+48
|\ | | | | TST: Parametrize f2py tests.
| * TST: Use fixture around f2py shared memory tests.Elliott Sales de Andrade2018-09-061-11/+9
| | | | | | | | | | This allows to parametrize the entire class without having to do any trickery with eval.
| * TST: Parametrize f2py tests.Elliott Sales de Andrade2018-09-066-36/+39
| |
* | Merge pull request #12014 from tylerjereddy/issue_12013_pytest_skipCharles Harris2018-09-212-7/+8
|\ \ | | | | | | TST: prefer pytest.skip() over SkipTest
| * | BUG: Fix missing pytest import.Charles Harris2018-09-211-0/+1
| | | | | | | | | `test_array_from_pyobj.py` needs to import pytest.
| * | TST: prefer pytest.skip() over SkipTestTyler Reddy2018-09-212-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace most usage of SkipTest() with pytest.skip() * where possible, we avoid use of the standard library SkipTest because unittest skipping is routed through the pytest nose compatibility layer in that scenario, which can prevent an easy trace back to the test line where the skip occurred
* | | BUG: Fix f2py test_compile_function.py tests.Charles Harris2018-09-211-74/+61
| | | | | | | | | | | | | | | | | | The tests were failing on platforms without a fortran compiler as that was not being checked for. Add that check among others and clean up the test functions a bit.
* | | TST, MAINT: Separate f2py compile function testing into own fileCharles Harris2018-09-202-105/+125
|/ / | | | | | | | | | | | | Create new file `test_compile_function.py` for the test, transferring the content from `test_quoted_characters.py` where it was before. The tricky part here is maintaining the history in both files after the move.
* | MAINT: remove exec_command() from f2py initTyler Reddy2018-09-182-11/+152
|/ | | | | * replaced the usage of exec_command() in the f2py init with standard library equivalent
* ENH: Use entry_points to install the f2py scripts.Charles Harris2018-08-233-74/+25
| | | | | | | | | | | | | | | | | | | | | This adds entry_points for the f2py scripts. The installed scripts differ between Windows and other environments. * On Windows, the only script installed is 'f2py'. This works well in that environment because each Python version is installed in its own directory, making it easy to keep the differing script versions separate. * Otherwise, three scripts are installed, 'f2py', 'f2py' + 'minor', and 'f2py' + 'major.minor'. For instance, if Numpy is installed by Python 2.7, then the installed scripts will be named 'f2py', 'f2py2', and 'f2py2.7'. That naming scheme is used for back compatibility, and also so that more than one Python version can be dealt with in a way common to many Linux distros. Note that 'f2py' will always point to the latest install and 'f2py(2|3)' to the latest Python (2|3) install The script tests have been modified to check for the new environment and the code previously used to install the scripts has been removed.
* Fix Fortran kind detection for aarch64 & s390x.Elliott Sales de Andrade2018-08-121-1/+1
|
* MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-1/+1
| | | | | | | | unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457
* HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-161-1/+1
|