From 853a7b863263ff9ba7321e5e672fa7c296910a206b7b0453d957e22a7ce89e73 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 12 Jan 2024 06:04:25 +0000 Subject: [PATCH] Accepting request 1138103 from home:bnavigator:branches:devel:languages:python - We don't need isort for the tests: Avoid it for Ring1 - Clean dependencies OBS-URL: https://build.opensuse.org/request/show/1138103 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trio?expand=0&rev=43 --- python-trio.changes | 6 ++++++ python-trio.spec | 17 +++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/python-trio.changes b/python-trio.changes index 1a29b75..324708f 100644 --- a/python-trio.changes +++ b/python-trio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 11 10:56:14 UTC 2024 - Ben Greiner + +- We don't need isort for the tests: Avoid it for Ring1 +- Clean dependencies + ------------------------------------------------------------------- Wed Jan 3 10:35:04 UTC 2024 - Dirk Müller diff --git a/python-trio.spec b/python-trio.spec index 41fc8b0..4596b7f 100644 --- a/python-trio.spec +++ b/python-trio.spec @@ -32,34 +32,27 @@ Summary: Python async/await-native I/O library License: Apache-2.0 OR MIT URL: https://github.com/python-trio/trio Source: https://files.pythonhosted.org/packages/source/t/trio/trio-%{version}.tar.gz -BuildRequires: %{python_module attrs >= 20.1.0} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module sortedcontainers} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: netcfg BuildRequires: python-rpm-macros -Requires: python-attrs >= 19.2.0 +Requires: python-attrs >= 20.1.0 Requires: python-idna Requires: python-outcome Requires: python-sniffio >= 1.3.0 Requires: python-sortedcontainers BuildArch: noarch -%if 0%{?suse_version} > 1500 -Requires: (python-exceptiongroup if python-base < 3.11) +%if 0%{?python_version_nodots} < 311 +Requires: python-exceptiongroup %endif %if %{with test} BuildRequires: %{python_module astor >= 0.8} BuildRequires: %{python_module async_generator >= 1.9} -BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module idna} -BuildRequires: %{python_module isort} -BuildRequires: %{python_module outcome} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 5.0} -# for protocol specifications -BuildRequires: %{python_module sniffio >= 1.3.0} BuildRequires: %{python_module trio = %{version}} BuildRequires: %{python_module trustme} BuildRequires: %{python_module yapf >= 0.27.0} @@ -101,7 +94,7 @@ donttest+=" or test_close_at_bad_time_for_send_all" donttest+=" or test_local_address_real" # Don't run lint tests donttest+=" or run_black or run_ruff or lint_failure or test_process" -%pytest -m 'not redistributors_should_skip' -k "not ($donttest)" --pyargs trio -p trio._tests.pytest_plugin +%pytest -m 'not redistributors_should_skip' -k "not ($donttest)" --pyargs trio -p trio._tests.pytest_plugin --skip-optional-imports %endif %if %{without test}