Files
python-pytest-trio/python-pytest-trio.spec
Markéta Machová ccb4ed2ac9 Accepting request 1042688 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 0.8.0
  * If a test raises an ExceptionGroup (or nested ExceptionGroups) 
    with only a single ‘leaf’ exception from pytest.xfail() or 
    pytest.skip(), we now unwrap it to have the desired effect on Pytest. 
  * Trio 0.22.0 deprecated MultiError in favor of the standard-library 
    (or backported) ExceptionGroup type; pytest-trio now uses ExceptionGroup 
    exclusively and therefore requires Trio 0.22.0 or later. (#128)
  * Dropped support for end-of-life Python 3.6, and the async_generator library 
    necessary to support it, and started testing on Python 3.10 and 3.11. (#129)

OBS-URL: https://build.opensuse.org/request/show/1042688
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-trio?expand=0&rev=13
2022-12-13 14:19:16 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-pytest-trio
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pytest-trio
Version: 0.8.0
Release: 0
Summary: Pytest plugin for trio
License: Apache-2.0 OR MIT
URL: https://github.com/python-trio/pytest-trio
Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-contextvars >= 2.1
Requires: python-outcome >= 1.1.0
Requires: python-pytest >= 7.2.0
Requires: python-trio >= 0.22.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module contextvars >= 2.1}
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 trio >= 0.22.0}
# /SECTION
%python_subpackages
%description
This is a pytest plugin to help you test projects that use Trio,
a friendly library for concurrency and async I/O in Python.
%prep
%setup -q -n pytest-trio-%{version}
rm pytest.ini
rm pytest_trio/_tests/test_hypothesis_interaction.py
mv pytest_trio/_tests/ tests
%build
%python_build
%install
%python_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE LICENSE.APACHE2 LICENSE.MIT
%{python_sitelib}/*
%changelog