From 03577692cc476c98210dcb548b089b1744fb7d78 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sun, 29 Sep 2024 12:17:49 +0200 Subject: [PATCH 1/2] Fix typing-extensions mapping Before, Grayskull recommended the `typing-extensions` conda-forge package which is a wrapper for the `typing_extensions` conda-forge package. We should go directly to the `typing_extensions` package. --- grayskull/strategy/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grayskull/strategy/config.yaml b/grayskull/strategy/config.yaml index 640487ac2..ab1c8aed0 100644 --- a/grayskull/strategy/config.yaml +++ b/grayskull/strategy/config.yaml @@ -516,6 +516,11 @@ trino: conda_forge: trino-python-client import_name: trino +typing-extensions: + conda_forge: typing_extensions + import_name: typing_extensions + avoid_selector: true + typing: conda_forge: typing import_name: typing From c57f720c9b267bee0b1e668747064de2f6795c6a Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sun, 29 Sep 2024 13:22:45 +0200 Subject: [PATCH 2/2] Fix broken test --- tests/test_pypi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pypi.py b/tests/test_pypi.py index e504f1cee..b802e34db 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -1031,8 +1031,8 @@ def test_mypy_deps_normalization_and_entry_points(): assert "mypy-extensions >=0.4.3,<0.5.0" not in recipe["requirements"]["run"] assert "typed-ast >=1.4.0,<1.5.0" in recipe["requirements"]["run"] assert "typed_ast <1.5.0,>=1.4.0" not in recipe["requirements"]["run"] - assert "typing-extensions >=3.7.4" in recipe["requirements"]["run"] - assert "typing_extensions >=3.7.4" not in recipe["requirements"]["run"] + assert "typing-extensions >=3.7.4" not in recipe["requirements"]["run"] + assert "typing_extensions >=3.7.4" in recipe["requirements"]["run"] assert recipe["build"]["entry_points"] == [ "mypy=mypy.__main__:console_entry",