diff --git a/pyproject.toml b/pyproject.toml index b271e52b..9162e7d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,11 +107,12 @@ tests = [ "pytest-cov", "requests-mock", # mechanicalsoup hard-depends on lxml (see below) - 'mechanicalsoup; (implementation_name != "pypy" or python_version <= "3.9")', + 'mechanicalsoup; (implementation_name != "pypy" and python_version <= "3.12")', "requests-wsgi-adapter", # we want to test search with all known bs4 parsers. - # lxml does not have a PyPy 3.10+ wheel. - 'lxml; (implementation_name != "pypy" or python_version <= "3.9")', + # lxml usually does not have recent PyPy wheels. + # lxml usually does not have pre-relase CPython wheels. + 'lxml; (implementation_name != "pypy" and python_version <= "3.12")', "html5lib", # for bench.py 'numpy; (implementation_name != "pypy" and os_name == "posix")',