Skip to content

Commit 438ff71

Browse files
committed
Drop pin_compatible('numpy')
This is no longer needed as `numpy` has `run_exports`.
1 parent 5aaf25e commit 438ff71

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

grayskull/strategy/py_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
log = logging.getLogger(__name__)
4040
RE_DEPS_NAME = re.compile(r"^\s*([\.a-zA-Z0-9_-]+)", re.MULTILINE)
41-
PIN_PKG_COMPILER = {"numpy": "<{ pin_compatible('numpy') }}"}
41+
PIN_PKG_COMPILER = {}
4242

4343

4444
def search_setup_root(path_folder: Union[Path, str]) -> Path:

tests/test_py_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def test_update_requirements_with_pin_mixed_numpy_pin_compatible():
3535
"run": ["numpy >=1.19.1,<2.0.0", "pyparsing >=2.4.7, <3.0.0", "python"],
3636
}
3737
update_requirements_with_pin(requirements)
38-
assert "<{ pin_compatible('numpy') }}" in requirements["run"]
39-
assert "numpy" not in requirements["run"]
38+
assert "numpy" in requirements["run"]
4039

4140

4241
def test_ensure_pep440_stripping_empty_spaces():

tests/test_pypi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def test_update_requirements_with_pin():
681681
assert req == {
682682
"build": ["<{ compiler('c') }}"],
683683
"host": ["python", "numpy"],
684-
"run": ["python", "<{ pin_compatible('numpy') }}"],
684+
"run": ["python", "numpy"],
685685
}
686686

687687

@@ -815,7 +815,7 @@ def test_ciso_recipe():
815815
["cython", "numpy", "pip", "python"]
816816
)
817817
assert sorted(recipe["requirements"]["run"]) == sorted(
818-
["cython", "python", "<{ pin_compatible('numpy') }}"]
818+
["cython", "python", "numpy"]
819819
)
820820
assert recipe["test"]["commands"] == ["pip check"]
821821
assert recipe["test"]["requires"] == ["pip"]
@@ -834,7 +834,7 @@ def test_pymc_recipe_fortran():
834834
}
835835
assert set(recipe["requirements"]["host"]) == {"numpy", "python", "pip"}
836836
assert set(recipe["requirements"]["run"]) == {
837-
"<{ pin_compatible('numpy') }}",
837+
"numpy",
838838
"python",
839839
}
840840
assert not recipe["build"]["noarch"]

0 commit comments

Comments
 (0)