Skip to content

Commit 30a2039

Browse files
authored
Pin numpy in various stubs (#12554)
1 parent 937270d commit 30a2039

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

stubs/JACK-Client/METADATA.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
version = "0.5.*"
22
upstream_repository = "https://github.com/spatialaudio/jackclient-python"
33
# Requires a version of numpy with a `py.typed` file
4-
requires = ["numpy>=1.20", "types-cffi"]
4+
# see https://github.com/python/typeshed/issues/12551
5+
# on why we need the upper bound for numpy
6+
requires = ["numpy>=1.20,<2.1.0", "types-cffi"]
57

68
[tool.stubtest]
79
# darwin and win32 are equivalent

stubs/networkx/METADATA.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
version = "3.2.1"
22
upstream_repository = "https://github.com/networkx/networkx"
33
# requires a version of numpy with a `py.typed` file
4-
requires = ["numpy>=1.20"]
4+
# see https://github.com/python/typeshed/issues/12551
5+
# on why we need the upper bound
6+
requires = ["numpy>=1.20,<2.1.0"]
57
partial_stub = true
68

79
[tool.stubtest]

stubs/seaborn/METADATA.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
version = "0.13.2"
22
# Requires a version of numpy and matplotlib with a `py.typed` file
3-
requires = ["matplotlib>=3.8", "numpy>=1.20", "pandas-stubs"]
3+
# see https://github.com/python/typeshed/issues/12551
4+
# on why we need the upper bound for numpy
5+
requires = ["matplotlib>=3.8", "numpy>=1.20,<2.1.0", "pandas-stubs"]
46
# matplotlib>=3.8 requires Python >=3.9
57
requires_python = ">=3.9"
68
upstream_repository = "https://github.com/mwaskom/seaborn"

stubs/shapely/METADATA.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version = "2.0.*"
22
# Requires a version of numpy with a `py.typed` file
3-
requires = ["numpy>=1.20"]
3+
# see https://github.com/python/typeshed/issues/12551
4+
# on why we need the upper bound for numpy
5+
requires = ["numpy>=1.20,<2.1.0"]
46
upstream_repository = "https://github.com/shapely/shapely"

stubs/tensorflow/METADATA.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
version = "2.17.*"
44
upstream_repository = "https://github.com/tensorflow/tensorflow"
55
# requires a version of numpy with a `py.typed` file
6-
requires = ["numpy>=1.20", "types-protobuf", "types-requests"]
6+
# see https://github.com/python/typeshed/issues/12551
7+
# on why we need the upper bound for numpy
8+
requires = ["numpy>=1.20,<2.1.0", "types-protobuf", "types-requests"]
79
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 26.1 on tensorflow==2.17.0 ."
810
partial_stub = true
911

0 commit comments

Comments
 (0)