forked from pool/python-pytest-trio
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ee30b050ac | |||
| 3ed9740afd | |||
| 36a89a9ab5 | |||
| d4682477ac |
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 10 09:22:37 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
Wed Apr 10 09:22:37 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-trio
|
# spec file for package python-pytest-trio
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 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
|
||||||
@@ -24,7 +24,9 @@ Summary: Pytest plugin for trio
|
|||||||
License: Apache-2.0 OR MIT
|
License: Apache-2.0 OR MIT
|
||||||
URL: https://github.com/python-trio/pytest-trio
|
URL: https://github.com/python-trio/pytest-trio
|
||||||
Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz
|
Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-outcome >= 1.1.0
|
Requires: python-outcome >= 1.1.0
|
||||||
@@ -34,8 +36,8 @@ BuildArch: noarch
|
|||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
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
|
|
||||||
BuildRequires: %{python_module pytest >= 7.2.0}
|
BuildRequires: %{python_module pytest >= 7.2.0}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module trio >= 0.22.0}
|
BuildRequires: %{python_module trio >= 0.22.0}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -46,27 +48,22 @@ a friendly library for concurrency and async I/O in Python.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n pytest-trio-%{version}
|
%autosetup -p1 -n pytest-trio-%{version}
|
||||||
|
|
||||||
rm pytest.ini
|
|
||||||
rm pytest_trio/_tests/test_hypothesis_interaction.py
|
rm pytest_trio/_tests/test_hypothesis_interaction.py
|
||||||
mv pytest_trio/_tests/ tests
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest -k 'not (test_skip_and_xfail or test_error_collection)'
|
||||||
|
|
||||||
%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}/pytest_trio
|
%{python_sitelib}/pytest_trio
|
||||||
%{python_sitelib}/pytest_trio-%{version}*-info
|
%{python_sitelib}/pytest_trio-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user