002f7ad
Name:		python-pytest-harvest
f9580b4
Version:	1.10.4
559ea79
Release:	%autorelease
002f7ad
Summary:	Store data created during test execution and retrieve it at the end
002f7ad
002f7ad
License:	BSD
002f7ad
URL:		https://pypi.org/project/pytest-harvest/
002f7ad
Source0:	%{pypi_source pytest-harvest}
002f7ad
002f7ad
BuildArch:	noarch
002f7ad
BuildRequires:	pyproject-rpm-macros
002f7ad
002f7ad
%description
002f7ad
Store data created during your pytest tests execution, and retrieve it
002f7ad
at the end of the session, e.g. for applicative benchmarking purposes.
002f7ad
002f7ad
%package -n python3-pytest-harvest
002f7ad
Summary: %{summary}
002f7ad
%{?python_provide:%python_provide python3-pytest-harvest}
002f7ad
002f7ad
%description -n python3-pytest-harvest
002f7ad
%{summary}.
002f7ad
002f7ad
%prep
002f7ad
%autosetup -n pytest-harvest-%{version} -p1
002f7ad
002f7ad
cat >pyproject.toml <
002f7ad
[build-system]
002f7ad
requires = ["pytest-runner",
002f7ad
	    "setuptools_scm",
002f7ad
            "wheel",
002f7ad
            "pandas",
002f7ad
            "tabulate",
002f7ad
	    "pypandoc",
002f7ad
	    "six"]
002f7ad
build-backend = "setuptools.build_meta"
002f7ad
EOF
002f7ad
002f7ad
sed -r -i "s/'pandoc', //" setup.py
002f7ad
002f7ad
mv -i -v pytest_harvest/tests/conftest.py .
002f7ad
002f7ad
%generate_buildrequires
002f7ad
%pyproject_buildrequires -r
002f7ad
002f7ad
%build
002f7ad
%pyproject_wheel
002f7ad
002f7ad
%install
002f7ad
%pyproject_install
002f7ad
002f7ad
%check
aa693f1
# This package is effectively tested by python-pytest-cases.
aa693f1
# This one, python-makefun and python-pytest-cases require one another,
aa693f1
# without specifying this, and thus without specifying minimial versions.
aa693f1
# So let's just build the latest version of each and hope for the best.
aa693f1
%{__python3} -m pytest -v || :
002f7ad
002f7ad
%files -n python3-pytest-harvest
002f7ad
%license LICENSE
002f7ad
%doc README.md
002f7ad
%{python3_sitelib}/pytest_harvest/
002f7ad
%{python3_sitelib}/pytest_harvest-%{version}.dist-info/
002f7ad
002f7ad
%changelog
559ea79
%autochangelog