Skip to content

Commit d4949a1

Browse files
committed
Bump numpy version to 2.2
This change also removes support for 3.9.
1 parent 5aeb034 commit d4949a1

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ["3.9", "3.10", "3.11"]
12+
python-version: ["3.10", "3.11", "3.12"]
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up Python ${{ matrix.python-version }}

metafold/func_types.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,39 @@
2727

2828
Vec2i: TypeAlias = Union[
2929
Annotated[list[int], 2],
30-
"np.ndarray[Literal[2], np.dtype[np.int_]]",
30+
"np.ndarray[tuple[Literal[2]], np.dtype[np.int32]]",
3131
]
3232
Vec2f: TypeAlias = Union[
3333
Annotated[list[float], 2],
34-
"np.ndarray[Literal[2], np.dtype[np.float_]]",
34+
"np.ndarray[tuple[Literal[2]], np.dtype[np.float32]]",
3535
]
3636
Vec3i: TypeAlias = Union[
3737
Annotated[list[int], 3],
38-
"np.ndarray[Literal[3], np.dtype[np.int_]]",
38+
"np.ndarray[tuple[Literal[3]], np.dtype[np.int32]]",
3939
]
4040
Vec3f: TypeAlias = Union[
4141
Annotated[list[float], 3],
42-
"np.ndarray[Literal[3], np.dtype[np.float_]]",
42+
"np.ndarray[tuple[Literal[3]], np.dtype[np.float32]]",
4343
]
4444
Vec4i: TypeAlias = Union[
4545
Annotated[list[int], 4],
46-
"np.ndarray[Literal[4], np.dtype[np.int_]]",
46+
"np.ndarray[tuple[Literal[4]], np.dtype[np.int32]]",
4747
]
4848
Vec4f: TypeAlias = Union[
4949
Annotated[list[float], 4],
50-
"np.ndarray[Literal[4], np.dtype[np.float_]]",
50+
"np.ndarray[tuple[Literal[4]], np.dtype[np.float32]]",
5151
]
5252
Mat2f: TypeAlias = Union[
5353
Annotated[list[float], 4],
54-
"np.ndarray[tuple[Literal[2], Literal[2]], np.dtype[np.float_]]",
54+
"np.ndarray[tuple[Literal[2], Literal[2]], np.dtype[np.float32]]",
5555
]
5656
Mat3f: TypeAlias = Union[
5757
Annotated[list[float], 9],
58-
"np.ndarray[tuple[Literal[3], Literal[3]], np.dtype[np.float_]]",
58+
"np.ndarray[tuple[Literal[3], Literal[3]], np.dtype[np.float32]]",
5959
]
6060
Mat4f: TypeAlias = Union[
6161
Annotated[list[float], 16],
62-
"np.ndarray[tuple[Literal[4], Literal[4]], np.dtype[np.float_]]",
62+
"np.ndarray[tuple[Literal[4], Literal[4]], np.dtype[np.float32]]",
6363
]
6464

6565

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "metafold"
7-
version = "0.8.0"
7+
version = "0.9.0"
88
authors = [
99
{name = "Metafold 3D", email = "[email protected]"},
1010
]
1111
dependencies = [
1212
"attrs~=23.2",
1313
"auth0-python~=4.7",
14-
"numpy~=1.23",
14+
"numpy~=2.1",
1515
"requests~=2.31",
1616
"scipy~=1.11",
1717
]
1818
readme = "README.md"
1919
license = {file = "LICENSE"}
2020
description = "Metafold SDK for Python"
21-
requires-python = ">=3.9"
21+
requires-python = ">=3.10"
2222
keywords = ["metafold", "api", "sdk", "implicit geometry"]
2323
classifiers = [
2424
"Development Status :: 3 - Alpha",
@@ -59,3 +59,6 @@ networkx = [
5959

6060
[tool.setuptools]
6161
packages = ["metafold"]
62+
63+
[tool.ruff.lint]
64+
select = ["NPY201"]

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
attrs~=23.2
22
auth0-python~=4.7
3-
numpy~=1.23
3+
numpy~=2.1
44
requests~=2.31
55
scipy~=1.11
66

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
attrs~=23.2
22
auth0-python~=4.7
3-
numpy~=1.23
3+
numpy~=2.1
44
requests~=2.31
55
scipy~=1.11

0 commit comments

Comments
 (0)