From 1490161575527b3696a68df6a54eea5ec6f2a798 Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Fri, 28 Jun 2024 12:57:32 -0700 Subject: [PATCH] feat!: drop support for numpy<=1.25 --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c16616c..4e14437 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ classifiers = [ dependencies = [ "asdf>=3", "pydantic>=2", + "numpy>=1.25" ] dynamic = ["version"] @@ -54,6 +55,22 @@ dependencies = [ test = "pytest {args}" test-cov = "test --cov-report=term-missing --cov-config=pyproject.toml --cov=asdf_pydantic --cov=tests {args}" +[tool.hatch.envs.test] +template = "default" +matrix-name-format = "{variable}={value}" + +[tool.hatch.envs.test.scripts] +test = "pytest {args}" + +[[tool.hatch.envs.test.matrix]] +numpy-version = ["1", "2"] + +[tool.hatch.envs.test.overrides] +matrix.numpy-version.dependencies = [ + { value = "numpy>=1,<2", if = ["1"] }, + { value = "numpy>=2,<3", if = ["2"] }, +] + [tool.hatch.envs.docs] dependencies = [ "sphinx",