summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* | | MAINT: Use SHA-256 instead of SHA-1Nikola Forró2021-09-161-5/+5
|/ / | | | | | | | | | | | | | | | | While the use of SHA-1 here hardly poses any risks, its use will eventually be prohibited globally in FIPS-compliant operating systems such as RHEL, and I don't see any downsides in moving away from using it. Signed-off-by: Nikola Forró <nforro@redhat.com>
* | MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-6/+0
| |
* | MAINT: Replace deprecated unittest aliasesHugo van Kemenade2021-08-181-11/+11
| |
* | MAINT: Update Cython version for Python 3.10.Charles Harris2021-08-101-1/+2
| | | | | | | | | | | | Update the required Cython version to 0.29.24 for Python 3.10 compatibility. The 0.29.22 version might work, but taking the time to find the oldest working version is not worth the trouble.
* | TST: Add cygwin build to CI (#18330)DWesl2021-07-201-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TST: Try to set up a test environment on Cygwin. Edit: Fix spelling of "pull request" TST: Follow workflow for other OSs using commands available on Cygwin. Other GitHub actions set fetch-depth to zero and use ./.github/actions for the actual testing. Let's see if this works. Edit: Drop shell from the last step in the action. Apparently "shell" isn't valid for steps. I hope the action knows to use bash rather than Power Shell or cmd.exe, or this is going to get very confused. TST: Adjust for cygwin The action assumes `sudo` exists, which is a bit of a problem. TST: Fetch with Cygwin git Make sure Cygwin git can access the repository. Versioneer depends on git, so this is kind of important. Edit: Include closing quote. Edit: Install Cygwin git. Versioneer needs this in order to function. Edit: FIXUP: build_src option is not spelled --verbose-config It's --verbose-cfg. TST: Check which version of Python is being used. I want to be sure it's a Cygwin one, not a Windows one. TST: Build a wheel for Cygwin. I may need to install in a virtualenv, and installing from a wheel is much faster than installing from a directory. TST: Use runtests.py to build the extensions. It couldn't find them during the tests, which is not a problem I've run into locally. Hopefully this fixes that. TST: Drop separate build step. TST: Cygwin CI: Install numpy and run tests from that. Running with runtests.py didn't work, but this should. TST: Add cygwin bin dir to path, not root dir. TST: Make sure Cygwin build fails when tests fail The tests managed to pass despite NumPy not importing. This is not a good thing. TST: Avoid steps after tests in Cygwin CI. I really need this to fail if NumPy doesn't import. TST: Ensure Cygwin CI is running in Cygwin. Kinda defeats the point if it's not. TST: Check that pip installed the C extensions. This really shouldn't need to be checked, but the CI runs have been failing due to a failed import of a C extension. I also printed the version, which will make me feel better about the right version being found and used. TST: Include closing quote in test command TST: Report loaded modules Still trying to find why the C extension module import fails. TST: Check permissions on NumPy C extensions TST: Ask python which files it's trying to load. Hopefully this gives me a general direction for where to look for "Cannot find file or directory" TST: Work around powershell syntax weirdness Drop a level of quoting and just write the command to a file, then run that. It should still show DLL permissions. TST: Fix line endings in script. bash expects \n powershell creates \r\n TST: Check for DLLs required by C extensions in Cygwin CI. It's still not working; hopefully this shows why. TST: Add import checks to the dll testing. I have a project where `python -c 'import module'` worked but `pytest --pyargs module` did not. Lets see if that happens here. Allow for global installs The runners have global install privileges, so pip will install NumPy there. I need to account for that in my script. Fix sed regex. Lots of leaning-toothpick syndrome, but it actually does what it's supposed to locally. Hopefully the CI agrees. Stop trying to import NumPy modules from sourcedir This doesn't work and hasn't for a while. TST: Simplify PATH and make sure lapack is on it. Most recent CI run said it couldn't find lapack. Reduce PATH to just Cygwin directories, make sure /usr/lib/lapack is included (after /usr/bin), and try again. Shortening PATH occasionally fixes some other problems. Let's see if that works here. TST: Change Cygwin CI python from 3.8 to 3.7 Let's see if this solves the problems. There was a change in DLL load path handling in 3.8 that might be causing the "cannot load numpy.linalg.lapack_lite" errors. TST: Stop running CI on PR branch. STY: Wrap long lines in Cygwin workflow file. TST: Update name of "main" branch used to trigger workflow. I forgot this changed a while back. TST: Specify full paths for commands. Also use dash in more places. TST: Change the newline-escape mechanism in Cygwin workflow. Backslash is apparently difficult. This reduces that step to a single command and tells YAML the string is to be interpreted as a single line. TST: Move the test command onto one line so GitHub can read it. Apparently the GitHub Actions YAML parser is incomplete. It should be reading what was there as a single-line string with no linebreak at the end and all linebreaks in the middle replaced by spaces. It seems to have parsed this as two lines. Does GitHub have a document saying which subset of YAML they actually recognize? TST: Add dependency on importlib-metadata. Pytest didn't declare it. TST: Move importlib-metadata earlier in install list. I hope this means it actually gets installed. The manager is ignoring it right now. TST: Add zipp to the package install list. Also tell pip to install the test_requirements, so I don't keep running into this problem. TST: Specify full path to python for testing. I apparently missed this earlier. TST: Add CFFI and pytz to Cygwin test environment. TST: Set global path to include /usr/lib/lapack. I'd forgotten there was a line for this already. TST: Shorten and unpin the Cygwin test requirements. I don't want to build more modules than I have to. It works fine on my machine with the system setuptools, pytz, and CFFI as well as system-ish Cython, so it should work fine on the CI runners. TST: Make sure test requirements are actually installed. Apparently pytest->importlib_metadata->"typing_extensions; python_version <= 3.7" isn't a declared dependency chain. Mentioning the last two explicitly should get them installed anyway. TST: Fix quoting in command line. * TST: Clean up the output from the extension module check. Also serves to document the script a bit. * BLD: Tell NumPy about functions that cause test failures. Several of the test failures still happen. I'm not entirely sure why. BLD: Add more functions to the Cygwin replace list. These functions are mentioned in test failures, so I mark them for replacement, along with the more obvious functions that might get called by functions that continue to fail. TST: List more functions to be replaced on Cygwin. casin and casinf don't pass the branch cut tests. Let's see if replacing them lets the test pass on CI. TST: Mark more functions to be replaced on Cygwin. I tried to note the tests each function fails by group, but I don't remember all of them anymore. Let's see if casin{,f,l} gets replaced on the CI runner. BLD: Mark more functions for replacement on Cygwin. I probably need to run `git clean` to see improvements locally. BLD:List more functions to be replaced on Cygwin. This is nearly the last of them. There are still a few failures I don't know how to deal with. The cabsl/hypotl overflows will be gone next Cygwin update. I may have an idea for cpowl (if cpowl(x, n) == cexpl(n*clogl(x))) I don't understand timezones, CFFI, or LAPACK, and that's the rest of the failures. BLD: Change list of functions marked for replacement on Cygwin. I hoped this would convince `cpowl` to flag its overflows, but that doesn't appear to have happened. * TST: Return to requirements in test_requirements.txt There will probably be compilation involved for coverage (from pytest-cov), maybe also cython, but the rest look like pure python and should be fast. * BLD: Export random distribution functions on Cygwin. CFFI should be able to find them now. The Cygwin runtime DLL loader is the Windows one, and the linker also shares most of the same semantics. * BUG: Set default hypotl to use npy_longdouble arithmetic. The implementation is already there, and the tests require npy_longdouble arithmetic, so I set up the boilerplate to make it so. It seems to fix only np.abs(npy_clongdouble), not abs(npy_clongdouble), for reasons I don't understand. * Go back to old npy_hypotl and mark the failing test case. * Undo the remaining changes from "SIMD: Force inlining all functions that accept AVX registers" These changes are not present in `main`. I see no commits likely to have specifically changed whether these SIMD functions are inlined. Adding these back to `main` is left for another PR. The symptoms I saw were segfaults, basically because function calls do not preserve alignment information. * Revert "Undo the remaining changes from "SIMD: Force inlining all functions that accept AVX registers"" This reverts commit bbd571a0f2b6a81eb69fca6183070cdd4676c5b1. That commit was original to this branch, but is now in main, so undoing it is a bad idea. * TST: Move the DLL checker to a separate script Instead of trying to write it every run, just add it to the repository and use that. I'm not sure how Windows git handles line endings; I suspect it changes things to \r\n, which is not what I want. I'm on Cygwin, not MSYS, so everything expects \n. * TST: Prettify the cabsl test xfail declaration. Marking this in the parametrize call gets really big. Moving this inside the function is much shorter, even if it won't tell me when a new Cygwin release makes this obsolete. Since this only needs to wait for one Cygwin release, I suppose that's not much of a stretch. * Wrap long line and change condition order. I want the `sys.platform == "cygwin"` check before I try to access `np.clongdouble`, so the check doesn't crash the test on platforms where np.clongdouble doesn't exist.
* | BUILD: update OpenBLAS to v0.3.17mattip2021-07-161-2/+2
| |
* | move to OpenBLAS 0.3.16mattip2021-07-121-2/+2
| |
* | BUG: typoMatti Picus2021-07-121-1/+1
| |
* | BUG: Make openblas_support support ILP64 on Windows.Charles Harris2021-07-111-1/+4
| | | | | | | | | | | | When working with ILP64 in Windows the correct file is downloaded, but is always copied to "openblas.a". This breaks distutils that looks for "openblas64_.a"
* | BUG: Adjust shallow clone in the gitpod containerTania Allard2021-05-281-1/+1
| |
* | BUG: Adjust shallow clone in the gitpod containerTania Allard2021-05-271-1/+3
| |
* | MAINT: Python3 classes do not need to inherit from objectMike Taves2021-05-191-1/+1
| |
* | MAINT: Cleanup tools/changelog.pyCharles Harris2021-05-101-24/+20
| | | | | | | | | | | | * Combine author/co-author search. * Get rid of 'u' prefix, it is no longer needed. * Use raw strings in regular expressions
* | ENH: Include co-authors in changelog.Charles Harris2021-05-091-10/+19
| | | | | | | | Closes #18969
* | TST: Exclude to-be ignored files when computing the diffBas van Beek2021-05-082-4/+15
| | | | | | | | | | The `diff` and `exclude` options of pycodestyle seem to be incompatible, so instead just ignore the necessary files when computing the diff itself.
* | BUG: Make changelog recognize ``gh-`` as PR number prefix.Charles Harris2021-05-071-3/+7
| | | | | | | | | | | | The changelog.py script was only recognizing fast forward merges where the PR number was of the form "(#xxxxx)", but some people were merging using the "(gh-xxxxx)" form. Fix that.
* | Merge pull request #18885 from BvB93/unsafeCharles Harris2021-05-041-2/+2
|\ \ | | | | | | MAINT: Remove unsafe unions and ABCs from return-annotations
| * | TST: Ignore the E704 pycodestyle error codeBas van Beek2021-05-021-1/+1
| | | | | | | | | | | | E704 (multiple statements on one line (def)) is a style rule not prescribed by PEP8. Furthermore, because it demands a function body it is needlessly inconvenient for static type checking, i.e. situation where this is no function body.
| * | TST: Ignore lint-checking in the `numpy/typing/tests/data` directoryBas van Beek2021-05-021-1/+1
| | | | | | | | | | | | With the current tests system we cannot reasonably enforce E501 (maximum line length)
* | | CI: treat _SIMD module build warnings as errors within CI onlySayed Adel2021-05-041-2/+7
|/ /
* | DEV: general Gitpod enhancements (#18822)Tania Allard2021-04-264-57/+196
| |
* | CI: Use `towncrier build` explicitlySebastian Berg2021-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | Without any argument towncrier defaults to `build`. But towncrier added a `--version` argument to just print the towncrier version. NumPy relies on passing `--version` which collides. Even if towncrier might revert the change, using `towncrier build` explicitly just doesn't hurt. Closes gh-18788
* | DEP: Remove all references to `numarray` from the namespaceBas van Beek2021-04-131-0/+1
| | | | | | | | It has been deprecated and removed for quite some time
* | Merge pull request #18728 from anthonyhvo12/avo-exceptions-chainingCharles Harris2021-04-121-2/+3
|\ \ | | | | | | MAINT: Add exception chaining where appropriate
| * | change to suitable raise from and add line breaks #2Anthony Vo2021-04-061-3/+3
| | |
| * | change to suitable raise from and add line breaksAnthony Vo2021-04-061-1/+2
| | |
| * | Merge branch 'main' of https://github.com/numpy/numpy into ↵Anthony Vo2021-04-057-156/+84
| |\ \ | | | | | | | | | | | | avo-exceptions-chaining
| * | | chain exceptions when appropriateAnthony Vo2021-04-051-1/+1
| | | |
* | | | DEV: add Gitpod to numpy (#18733)Thomas J. Fan2021-04-111-0/+74
| |/ / |/| |
* | | Merge pull request #17586 from BvB93/type_aliasesCharles Harris2021-03-301-0/+1
|\ \ \ | | | | | | | | DEP: Formally deprecate `np.typeDict`
| * | | DEP: Formally deprecate the use of `typeDict`Bas van Beek2021-01-161-0/+1
| | | | | | | | | | | | | | | | `typeDict` is a deprecated alias for `sctypeDict` and has been so for >= 14 years (https://github.com/numpy/numpy/commit/668950285c407593a368336ff2e737c5da84af7d)
* | | | CI: Do not pass original branch name to `git branch -m main`Sebastian Berg2021-03-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should fix the current failure that "master" does not exist. I am a bit curious why master does not exist, maybe the CircleCI git is set up to use some other default. Move the branch rename to after the commit, to make sure that the fact that the branch is empty (and `git branch` also) cannot influence the result. [ci-skip]
* | | | CI: Use `git branch -m` instead of `--initial-branch=main`Sebastian Berg2021-03-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | It seems the git in the CircleCI environment does not have the `--initial-branch` option that my local git has, hopefully `git branch -m` works fine.
* | | | CI: Ensure that doc-build uses "main" as branch nameSebastian Berg2021-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default of git is still "master", so we need to set `--initial-branch=main` to ensure that we use the name `main` that is used in the devdoc repository. Closes gh-18568
* | | | CI: another master -> main fix (#18566)Ralf Gommers2021-03-071-1/+1
| | | |
* | | | MAINT: Replaced master with mainGanesh Kathiresan2021-03-071-1/+1
| | | |
* | | | ENH, MAINT: Added runtest options | Added unified diffGanesh Kathiresan2021-03-071-2/+3
| | | |
* | | | MAINT: Changed branch argument to take target branchGanesh Kathiresan2021-03-071-4/+4
| | | |
* | | | MAINT: Added exception handling and docsGanesh Kathiresan2021-03-071-3/+13
| | | |
* | | | ENH: Added uncommitted changes supportGanesh Kathiresan2021-03-071-6/+14
| | | |
* | | | ENH: Added Linter scriptGanesh Kathiresan2021-03-072-0/+57
| | | |
* | | | MAINT: Update master to main after branch rename (gh-18544)Stefan van der Walt2021-03-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upload docs to main branch of neps/devdocs * Update `master` to `main` to be consistent with current state of renaming * Remove badges from README * Replace remaining instances of `master` with `main` * Add back logo * Fix CircleCI branch checks * Fix GA branch name * master->main in issue templates. * master->main for 2 links to numpy archive. * Change master to main in NEP 23 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | | use the new openblas libIsuru Fernando2021-03-031-1/+1
| | | |
* | | | removed extraneous ARGOUTVIEWM dim. 4 typemapsPatrick T. Komiske III2021-03-011-152/+0
| | | | | | | | | | | | https://github.com/numpy/numpy/issues/18521
* | | | BLD: add _2_24 to valid manylinux namesmattip2021-02-281-1/+1
| |/ / |/| |
* | | Remove unused ARCHITECTURES variableIsuru Fernando2021-02-041-1/+0
| | |
* | | Use platform name in openblas_support and add macosx-arm64 supportIsuru Fernando2021-02-041-51/+63
| | | | | | | | | | | | instead of mixing OS name and architecture into arch variable
* | | DOC: Nupydoc format space before `:` in ParametersMatthias Bussonnier2021-01-311-7/+5
| | | | | | | | | | | | Missing `s` in two spellings.
* | | add an 'apt update'mattip2021-01-291-0/+1
| | |
* | | BLD: update OpenBLAS to af2b0d02mattip2021-01-201-1/+1
|/ /