diff --git a/stubs/JACK-Client/METADATA.toml b/stubs/JACK-Client/METADATA.toml index bd070e6d0..1660b2aae 100644 --- a/stubs/JACK-Client/METADATA.toml +++ b/stubs/JACK-Client/METADATA.toml @@ -1,7 +1,9 @@ version = "0.5.*" upstream_repository = "https://github.com/spatialaudio/jackclient-python" # Requires a version of numpy with a `py.typed` file -requires = ["numpy>=1.20", "types-cffi"] +# see https://github.com/python/typeshed/issues/12551 +# on why we need the upper bound for numpy +requires = ["numpy>=1.20,<2.1.0", "types-cffi"] [tool.stubtest] # darwin and win32 are equivalent diff --git a/stubs/networkx/METADATA.toml b/stubs/networkx/METADATA.toml index d8e565fd0..ace417a7f 100644 --- a/stubs/networkx/METADATA.toml +++ b/stubs/networkx/METADATA.toml @@ -1,7 +1,9 @@ version = "3.2.1" upstream_repository = "https://github.com/networkx/networkx" # requires a version of numpy with a `py.typed` file -requires = ["numpy>=1.20"] +# see https://github.com/python/typeshed/issues/12551 +# on why we need the upper bound +requires = ["numpy>=1.20,<2.1.0"] partial_stub = true [tool.stubtest] diff --git a/stubs/seaborn/METADATA.toml b/stubs/seaborn/METADATA.toml index 4c5367456..4603b91ba 100644 --- a/stubs/seaborn/METADATA.toml +++ b/stubs/seaborn/METADATA.toml @@ -1,6 +1,8 @@ version = "0.13.2" # Requires a version of numpy and matplotlib with a `py.typed` file -requires = ["matplotlib>=3.8", "numpy>=1.20", "pandas-stubs"] +# see https://github.com/python/typeshed/issues/12551 +# on why we need the upper bound for numpy +requires = ["matplotlib>=3.8", "numpy>=1.20,<2.1.0", "pandas-stubs"] # matplotlib>=3.8 requires Python >=3.9 requires_python = ">=3.9" upstream_repository = "https://github.com/mwaskom/seaborn" diff --git a/stubs/shapely/METADATA.toml b/stubs/shapely/METADATA.toml index e12eb3f77..db229f692 100644 --- a/stubs/shapely/METADATA.toml +++ b/stubs/shapely/METADATA.toml @@ -1,4 +1,6 @@ version = "2.0.*" # Requires a version of numpy with a `py.typed` file -requires = ["numpy>=1.20"] +# see https://github.com/python/typeshed/issues/12551 +# on why we need the upper bound for numpy +requires = ["numpy>=1.20,<2.1.0"] upstream_repository = "https://github.com/shapely/shapely" diff --git a/stubs/tensorflow/METADATA.toml b/stubs/tensorflow/METADATA.toml index 0cf0913ed..cbd73399f 100644 --- a/stubs/tensorflow/METADATA.toml +++ b/stubs/tensorflow/METADATA.toml @@ -3,7 +3,9 @@ version = "2.17.*" upstream_repository = "https://github.com/tensorflow/tensorflow" # requires a version of numpy with a `py.typed` file -requires = ["numpy>=1.20", "types-protobuf", "types-requests"] +# see https://github.com/python/typeshed/issues/12551 +# on why we need the upper bound for numpy +requires = ["numpy>=1.20,<2.1.0", "types-protobuf", "types-requests"] 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 ." partial_stub = true