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_py_base.py b/tests/test_py_base.py index 3774220f1..70b36f070 100644 --- a/tests/test_py_base.py +++ b/tests/test_py_base.py @@ -35,8 +35,7 @@ def test_update_requirements_with_pin_mixed_numpy_pin_compatible(): "run": ["numpy >=1.19.1,<2.0.0", "pyparsing >=2.4.7, <3.0.0", "python"], } update_requirements_with_pin(requirements) - assert "<{ pin_compatible('numpy') }}" in requirements["run"] - assert "numpy" not in requirements["run"] + assert "numpy >=1.19.1,<2.0.0" in requirements["run"] def test_ensure_pep440_stripping_empty_spaces(): diff --git a/tests/test_pypi.py b/tests/test_pypi.py index 2b04ce725..8d840214d 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"] @@ -834,7 +834,7 @@ def test_pymc_recipe_fortran(): } assert set(recipe["requirements"]["host"]) == {"numpy", "python", "pip"} assert set(recipe["requirements"]["run"]) == { - "<{ pin_compatible('numpy') }}", + "numpy", "python", } assert not recipe["build"]["noarch"]