Skip to content

Commit

Permalink
Fix typing-extensions mapping (#565)
Browse files Browse the repository at this point in the history
* 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.

* Fix broken test
  • Loading branch information
maresb authored Sep 29, 2024
1 parent 7ce4300 commit 7de08dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions grayskull/strategy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7de08dc

Please sign in to comment.