Files
python-pytest-subtests/python-pytest-subtests.spec
2025-10-27 16:28:23 +00:00

57 lines
1.4 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Name: python-pytest-subtests
Version: 0.15.0
Release: %autorelease
Summary: Support for unittest subTest() and subtests fixture
# SPDX
License: MIT
URL: https://github.com/pytest-dev/pytest-subtests
# We *could* package from the PyPI sdist without losing anything, if we liked.
Source: %{url}/archive/v%{version}/pytest-subtests-%{version}.tar.gz
BuildSystem: pyproject
BuildOption(install): -l pytest_subtests
# Dont depend on pytest-xdist on RHEL/ELN, since its unwanted there. Keep the
# dependency in Fedora because it enables several integration tests.
#
# (For similar reasons, we dont pass -t to %%pyproject_buildrequires and we
# run tests via %%pytest directly instead of via %%tox: tox is unwanted in
# RHEL/ELN, and the benefit of using it in this package is small.)
%if %{undefined rhel}
BuildRequires: python3dist(pytest-xdist)
%endif
BuildArch: noarch
%description
pytest-subtests unittest subTest() support and subtests fixture.
%package -n python3-pytest-subtests
Summary: %{summary}
%description -n python3-pytest-subtests
%{summary}.
%generate_buildrequires -p
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%build -p
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%check -a
%pytest -rs -v tests
%files -n python3-pytest-subtests -f %{pyproject_files}
%doc CHANGELOG.rst
%doc README.rst
%changelog
%autochangelog