Skip to content

Commit 5bb0211

Browse files
authored
BLD: Compat with numpy 2.x (#826)
1 parent accc0d4 commit 5bb0211

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.github/workflows/asv.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31-
- name: Set up conda python3.11
31+
- name: Set up conda python
3232
uses: conda-incubator/setup-miniconda@v3.0.4
3333
with:
3434
python-version: 3.11
@@ -38,7 +38,7 @@ jobs:
3838
shell: bash -el {0}
3939
run: |
4040
conda install anaconda::libmambapy
41-
pip install "numpy<2.0" scipy cython coverage asv
41+
pip install numpy scipy cython coverage asv
4242
cd python && pip install -e ".[dev,extra]"
4343
4444
- name: Run ASV benchmarks

asv/asv.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
// will not be set for the current combination.
8686
//
8787
"matrix": {
88-
"numpy": ["1.26.4"],
88+
"numpy": [],
8989
"Cython": [],
9090
"pandas": [],
9191
"scipy": [],

doc/source/getting_started/installation.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Xorbits can be installed via pip from `PyPI <https://pypi.org/project/xorbits>`_
1616
Python version support
1717
----------------------
1818

19-
Officially Python 3.9, 3.10 and 3.11.
19+
Officially Python 3.9, 3.10, 3.11, and 3.12.
2020

2121
Packages support
2222
----------------
@@ -27,11 +27,12 @@ to be compatible with the latest single-node packages. The table below lists the
2727
versions of the single-node packages that Xorbits are compatible with. If you are using
2828
an older version of pandas, you should either upgrade your pandas or downgrade Xorbits.
2929

30-
======= ======== ========= ========== =========== ===========
31-
Xorbits `NumPy`_ `pandas`_ `xgboost`_ `lightgbm`_ `datasets`_
32-
======= ======== ========= ========== =========== ===========
33-
0.7.4 1.26.4 2.2.3 2.1.1 4.5.0 3.0.1
34-
======= ======== ========= ========== =========== ===========
30+
======= =================== ======== ========= ========== =========== ===========
31+
Xorbits Python `NumPy`_ `pandas`_ `xgboost`_ `lightgbm`_ `datasets`_
32+
======= =================== ======== ========= ========== =========== ===========
33+
0.8.0 3.9,3.10,3.11,3.12 2.1.3 2.2.3 2.1.2 4.5.0 3.1.0
34+
0.7.4 3.9,3.10,3.11 1.26.4 2.2.3 2.1.1 4.5.0 3.0.1
35+
======= =================== ======== ========= ========== =========== ===========
3536

3637
.. _`NumPy`: https://numpy.org
3738
.. _`pandas`: https://pandas.pydata.org

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [
55
"packaging",
66
"wheel",
77
"oldest-supported-numpy",
8-
"numpy<2.0.0",
8+
"numpy",
99
"pandas==1.2.2; python_version>='3.9' and python_version<'3.10' and platform_machine!='arm64'",
1010
"pandas==1.4.0; python_version>='3.9' and python_version<'3.10' and platform_machine=='arm64'",
1111
"pandas==1.3.4; python_version>='3.10' and python_version<'3.11' and platform_machine!='arm64'",

python/xorbits/deploy/docker/Dockerfile.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN /opt/conda/bin/conda install -c conda-forge --solver classic \
3939
libnuma \
4040
&& pip install -U pip \
4141
&& pip install -U \
42-
"numpy>=1.14.0,<2.0" \
42+
numpy \
4343
scipy\>=1.9.2 \
4444
pandas\>=1.5.0 \
4545
xoscar \

0 commit comments

Comments
 (0)