2019-07-12 15:48:14 +00:00
|
|
|
# Enabled by default
|
2019-07-12 16:05:17 +00:00
|
|
|
%bcond_without tests
|
2019-07-12 15:48:14 +00:00
|
|
|
|
2022-05-10 16:07:45 +00:00
|
|
|
Name: python-pytest-lazy-fixture
|
2020-08-20 11:10:31 +00:00
|
|
|
Version: 0.6.3
|
2022-05-10 15:52:40 +00:00
|
|
|
Release: %autorelease
|
2019-07-12 15:48:14 +00:00
|
|
|
Summary: Use fixtures in pytest.mark.parametrize
|
|
|
|
|
|
|
|
License: MIT
|
2022-05-10 16:07:45 +00:00
|
|
|
URL: https://github.com/tvorog/pytest-lazy-fixture
|
|
|
|
Source0: %{pypi_source pytest-lazy-fixture}
|
2019-07-12 15:48:14 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2022-05-10 16:07:45 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Use fixtures in pytest.mark.parametrize.}
|
|
|
|
|
2019-07-12 15:48:14 +00:00
|
|
|
%description %_description
|
|
|
|
|
2022-05-10 16:07:45 +00:00
|
|
|
%package -n python3-pytest-lazy-fixture
|
2019-07-12 15:48:14 +00:00
|
|
|
Summary: %{summary}
|
|
|
|
|
2022-05-10 16:07:45 +00:00
|
|
|
%description -n python3-pytest-lazy-fixture %_description
|
2019-07-12 15:48:14 +00:00
|
|
|
|
|
|
|
%prep
|
2022-05-10 16:07:45 +00:00
|
|
|
%autosetup -n pytest-lazy-fixture-%{version}
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
2019-07-12 15:48:14 +00:00
|
|
|
|
|
|
|
%build
|
2022-05-10 16:07:45 +00:00
|
|
|
%pyproject_wheel
|
2019-07-12 15:48:14 +00:00
|
|
|
|
|
|
|
%install
|
2022-05-10 16:07:45 +00:00
|
|
|
%pyproject_install
|
2024-01-04 18:29:45 +00:00
|
|
|
%pyproject_save_files -l pytest_lazyfixture
|
2019-07-12 15:48:14 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%if %{with tests}
|
2022-05-10 16:07:45 +00:00
|
|
|
%pytest
|
2019-07-12 15:48:14 +00:00
|
|
|
%endif
|
|
|
|
|
2022-05-10 16:07:45 +00:00
|
|
|
%files -n python3-pytest-lazy-fixture -f %{pyproject_files}
|
2019-07-12 15:48:14 +00:00
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%changelog
|
2022-05-10 15:52:40 +00:00
|
|
|
%autochangelog
|