From d090db9624aacbe5d94267cfff24ea26dde4d0f2 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Mon, 12 Aug 2024 19:06:53 -0700 Subject: [PATCH] Drop `pin_compatible('numpy')` This is no longer needed as `numpy` has `run_exports`. --- grayskull/strategy/py_base.py | 2 +- tests/test_pypi.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grayskull/strategy/py_base.py b/grayskull/strategy/py_base.py index a2e4eb28f..6c711940b 100644 --- a/grayskull/strategy/py_base.py +++ b/grayskull/strategy/py_base.py @@ -38,7 +38,7 @@ log = logging.getLogger(__name__) RE_DEPS_NAME = re.compile(r"^\s*([\.a-zA-Z0-9_-]+)", re.MULTILINE) -PIN_PKG_COMPILER = {"numpy": "<{ pin_compatible('numpy') }}"} +PIN_PKG_COMPILER = {} def search_setup_root(path_folder: Union[Path, str]) -> Path: diff --git a/tests/test_pypi.py b/tests/test_pypi.py index 2b04ce725..9cb70b009 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -681,7 +681,7 @@ def test_update_requirements_with_pin(): assert req == { "build": ["<{ compiler('c') }}"], "host": ["python", "numpy"], - "run": ["python", "<{ pin_compatible('numpy') }}"], + "run": ["python", "numpy"], } @@ -815,7 +815,7 @@ def test_ciso_recipe(): ["cython", "numpy", "pip", "python"] ) assert sorted(recipe["requirements"]["run"]) == sorted( - ["cython", "python", "<{ pin_compatible('numpy') }}"] + ["cython", "python", "numpy"] ) assert recipe["test"]["commands"] == ["pip check"] assert recipe["test"]["requires"] == ["pip"]