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
This commit is contained in:
Steve Kowalik 2024-01-12 06:04:25 +00:00 committed by Git OBS Bridge
parent 5ab2be10ee
commit 853a7b8632
2 changed files with 11 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 11 10:56:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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 <dmueller@suse.com>

View File

@ -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}