From 127677eb02d0698f0437f08322243f55c7d2a830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Mon, 27 May 2024 22:54:33 +0200 Subject: [PATCH] update deps for np2 build --- pyproject.toml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eea7231..901062d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,9 +2,10 @@ requires = [ "setuptools>=64", "setuptools_scm>=7", - "oldest-supported-numpy", - "scipy>=1.1.0,<2", - "Cython>=0.28.3,<3.0", + "numpy>=2.0.0rc1,<2.3; python_version >= '3.9'", + "oldest-supported-numpy; python_version < '3.9'", + "Cython>=3.0.10,<3.1.0", + "scipy>=1.13.0,<2", ] build-backend = "setuptools.build_meta" @@ -46,21 +47,21 @@ classifiers = [ "Topic :: Utilities", ] dependencies = [ - "numpy>=1.14.5,<2", + "numpy>=1.20.0", "scipy>=1.1.0,<2", ] [project.optional-dependencies] doc = [ - "gstools>=1.3,<2", + "gstools>=1.4,<2", "pillow", "scikit-learn>=0.19", "m2r2>=0.2.8", "matplotlib>=3", "numpydoc>=1.1", - "sphinx>=4", + "sphinx>=7", "sphinx-gallery>=0.8", - "sphinx-rtd-theme>=1", + "sphinx-rtd-theme>=2", ] plot = ["matplotlib>=3,<4"] sklearn = ["scikit-learn>=0.19"] @@ -69,6 +70,12 @@ test = [ "scikit-learn>=0.19", "gstools>=1.4,<2", ] +lint = [ + "black>=23,<24", + "pylint", + "isort[colors]", + "cython-lint", +] [project.urls] Changelog = "https://github.com/GeoStat-Framework/PyKrige/blob/main/CHANGELOG.md" @@ -92,7 +99,16 @@ profile = "black" multi_line_output = 3 [tool.black] -target-version = ["py38"] +target-version = [ + "py38", + "py39", + "py310", + "py311", + "py312", +] + +[tool.cython-lint] +max-line-length = 100 [tool.coverage] [tool.coverage.run] @@ -121,6 +137,7 @@ target-version = ["py38"] [tool.pylint.message_control] disable = [ "R0801", + "C0103", # lots of invalid variable names ] [tool.pylint.reports] @@ -138,11 +155,9 @@ target-version = ["py38"] # Switch to using build build-frontend = "build" # Disable building PyPy wheels on all platforms, 32bit for py3.10/11/12 and musllinux builds, py3.6/7 -skip = ["cp36-*", "cp37-*", "pp*", "cp31*-win32", "cp31*-manylinux_i686", "*-musllinux_*"] +skip = ["cp36-*", "cp37-*", "pp*", "*-win32", "*-manylinux_i686", "*-musllinux_*"] # Run the package tests using `pytest` test-extras = "test" test-command = "pytest -v {package}/tests" # Skip trying to test arm64 builds on Intel Macs test-skip = "*-macosx_arm64 *-macosx_universal2:arm64" -# no wheels for linux-32bit anymore for numpy>=1.22 -environment = "PIP_PREFER_BINARY=1"