| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
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: 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.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
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"
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
* Combine author/co-author search.
* Get rid of 'u' prefix, it is no longer needed.
* Use raw strings in regular expressions
|
| | |
| |
| |
| | |
Closes #18969
|
| | |
| |
| |
| |
| | |
The `diff` and `exclude` options of pycodestyle seem to be incompatible,
so instead just ignore the necessary files when computing the diff itself.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
MAINT: Remove unsafe unions and ABCs from return-annotations
|
| | | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | | |
With the current tests system we cannot reasonably enforce E501 (maximum line length)
|
| |/ / |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| | |
It has been deprecated and removed for quite some time
|
| |\ \
| | |
| | | |
MAINT: Add exception chaining where appropriate
|
| | | | |
|
| | | | |
|
| | |\ \
| | | |
| | | |
| | | | |
avo-exceptions-chaining
|
| | | | | |
|
| | |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
DEP: Formally deprecate `np.typeDict`
|
| | | | |
| | | |
| | | |
| | | | |
`typeDict` is a deprecated alias for `sctypeDict` and has been so for >= 14 years (https://github.com/numpy/numpy/commit/668950285c407593a368336ff2e737c5da84af7d)
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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]
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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>
|
| | | | | |
|
| | | | |
| | | |
| | | | |
https://github.com/numpy/numpy/issues/18521
|
| | |/ /
|/| | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
instead of mixing OS name and architecture into arch variable
|
| | | |
| | |
| | |
| | | |
Missing `s` in two spellings.
|
| | | | |
|
| |/ / |
|