summaryrefslogtreecommitdiff
path: root/numpy/f2py/rules.py
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Generate wrappers for scalars with valueRohit Goswami2022-06-211-2/+2
|
* BUG: Generate C typedefs for f2cmap typesRohit Goswami2022-06-101-0/+3
|
* ENH: Support character string arraysPearu Peterson2022-06-051-61/+122
| | | | | | | | | | | | | | | | TST: added test for issue #18684 ENH: f2py opens files with correct encoding, fixes #635 TST: added test for issue #6308 TST: added test for issue #4519 TST: added test for issue #3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
* Merge pull request #21187 from HaoZeke/f2pyDeterminismRohit Goswami2022-04-291-0/+17
|\ | | | | ENH: F2PY build output determinism
| * ENH: Do not generate F90 wrappers for F77 inputsRohit Goswami2022-03-211-0/+17
| |
* | TST: Initialize f2py2e tests of the F2PY CLI (#20668)Rohit Goswami2022-04-011-3/+3
| | | | | | | | | | Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly numpy.distutils stuff. More importantly, sets the groundwork for #20056, in that passing the same testsuite should indicate feature parity.
* | MAINT: Use npy_os in f2pyRohit Goswami2022-03-061-0/+1
| |
* | MAINT: Restructure includes slightlyRohit Goswami2022-03-061-0/+3
|/
* MAINT: Fix LGTM.com warning: Implicit string concatenation in a listDimitri Papadopoulos2021-10-061-1/+1
| | | | Implicit string concatenation. Maybe missing a comma?
* Merge pull request #19997 from HaoZeke/f2py_tabsCharles Harris2021-10-041-252/+252
|\ | | | | STY: Harmonize rules with cb_rules for f2py
| * MAINT: Reviewer commentsRohit Goswami2021-09-301-1/+1
| | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * STY: Kill all \t with fire in f2pyRohit Goswami2021-09-291-253/+253
| |
| * STY: Harmonize rules with cb_rules for f2pyRohit Goswami2021-09-291-253/+253
| |
* | MAINT: Reduce DepreciationWarnings, use more data API types for f2py (#19978)Rohit Goswami2021-09-291-0/+4
|/ | | | | | | * MAINT: More data type API for f2py * MAINT: Less DeprecationWarnings for f2py * MAINT: Fix casts for complex arrays in f2py
* Fix lint - 2Pearu Peterson2021-06-151-1/+2
|
* Fix lintPearu Peterson2021-06-151-9/+19
|
* BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc ↵Pearu Peterson2021-06-151-9/+20
| | | | and copy (the second round)
* Revert "BUG: revise string_from_pyobj/try_pyarr_from_string with respect to ↵Ralf Gommers2021-06-131-4/+2
| | | | malloc and copy." (#19235)
* Update numpy/f2py/rules.pyPearu Peterson2021-05-261-1/+1
| | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Fix lintPearu Peterson2021-05-261-1/+2
|
* MAINT: apply sizeof(char)==1Pearu Peterson2021-05-261-1/+1
|
* BUG: revise string_from_pyobj/try_pyarr_from_string usages, fixes #18431.Pearu Peterson2021-05-101-1/+2
|
* ENH: Support parsing Fortran abstract interface blocks.Pearu Peterson2021-03-311-1/+1
|
* [MAINT] Fix regression in using --capi-api flag and callbacksPearu Peterson2021-02-071-1/+1
|
* Apply reviewer comments.Pearu Peterson2021-01-191-4/+2
|
* Add test for gh17797.Pearu Peterson2021-01-181-3/+10
|
* BUG: subroutines using assumed shape arrays must be treated as F90 codes. ↵Pearu Peterson2021-01-181-2/+6
| | | | Don't split inline comments.
* MAINT: Use numpy version for f2py version.Charles Harris2020-08-221-9/+6
| | | | | | Because f2py is released as part of numpy, the old svn versioning no longer makes sense and it was decided to use the numpy version instead.
* MAINT: Remove uses of PyString_FromString.Charles Harris2020-08-191-1/+1
| | | | | | | | We no longer need to use the compatibility function after dropping support for Python 2.7. In some cases unicode was the correct string type rather than the bytes of the compatibility version and bugs in the array `__complex__` and array `__array_interface__` methods have been fixed by changing that.
* add __f2py_numpy_version__ attributeSturla Molden2020-06-171-0/+6
|
* BUG: numpy/f2py: put callback globals to thread-local storagePauli Virtanen2020-06-071-26/+19
|
* STY: f2py/rules: replace \t with whitespace for readabilityPauli Virtanen2020-06-071-37/+37
|
* MNT: support python 3.10Thomas A Caswell2020-05-291-1/+1
| | | | | | | | | | | | In https://github.com/python/cpython/pull/20290 CPython changed `Py_TYPE` from a macro to an inline function. This requires a code change to us `Py_SET_TYPE` instead when using `Py_TYPE()` as a lvalue in c code. In https://github.com/python/cpython/pull/20429 CPython changed `Py_SIZE` from a macro to an inline function. This requires a code change to us `Py_SET_SIZE` instead of using `Py_SIZE` as a lvalue in c code.
* MAINT: remove useless `global` statementsEric Wieser2020-03-181-1/+0
| | | | | | | `global` is only needed if a variable appears on the left of an assignment. These variables do not. Most suffer from the misconception that `var[x] = y` requires `var` to be global, but it does not.
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: Revert f2py Python 2.6 workaround (gh-15415)Seth Troisi2020-01-231-11/+1
| | | Revert ed916ff#diff-c9eccf467e5f6561061d6a5ac4730330 which was needed to workaround http://bugs.python.org/issue4720 which was fixed 12 years ago.
* Merge pull request #15232 from sethtroisi/remove_python3_part3Matti Picus2020-01-041-18/+0
|\ | | | | MAINT: Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEX
| * Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEXSeth Troisi2020-01-031-18/+0
| |
* | Merge pull request #14376 from jdufresne/futureSebastian Berg2020-01-031-2/+0
|\ \ | |/ |/| MAINT: Remove unnecessary 'from __future__ import ...' statements
| * 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: Remove Python2 specific C module setup (gh-15231)Seth Troisi2020-01-031-8/+2
|/ | | | | Dropping the support for python 2, the difference in module setup do not have to be accounted for anymore. This removes the macros and ifdef's related to module setup code and python 2 support.
* ENH: Chain exceptions when converting python objects to fortranEric Wieser2019-12-021-4/+8
| | | | | | 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.
* BUG: Further, followup f2py reference count fixesSebastian Berg2019-08-191-2/+7
| | | | | | | | 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-191-8/+20
|
* BUG: Fix leak in the f2py-generated module init and `PyMem_Del` usageSergei Lebedev2019-08-191-3/+6
| | | | | | 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)
* Fixed possible regressionsBharat123rox2019-05-081-2/+2
|
* Use with statement to open/close files to fix LGTM alertsBharat123rox2019-05-071-55/+50
|
* HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-161-1/+1
|
* MAINT: remove outdated entries in f2pyBernhard M. Wiedemann2017-09-271-3/+0
| | | | because svn is not used anymore
* ENH: Allow to override build dateBernhard M. Wiedemann2017-09-271-1/+2
| | | | | | | | and use gmtime in order to be independent of timezone in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.