summaryrefslogtreecommitdiff
path: root/numpy/f2py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "MAINT: `f2py` cleanup (#22885)"revert-22885-cleanCrackfortranRalf Gommers2023-01-221-15/+19
| | | | This reverts commit 6b5cd92675139511b4b24ddfe822e96b03700edb.
* MAINT: `f2py` cleanup (#22885)Rohit Goswami2023-01-161-19/+15
| | | | | | | Updates the free format handling of .f90 and other common extensions (through a minor re-write). Also removes an unused function. This disallows previously allowed (but highly unlikely to be present) code-paths, namely having fixed form F77 code in a fortran 90 file (with .f90). Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
* BUG: Use whole file for encoding checks with `charset_normalizer` [f2py] ↵Rohit Goswami2022-12-253-25/+43
| | | | | | | | | | | | | | | | | | | | | (#22872) * BUG: Use whole file for encoding checks [f2py] * DOC: Add a code comment Co-authored-by: melissawm <melissawm@gmail.com> * TST: Add a conditional unicode f2py test * MAINT: Add chardet as a test requirement * ENH: Cleanup and switch f2py to charset_normalizer * MAINT: Remove chardet for charset_normalizer * TST: Simplify UTF-8 encoding [f2py] Co-authored-by: melissawm <melissawm@gmail.com>
* TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-112-1/+7
|
* Merge pull request #22483 from mwtoews/maint-subprocessSebastian Berg2022-10-281-2/+1
|\ | | | | MAINT: change subprocess arguments from Python>=3.7
| * MAINT: change subprocess arguments from Python>=3.7Mike Taves2022-10-271-2/+1
| |
* | TST: Rename setup to setup_method in f2py utils (inherited into Tests)Sebastian Berg2022-10-272-2/+2
| |
* | TST,MAINT: Replace most `setup` with `setup_method` (also teardown)Sebastian Berg2022-10-271-2/+2
|/ | | | | | | | In some cases, the replacement is clearly not what is intended, in those (where setup was called explicitly), I mostly renamed `setup` to `_setup`. The `test_ccompile_opt` is a bit confusing, so left it right now (this will probably fail)
* Merge pull request #22385 from seberg/deprecate-out-of-bound-pyint-conversionMatti Picus2022-10-113-3/+3
|\ | | | | DEP: Deprecate conversion of out-of-bound Python integers
| * TST: Further test fixup for python integer conversion warningSebastian Berg2022-10-061-1/+1
| |
| * TST: Fixup tests for strict Python integer conversionsSebastian Berg2022-10-052-2/+2
| |
* | DOC: Add reference links and switch to PyCapsuleRohit Goswami2022-10-101-1/+1
| |
* | DOC: Replace CObject with Capsule consistentlyRohit Goswami2022-10-101-1/+1
| |
* | MAINT: Fix typos found by codespellDimitri Papadopoulos2022-10-071-1/+1
|/
* MAINT, Haiku defines neither __STDC_NO_THREADS__ nor __GLIBC__begasus2022-09-161-1/+1
|
* MAINT: fix an incorrect pointer type usage in f2pyRalf Gommers2022-08-311-3/+3
| | | | | | | | | | | | | | | | | | | | | This was giving many warnings like this one in the SciPy build: ``` scipy/special/_specfunmodule.c: In function 'complex_double_from_pyobj': scipy/special/_specfunmodule.c:198:47: warning: passing argument 1 of 'PyArray_DATA' from incompatible pointer type [-Wincompatible-pointer-types] 198 | (*v).r = ((npy_cdouble *)PyArray_DATA(arr))->real; | ^~~ | | | PyObject * {aka struct _object *} In file included from /home/rgommers/code/numpy/numpy/core/include/numpy/ndarrayobject.h:12, from /home/rgommers/code/numpy/numpy/core/include/numpy/arrayobject.h:5, from /home/rgommers/code/numpy/numpy/f2py/src/fortranobject.h:16, from scipy/special/_specfunmodule.c:22: /home/rgommers/code/numpy/numpy/core/include/numpy/ndarraytypes.h:1524:29: note: expected 'PyArrayObject *' {aka 'struct tagPyArrayObject *'} but argument is of type 'PyObject *' {aka 'struct _object *'} 1524 | PyArray_DATA(PyArrayObject *arr) | ~~~~~~~~~~~~~~~^~~ ``` Fixing pointer mismatches is important for Pyodide/Emscripten.
* Merge pull request #21890 from HaoZeke/fixSylcotRegressionCharles Harris2022-07-081-1/+1
|\ | | | | BUG: Fix KeyError in crackfortran operator support
| * BUG: Fix KeyError in crackfortran operator supportRohit Goswami2022-06-301-1/+1
| |
* | Merge pull request #21807 from HaoZeke/useFortranValueMelissa Weber Mendonça2022-07-024-4/+31
|\ \ | |/ |/|
| * TST: Ensure the f2py value attribute is handledRohit Goswami2022-06-212-0/+23
| |
| * ENH: Generate wrappers for scalars with valueRohit Goswami2022-06-212-4/+8
| |
* | TST: Tighten test_gen_pyf_stdout checkNamami Shanker2022-06-231-0/+1
| |
* | TST: Add f2py2e f2cmap flag testNamami Shanker2022-06-231-3/+23
|/
* MAINT: fix up use of `NPY_NO_DEPRECATED_API` usage in f2pyRalf Gommers2022-06-171-1/+3
| | | | | | | | | | | | | | | This was giving a lot of warnings like: numpy/f2py/src/fortranobject.h:9: warning: "NPY_NO_DEPRECATED_API" redefined when building SciPy. In general, this is generated code which is included in the build of other projects which may have already set this macro - so only set it if it is not yet set. The other change is to set it to the current numpy version, like is done everywhere else in numpy, rather than to a fixed 1.7 version. This will ensure that if new deprecations happen, f2py gets updated for them.
* TST: Ensure long_long in f2cmap worksRohit Goswami2022-06-103-0/+25
|
* BUG: Generate C typedefs for f2cmap typesRohit Goswami2022-06-102-0/+5
|
* Merge pull request #19388 from pearu/enh-f2py-character-supportMelissa Weber Mendonça2022-06-0619-345/+1693
|\ | | | | Co-authored-by: Rohit Goswami <rog32@hi.is>
| * MAINT,DOC: Fix doc fragments and testsRohit Goswami2022-06-051-1/+1
| |
| * TST: Fix build by changing call signatureRohit Goswami2022-06-051-1/+1
| |
| * ENH: Support character string arraysPearu Peterson2022-06-0519-345/+1693
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | ENH: complete the 'vars' list of a moduleDamien Caliste2022-06-053-2/+21
|/ | | | | | Add to the 'vars' list of a module missing subroutines or functions listed in the 'body' that have not been explicitely declared 'public' or 'private'.
* BUG: Fix a refactor leftover bugNamami Shanker2022-06-031-1/+1
|
* Merge pull request #21622 from HaoZeke/f2pySkipTestsCharles Harris2022-05-291-0/+5
|\ | | | | TST: Skip F2PY tests without Fortran compilers
| * TST: Handle compiler checks for PYFRohit Goswami2022-05-281-4/+9
| |
| * MAINT: Skip F2PY tests without Fortran compilersRohit Goswami2022-05-271-4/+4
| |
* | MAINT: Python <3.7 related cleanupsBrigitta Sipőcz2022-05-231-18/+13
| |
* | MAINT: Kill unused fileRohit Goswami2022-05-052-57/+3
|/ | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* TST: Kill buggy 32-bit testsRohit Goswami2022-04-302-0/+14
|
* BUG: Fix handling of skip-empty-wrappersRohit Goswami2022-04-302-3/+3
|
* Merge pull request #21407 from HaoZeke/gh20460fixRohit Goswami2022-04-302-2/+9
|\ | | | | MAINT: Reduce f2py verbiage for valid parameters
| * MAINT: Skip buggy windows testRohit Goswami2022-04-301-2/+2
| |
| * MAINT: Hoist f2py condition outside try-exceptRohit Goswami2022-04-301-8/+9
| | | | | | | | | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * MAINT: handle precision in selected_real_kindRohit Goswami2022-04-291-2/+6
| |
| * MAINT: Reduce f2py verbiage for valid parametersRohit Goswami2022-04-281-1/+3
| |
* | Merge pull request #21187 from HaoZeke/f2pyDeterminismRohit Goswami2022-04-292-0/+23
|\ \ | |/ |/| ENH: F2PY build output determinism
| * MAINT: Pick a better nameRohit Goswami2022-04-291-2/+2
| | | | | | | | | | | | Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com> Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * ENH: Switch to a negative flagRohit Goswami2022-03-211-16/+5
| | | | | | | | | | | | Also remove FutureWarning and update documentation Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
| * MAINT: Add a future warning for --empty-genRohit Goswami2022-03-211-0/+10
| |
| * ENH: Do not generate F90 wrappers for F77 inputsRohit Goswami2022-03-212-10/+19
| |
| * ENH: Add an emptygen option for f2pyRohit Goswami2022-03-121-0/+15
| |