diff --git a/grayskull/strategy/pypi.py b/grayskull/strategy/pypi.py index 532362d4..04240d25 100644 --- a/grayskull/strategy/pypi.py +++ b/grayskull/strategy/pypi.py @@ -590,9 +590,9 @@ def set_python_min(req_list: list, section: str) -> list: return req_list python_min = "<{ python_min }}" map_section = { - "host": f"{python_min}.*", + "host": f"{python_min}", "run": f">={python_min}", - "test": f"={python_min}", + "test": f"{python_min}", } return [ f"python {map_section[section]}" if dep.lower().strip() == "python" else dep diff --git a/tests/test_pypi.py b/tests/test_pypi.py index b3b4b799..3818d79e 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -1459,9 +1459,9 @@ def test_check_noarch_python_for_new_deps(): @pytest.mark.parametrize( "section, expected", [ - ("host", "python <{ python_min }}.*"), + ("host", "python <{ python_min }}"), ("run", "python >=<{ python_min }}"), - ("test", "python =<{ python_min }}"), + ("test", "python <{ python_min }}"), ], ) def test_set_python_min(section, expected):