Accepting request 1290931 from devel:languages:python:pytest

- Do not remove pytest.ini, we need the configuration for pytest 8.4.
- Do not play around with test directory name.

OBS-URL: https://build.opensuse.org/request/show/1290931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-trio?expand=0&rev=11
This commit is contained in:
2025-07-08 13:27:58 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 7 04:13:11 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Do not remove pytest.ini, we need the configuration for pytest 8.4.
- Do not play around with test directory name.
-------------------------------------------------------------------
Wed May 7 07:00:40 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -36,8 +36,8 @@ BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hypothesis >= 3.64}
BuildRequires: %{python_module outcome >= 1.1.0}
# we really need newer pytest in tests than is required by the package
BuildRequires: %{python_module pytest >= 7.2.0}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module trio >= 0.22.0}
# /SECTION
%python_subpackages
@@ -48,22 +48,17 @@ a friendly library for concurrency and async I/O in Python.
%prep
%autosetup -p1 -n pytest-trio-%{version}
rm pytest.ini
rm pytest_trio/_tests/test_hypothesis_interaction.py
mv pytest_trio/_tests/ tests
%build
%pyproject_wheel
%install
%pyproject_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pytest -k 'not (test_skip_and_xfail or test_error_collection)'
%files %{python_files}
%doc README.rst