forked from pool/python-pytest-asyncio
- Update to 0.18.3 * Adds pytest-trio to the test dependencies * Fixes a bug that caused pytest-asyncio to try to set up async pytest_trio fixtures in strict mode. #298 - Release 0.18.2 * Fix asyncio auto mode not marking static methods. #295 * Fix a compatibility issue with Hypothesis 6.39.0. #302 - Release 0.18.1 * Fixes a regression that prevented async fixtures from working in synchronous tests. #286 - Release 0.18.0 * Raise a warning if @pytest.mark.asyncio is applied to non-async function. #275 * Support parametrized event_loop fixture. #278 OBS-URL: https://build.opensuse.org/request/show/985717 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=18
72 lines
2.3 KiB
RPMSpec
72 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pytest-asyncio
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-pytest-asyncio
|
|
Version: 0.18.3
|
|
Release: 0
|
|
Summary: Pytest support for asyncio
|
|
License: Apache-2.0
|
|
URL: https://github.com/pytest-dev/pytest-asyncio
|
|
Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz
|
|
BuildRequires: %{python_module async_generator >= 1.3}
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module flaky >= 3.5.0}
|
|
BuildRequires: %{python_module hypothesis >= 5.7.1}
|
|
BuildRequires: %{python_module pytest >= 6.1.0}
|
|
BuildRequires: %{python_module pytest-trio >= 0.7}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pytest >= 6.1.0
|
|
%if 0%{?python_version_nodots} < 38
|
|
Requires: python-typing-extensions >= 3.7.2
|
|
%endif
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
pytest-asyncio is a Python library used for testing asyncio code with pytest.
|
|
|
|
asyncio code is usually written in the form of coroutines, which makes it
|
|
slightly more difficult to test using normal testing tools. pytest-asyncio
|
|
provides useful fixtures and markers to make testing easier.
|
|
|
|
%prep
|
|
%setup -q -n pytest-asyncio-%{version}
|
|
|
|
%build
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
%python_build
|
|
|
|
%install
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/pytest_asyncio
|
|
%{python_sitelib}/pytest_asyncio-%{version}*-info
|
|
|
|
%changelog
|