diff --git a/python-aiohttp.changes b/python-aiohttp.changes index 4acd66a..78cda4a 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 22 13:46:25 UTC 2023 - Ben Greiner + +- Fix pytest call +- Update requirements + ------------------------------------------------------------------- Mon Nov 27 15:22:11 UTC 2023 - Dirk Müller diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 6673157..eaee20a 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -31,9 +31,9 @@ Patch1: remove-re-assert.patch Requires: python-aiosignal >= 1.1.2 Requires: python-attrs >= 17.3.0 Requires: python-frozenlist >= 1.1.1 -# %if %python_version_nodots < 311 +%if 0%{?python_version_nodots} < 311 Requires: (python-async_timeout >= 4.0 with python-async_timeout < 5) -# %endif +%endif Requires: (python-charset-normalizer >= 2.0 with python-charset-normalizer < 4) Requires: (python-multidict >= 4.5 with python-multidict < 7) Requires: (python-yarl >= 1.0 with python-yarl < 2) @@ -130,11 +130,14 @@ donttest+=" or test_client_session_timeout_zero or test_requote_redirect_url_def # flaky donttest+=" or test_https_proxy_unsupported_tls_in_tls" # not running under pytest ?! -donttest+=" or test_circular_imports test_import_time" +donttest+=" or test_circular_imports or test_import_time" # requires python-on-whales rm -v tests/autobahn/test_autobahn.py +# randomly fails on xdist splits +single_runs="test_run_app" test -d aiohttp && mv aiohttp aiohttp.bkp -%pytest_arch %{?jobs: -n %jobs} tests -k "not ($donttest ${$python_donttest})" +%pytest_arch %{?jobs: -n %jobs} tests -k "not ($donttest or ${single_runs})" +%pytest_arch tests -k "${single_runs}" %files %{python_files} %license LICENSE.txt