Skip to content

Commit c2c76e3

Browse files
authored
Merge pull request #335 from PowerGridModel/feature/drop-numpy-1-support
Dependencies: Drop NumPy 1.x support
2 parents 49c3f36 + 6a5c820 commit c2c76e3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers=[
2828
]
2929
requires-python = ">=3.11"
3030
dependencies = [
31-
"numpy>=1.20",
31+
"numpy>=2.0",
3232
"openpyxl",
3333
"pandas",
3434
"power_grid_model>=1.8",

tests/utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55
import sys
66
from copy import copy, deepcopy
7-
from importlib import metadata
87
from itertools import chain
98
from typing import Any, Dict, List, Mapping, MutableMapping, Optional, Tuple
109
from unittest.mock import MagicMock
1110

1211
import numpy as np
1312
import pandas as pd
14-
from packaging import version
1513
from pandas.core.generic import NDFrame
1614

1715

@@ -74,9 +72,6 @@ class MockFn:
7472

7573
__array_struct__ = np.array([]).__array_struct__
7674

77-
if version.Version(metadata.version("numpy")) < version.Version("2"):
78-
__array_prepare__ = np.array([]).__array_prepare__ # type: ignore[attr-defined]
79-
8075
def __init__(self, fn: str, *args, **kwargs):
8176
self.fn = fn
8277
self.args = list(args)

0 commit comments

Comments
 (0)