Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
systemsmanagement:saltstack:bundle:next:python311:test-dependencies
saltbundlepy-pytest-asyncio
saltbundlepy-pytest-asyncio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File saltbundlepy-pytest-asyncio.spec of Package saltbundlepy-pytest-asyncio
# # spec file for saltbundlepy-pytest-asyncio # # Copyright (c) 2024 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/ # %{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}} %define pythons saltbundlepy %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test ExclusiveArch: do-not-build %else %define psuffix %{nil} %bcond_with test %endif Name: saltbundlepy-pytest-asyncio%{psuffix} Version: 0.20.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: %{saltbundlepy_module base >= 3.10} BuildRequires: %{saltbundlepy_module pip} BuildRequires: %{saltbundlepy_module setuptools-scm} BuildRequires: %{saltbundlepy_module setuptools} BuildRequires: %{saltbundlepy_module wheel} BuildRequires: fdupes BuildRequires: saltbundlepy-rpm-macros Requires: saltbundlepy-pytest >= 6.1.0 BuildArch: noarch %if %{with test} BuildRequires: %{saltbundlepy_module async-generator >= 1.3} BuildRequires: %{saltbundlepy_module flaky >= 3.5.0} BuildRequires: %{saltbundlepy_module hypothesis >= 5.7.1} BuildRequires: %{saltbundlepy_module pytest >= 6.1.0} BuildRequires: %{saltbundlepy_module pytest-asyncio = %{version}} BuildRequires: %{saltbundlepy_module pytest-trio >= 0.7} %endif %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} %pyproject_wheel %if !%{with test} %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check %pytest %endif %if !%{with test} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/pytest_asyncio %{python_sitelib}/pytest_asyncio-%{version}*-info %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor