Blob Blame History Raw
Name:		python-pytest-steps
Version:	1.7.2
Release:	%autorelease
Summary:	Create step-wise / incremental tests in pytest

License:	BSD
Source0:	%{pypi_source pytest-steps}

BuildArch:	noarch
BuildRequires:	pyproject-rpm-macros


%package -n python3-pytest-steps
Summary: %{summary}
%{?python_provide:%python_provide python3-pytest-steps}

%description -n python3-pytest-steps

%autosetup -n pytest-steps-%{version}

# upstream has a pyproject.toml file, but it does not have enough stuff.
cat >pyproject.toml <<EOF
requires = ["pytest-runner",
build-backend = "setuptools.build_meta"

sed -r -i "s/'pandoc', //"
sed -r -i "s/(TESTS_REQUIRE = \[.*)\]/\1, 'wrapt'\]/"

mv -i -v pytest_steps/tests/ .

%pyproject_buildrequires -r



  --ignore=pytest_steps/tests/ # avoid circular dep

  # Those fail with python-pandas-2.2.1-4.fc41~bootstrap
PYTHONPATH=%{buildroot}/%{python3_sitelib} %{__python3} -m pytest -v "${args[@]}"

%files -n python3-pytest-steps
%license LICENSE