From f5e3e9938be6bf393247ec6645d8af64e3dfe383 Mon Sep 17 00:00:00 2001 From: Joshua Fogg Date: Tue, 23 Jul 2024 15:19:03 +0100 Subject: [PATCH] Confirmed Numpy v2 support Fixes #20 --- README.md | 2 -- pyproject.toml | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c21d10c..345b69c 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,6 @@ pip install RobustOCS/ Either way, the package depends on Python 3.10+, using [NumPy](https://pypi.org/project/numpy) for linear algebra and [SciPy](https://scipy.org) for sparse matrix objects. As a solver it can either use [Gurobi](https://www.gurobi.com) (commercial) via [gurobipy](https://pypi.org/project/gurobipy) or [HiGHS](https://highs.dev) (free software) via [highspy](https://pypi.org/project/highspy). -[NumPy v2 support]: https://support.gurobi.com/hc/en-us/articles/25787048531601-Compatibility-issues-with-numpy-2-0 - ## Examples The [GitHub wiki] includes documentation written by which explains the usage and parameters in more detail, alongside some worked examples (the data for which is in [`examples/`](examples/)). This includes a realistic simulated example from [Gregor Gorjanc] and [Ivan Pocrnić]. diff --git a/pyproject.toml b/pyproject.toml index fcf96b8..c3430be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,12 +6,14 @@ build-backend = "hatchling.build" name = "robustocs" version = "0.0.1" dependencies = [ - "numpy >= 1.21, < 2.0.0", + "numpy >= 1.21", "scipy >= 1.8.0", - "gurobipy >= 11.0.0", + # NLP added in 11.0.0, NumPy 2.x support in this version + "gurobipy >= 11.0.3", + # HiGHS modelling language commands were added in this version "highspy >= 1.7.2", ] -requires-python = ">=3.10" +requires-python = ">= 3.10" authors = [ { name="Josh Fogg", email="j.fogg@ed.ac.uk" }, ]