Sync from SUSE:SLFO:Main python-pytest-trio revision a8263cac83305cfa93ed9b0a5b9754c4

This commit is contained in:
Adrian Schröter 2024-12-13 12:13:33 +01:00
parent 073fb8735f
commit 46fd384948
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 10 09:22:37 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed python-contextvars dependency
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:32:04 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:32:04 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-trio # spec file for package python-pytest-trio
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pytest-trio Name: python-pytest-trio
Version: 0.8.0 Version: 0.8.0
@ -29,13 +27,11 @@ Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.t
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-contextvars >= 2.1
Requires: python-outcome >= 1.1.0 Requires: python-outcome >= 1.1.0
Requires: python-pytest >= 7.2.0 Requires: python-pytest >= 7.2.0
Requires: python-trio >= 0.22.0 Requires: python-trio >= 0.22.0
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module contextvars >= 2.1}
BuildRequires: %{python_module hypothesis >= 3.64} BuildRequires: %{python_module hypothesis >= 3.64}
BuildRequires: %{python_module outcome >= 1.1.0} BuildRequires: %{python_module outcome >= 1.1.0}
# we really need newer pytest in tests than is required by the package # we really need newer pytest in tests than is required by the package
@ -49,7 +45,7 @@ This is a pytest plugin to help you test projects that use Trio,
a friendly library for concurrency and async I/O in Python. a friendly library for concurrency and async I/O in Python.
%prep %prep
%setup -q -n pytest-trio-%{version} %autosetup -p1 -n pytest-trio-%{version}
rm pytest.ini rm pytest.ini
rm pytest_trio/_tests/test_hypothesis_interaction.py rm pytest_trio/_tests/test_hypothesis_interaction.py
@ -70,6 +66,7 @@ mv pytest_trio/_tests/ tests
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE LICENSE.APACHE2 LICENSE.MIT %license LICENSE LICENSE.APACHE2 LICENSE.MIT
%{python_sitelib}/* %{python_sitelib}/pytest_trio
%{python_sitelib}/pytest_trio-%{version}*-info
%changelog %changelog