Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add numpy2 support #2449

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b55762f
Drop python 3.9, add python 3.13, allow numpy 2.x
ddelange Dec 18, 2024
8bf1d79
Fix extension for NUMPY>=2
2maz Jan 13, 2025
f223a92
vaex-core: update vaexfast for numpy 2
2maz Jan 14, 2025
8dcd57d
vaex-core: change from tab to spaces for vaexfast.cpp
2maz Jan 14, 2025
5d32e75
vaex-core: revert changes
2maz Jan 16, 2025
563e64e
numpy2: np.product -> np.prod
2maz Jan 16, 2025
a52ffd8
numpy2: np.find_common_type -> np.result_type
2maz Jan 16, 2025
72d0813
numpy2: deprecate np.bool8
2maz Jan 16, 2025
fc2e5e1
numpy2: np.float -> float
2maz Jan 16, 2025
c1ca041
vaex-core: test/cmodule.py update
2maz Jan 16, 2025
99d2ed5
vaex-core: use raw string literal for pattern definition
2maz Jan 16, 2025
737da36
vaex-core: extension: silence some warnings (ordering)
2maz Jan 16, 2025
c9e5014
vaex-core: vaexfast: adapt to PyArrayObject usage
2maz Jan 16, 2025
086b2d4
vaex-core: remove deprecation warning on visit_X -> visit_Constant
2maz Jan 16, 2025
89ad3a2
vaex-core: fix missing newline
2maz Jan 16, 2025
a703b81
Set pybind11==2.13.2 (minimum required for numpy2 is 2.12.0
2maz Jan 16, 2025
d2ed8be
vaex_core: extension: fix warnings
2maz Jan 16, 2025
ebbe889
vaex-core: fix numpy2 compatibility of test_ascii
2maz Jan 16, 2025
9cdc91e
vaex-core: fixup superutils
2maz Jan 16, 2025
9bc5a7f
vaex-core: fix missing header
2maz Jan 16, 2025
9c37ff7
ci: install libpcre3-dev
2maz Jan 17, 2025
12c4b39
vaex-core: sort dependencies
2maz Jan 17, 2025
4021b11
vaex-core: add dependency 'future'
2maz Jan 17, 2025
19976d0
vaex-astro: set a compatible astropy version for numpy2
2maz Jan 17, 2025
886760a
vaex-core: TaskPartAggregation.reduce - warn until clarified what is …
2maz Jan 17, 2025
32f63b2
vaex-core: deprecate cumproduct -> cumprod
2maz Jan 17, 2025
1535d02
tests: conditionally skip tests that depend upon catboost
2maz Jan 17, 2025
0c93e21
vaex: starting with numpy v2 can_cast does not support scalars anymore
2maz Jan 17, 2025
80c367e
vaex-ml: tensorflow - numpy 2 dynamically decide on array copy
2maz Jan 17, 2025
fb01f2b
vaex-core: temporarily fix overflow error when assigning int64_t maxv…
2maz Jan 18, 2025
211f420
vaex-core: arrow: fix overflow error -- test_groupy_int8_with_null
2maz Jan 18, 2025
080bffc
test: geo_test: set legacy print options
2maz Jan 18, 2025
0da0bcb
test: ml_test - fix decimal
2maz Jan 18, 2025
80f57fe
ci: fix step name
2maz Jan 18, 2025
f6530e2
vaex-astro: fix np.bool setting
2maz Jan 18, 2025
da02384
test: use raw string literal for regular expression
2maz Jan 18, 2025
da5fe8a
vaex-core: remove need for legacy printoptions
2maz Jan 19, 2025
9b173da
vaex-core: use raw string literal for pattern
2maz Jan 19, 2025
3787f3f
vaex-core: account for numpy2 print changes in doctest
2maz Jan 19, 2025
e6f5006
vaex-ml: conditionally disable catboost dependent functionality
2maz Jan 21, 2025
f30d24f
Require tensorflow >= 2.18 - with numpy2 support
2maz Jan 21, 2025
6f3bc5d
vaex-core: trying to narrow down non-deterministic behaviour in grid_…
2maz Jan 22, 2025
65dc195
vaex-core: update handling of zero-divison in calculate_x
2maz Jan 22, 2025
ed36504
vaex-core: update grid_find_edges
2maz Jan 22, 2025
d53eff7
vaex-core: removing python3.13 classifier - blocked by vaex-ml->tenso…
2maz Jan 22, 2025
2b6d1b2
tests: check if platform-specific skips can be removed
2maz Jan 22, 2025
b99ffc2
test: add comment on skipping catboost tests
2maz Jan 29, 2025
69d26aa
pcre: install precompiled where possible
2maz Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
pcre: install precompiled where possible
2maz committed Jan 30, 2025
commit 69d26aaf18e39dbeaaad3274c27834d9da86f373
4 changes: 0 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -85,10 +85,6 @@ jobs:
# # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install libpcre3-dev
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update & sudo apt install -y libpcre3-dev

- name: Test with pytest
run: |
28 changes: 25 additions & 3 deletions bin/install_pcre.sh
Original file line number Diff line number Diff line change
@@ -85,10 +85,32 @@ function build_simple {
fi
# touch "${name}-stamp"
}


function build_pcre {
echo "Build"
echo "Build pcre"
echo $ARCHFLAGS
build_simple pcre $PCRE_VERSION http://ftp.exim.org/pub/pcre/
}
echo Build pcre
build_pcre

function install_precompiled() {
# Mac https://formulae.brew.sh/formula/pcre
# DebianUbuntu https://packages.ubuntu.com/libpcre3-dev
# Alpine https://pkgs.alpinelinux.org/package/edge/main/x86_64/pcre
# RHEL https://git.almalinux.org/rpms/pcre
if [ -n "$(which brew)" ]; then
brew install pcre
elif [ -n "$(which apt)" ]; then
apt update
apt install -y libpcre3-dev
elif [ -n "$(which apk)" ]; then
apk add --update pcre
elif [ -n "$(which dnf)" ]; then
dnf --setopt install_weak_deps=false -y install pcre
else
false
fi
}

echo "Install pcre"
install_precompiled || build_pcre
Loading