summaryrefslogtreecommitdiff
path: root/numpy/f2py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #18415 from pearu/gh-2763Matti Picus2021-02-151-2/+1
|\ \ | | | | | | MAINT: Update END statements parsing for recent Fortran standards.
| * | MAINT: Update END statement parsing for recent Fortran standards. Closes #2763Pearu Peterson2021-02-151-2/+1
| |/
* | BUG: Fix parsing continued lines that follow comment lines. Closes #2848Pearu Peterson2021-02-152-3/+41
|/
* BUG: fix regression in a hidden callback use casePearu Peterson2021-02-095-25/+54
|
* MAINT: Debug issue (2)Pearu Peterson2021-02-093-2/+10
|
* MAINT: Debug issue #18341Pearu Peterson2021-02-093-3/+20
|
* ENH: Share memory of read-only intent(in) arrays. Closes #16347Pearu Peterson2021-02-072-2/+15
|
* [MAINT] Fix regression in using --capi-api flag and callbacksPearu Peterson2021-02-071-1/+1
|
* BUG: Fix missing signed_char dependency. Closes #18335.Pearu Peterson2021-02-072-0/+41
|
* MAINT: Add missing `__all__` annotationsBas van Beek2021-02-011-1/+3
|
* Merge pull request #18184 from pearu/17797Charles Harris2021-01-195-10/+57
|\ | | | | BUG: Fix f2py bugs when wrapping F90 subroutines.
| * Applied reviewers comments: add identPearu Peterson2021-01-191-9/+10
| |
| * Apply reviewer comments.Pearu Peterson2021-01-192-6/+4
| |
| * Apply reviewers comments.Pearu Peterson2021-01-192-12/+12
| |
| * Add test for gh17797.Pearu Peterson2021-01-184-6/+47
| |
| * BUG: f2py specific __user__ modules should not be used in Fortran sources to ↵Pearu Peterson2021-01-181-3/+6
| | | | | | | | be compiled. Closes #17797.
| * BUG: subroutines using assumed shape arrays must be treated as F90 codes. ↵Pearu Peterson2021-01-181-2/+6
| | | | | | | | Don't split inline comments.
* | BUG: threads.h existence test requires GLIBC > 2.12. (#18180)Pearu Peterson2021-01-191-1/+6
|/ | | | | * defined(__STDC_NO_THREADS__) can be trusted only when using glibc > 2.12 * Add __GLIBC__ defined check.
* ENH: [f2py] Add external attribute support. Closes #17859Pearu Peterson2021-01-172-0/+33
|
* DEP: Deprecate `data_type.dtype` if attribute is not already a dtype (#13578)Sebastian Berg2021-01-061-42/+42
| | | | | | * DEP: Deprecate `data_type.dtype` if attribute is not already a dtype After the deprecation, a recursive lookup for `.dtype` will not be possible, since `.dtype` has to be a dtype instance.
* MAINT: multiline regex class simplifyTyler Reddy2020-12-293-10/+10
| | | | | | * follow up to gh-18083 covering multi-line uses of `re.compile(..` and some cases for `re.match(..` with single (meta)character classes
* MAINT: regex char class improveTyler Reddy2020-12-282-7/+7
| | | | | | | | | | | | | * replace superfluous single-character regex character classes with their literal string equivalents; this avoids the overhead associated with a character class when there's only a single character enclosed (so there's no benefit to the class overhead) * for more information see: Chapter 6 of: Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O’Reilly Media, 2009.
* Merge pull request #18074 from tylerjereddy/treddy_exprtype_regex_simplifyCharles Harris2020-12-261-3/+3
|\ | | | | MAINT: exprtype regex simplify
| * MAINT: exprtype regex simplifyTyler Reddy2020-12-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * `determineexprtype_re_1` was modified to remove extraneous character class markers around a single `,` * a similar change was applied for the word metacharacter in `determineexprtype_re_2` and `determineexprtype_re_3` * the third character class in `determineexprtype_re_3` was simplified to remove an escape sequence--by placing the `-` at the start of the character class its metacharacter status can be avoided
* | MAINT: PR 18072 revisionsTyler Reddy2020-12-261-1/+1
| | | | | | | | | | | | * `name_match` regular expression now starts by matching a letter only, based on reviewer feedback
* | MAINT: crackfortran regex simplifyTyler Reddy2020-12-251-2/+2
|/ | | | | | | | | | | * remove extraneous character class markers used in `crackline_re_1`: `\w` and `=` on their own have no benefit to character class `[]` inclusion * `name_match` has a character class that can be simplified because `\w` metacharacter already encompasses the digit metacharacter and the underscore
* Merge pull request #17122 from charris/cleanup-f2py-versioningRalf Gommers2020-11-285-33/+15
|\ | | | | MAINT: Use numpy version for f2py version.
| * MAINT: Use numpy version for f2py version.Charles Harris2020-08-225-33/+15
| | | | | | | | | | | | 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.
* | Merge pull request #16205 from embray/issue/12756Charles Harris2020-11-231-14/+23
|\ \ | | | | | | ENH: Add ``full_output`` argument to ``f2py.compile``.
| * | defaults for stdout and stderr should be bytesE. Madison Bray2020-05-131-3/+4
| | | | | | | | | | | | only print stdout if no OSError exception was raised
| * | ENH: add full_output to f2py.compileE. Madison Bray2020-05-111-14/+22
| | | | | | | | | | | | | | | fixes #12756 by providing a straightforward way to return the stdout/stderr from compiling the FORTRAN module to the caller
* | | BLD: Lazy load f2py test utilitiesDustin Spicuzza2020-11-121-4/+30
| | | | | | | | | | | | | | | | | | | | | These are only used during testing. It's fine to load it while running the test because actually running the test can't be done while cross compiling. Part of changes to support #17620 to prevent importing numpy during builds to support cross-compilation
* | | Revert PR gh-17654 which failed to fix issue gh-8062.Ian Thomas2020-11-052-31/+0
| | | | | | | | | | | | See also PR gh-17687.
* | | BUG: Fixed an issue where `.pyi` weren't picked up by numpy sub-packagesBas van Beek2020-11-031-0/+1
| | |
* | | Merge pull request #17611 from mbkumar/f2py_dylib_macRalf Gommers2020-11-011-1/+1
|\ \ \ | | | | | | | | BUG: mac dylib treated as part of extra objects by f2py
| * | | BUG: mac dylib treated as extra library by f2pyBharat Medasani2020-10-221-1/+1
| | | |
* | | | Merge pull request #17670 from eric-wieser/test-getarrlenRalf Gommers2020-11-011-0/+31
|\ \ \ \ | | | | | | | | | | DOC: f2py: Add a docstring for getarrlen
| * | | | DOC: f2py: Add a docstring for getarrlenEric Wieser2020-10-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | The API of this function is awful, and I still have no idea what it does. Maybe someone reading the docstring will be able to work it out.
* | | | | Merge pull request #17668 from nforro/masterMatti Picus2020-10-291-2/+0
|\ \ \ \ \ | | | | | | | | | | | | TST: Make test suite work in FIPS (140-2) Mode
| * | | | | TST: Make test suite work in FIPS (140-2) ModeNikola Forró2020-10-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests using MD5 algorithms fail in FIPS Mode because MD5 is not FIPS compliant. Replace MD5 with SHA256 to overcome that. Signed-off-by: Nikola Forró <nforro@redhat.com>
* | | | | | Merge pull request #17662 from eric-wieser/test-getlincoefMatti Picus2020-10-291-1/+22
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / TST: f2py: Add a doctest for `getlincoef`
| * | | | TST: f2py: Add a doctest for `getlincoef`Eric Wieser2020-10-281-1/+22
| |/ / /
* | | | BUG: f2py incorrectly translates dimension declarations.Ian Thomas2020-10-272-0/+31
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In fortran functions passed to f2py, calculations that occur in the dimensions of array declarations are interpreted as floats. Valid fortran requires integers. Problem only occurs with fortran functions not subroutines as only for the former does f2py generate fortran wrapper code that fails to compile. Relevant code is in numpy.f2py.crackfortran.getlincoef(), which calculates and returns the coefficients to getarrlen() for writing to the fortran wrapper code. Fixes gh-8062.
* | | MAINT: Explicit disabling `CCompilerOpt` in F2PYSayed Adel2020-10-131-1/+3
| | | | | | | | | | | | This patch also cleans up `CCompilerOpt` calls in build_ext and build_clib.
* | | Added textwrap.dedent to test.MelissaWM2020-09-261-2/+10
| | |
* | | Removing extra comment.MelissaWM2020-09-261-1/+1
| | |
* | | Adding PR review comment.MelissaWM2020-09-241-0/+1
| | |
* | | Fixing tests for pypy and win.MelissaWM2020-09-241-2/+8
| | |
* | | BUG: Fixes module data docstrings.MelissaWM2020-09-245-3/+33
| | | | | | | | | | | | Fixes gh-15325
* | | MAINT: Cleanup f2py/cfuncs.pyCharles Harris2020-09-211-86/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace npy_3kcompat macro PyInt_AsLong by appropriate definition - Replace npy_3kcompat macro PyInt_AS_LONG by appropriate definition. - Reformat code for readability. The code in extensively reformated in this PR which may hide the most important parts of the diff, but I needed to do it to make the code readable.