Skip to content

Commit

Permalink
update deps for np2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed May 27, 2024
1 parent 3119186 commit 127677e
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"]
Expand All @@ -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"
Expand All @@ -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]
Expand Down Expand Up @@ -121,6 +137,7 @@ target-version = ["py38"]
[tool.pylint.message_control]
disable = [
"R0801",
"C0103", # lots of invalid variable names
]

[tool.pylint.reports]
Expand All @@ -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"

0 comments on commit 127677e

Please sign in to comment.