Skip to content

Commit

Permalink
Drop pin_compatible('numpy')
Browse files Browse the repository at this point in the history
This is no longer needed as `numpy` has `run_exports`.
  • Loading branch information
jakirkham committed Aug 13, 2024
1 parent 5aaf25e commit d090db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grayskull/strategy/py_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}


Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit d090db9

Please sign in to comment.