Blame SPECS/python-pytest-randomly.spec

ffb158
%global upstream_name pytest-randomly
ffb158
ffb158
Name:           python-%{upstream_name}
ffb158
Version:        3.15.0
ffb158
Release:        %autorelease
ffb158
Summary:        Pytest plugin to randomly order tests and control random.seed
ffb158
License:        MIT
ffb158
URL:            https://github.com/pytest-dev/pytest-randomly
ffb158
Source0:        %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz
ffb158
ffb158
BuildArch:      noarch
ffb158
ffb158
BuildRequires:  python3-devel
ffb158
BuildRequires:  pyproject-rpm-macros
ffb158
ffb158
# Required for tests
ffb158
BuildRequires:  python3dist(factory-boy)
ffb158
BuildRequires:  python3dist(numpy)
ffb158
BuildRequires:  python3dist(pytest-xdist)
ffb158
ffb158
%description
ffb158
%{summary}.
ffb158
ffb158
%package -n     python3-%{upstream_name}
ffb158
Summary:        %{summary}
ffb158
ffb158
%description -n python3-%{upstream_name}
ffb158
%{summary}.
ffb158
ffb158
%prep
ffb158
%autosetup -p1 -n %{upstream_name}-%{version}
ffb158
ffb158
%generate_buildrequires
ffb158
%pyproject_buildrequires
ffb158
ffb158
%build
ffb158
%pyproject_wheel
ffb158
ffb158
%install
ffb158
%pyproject_install
ffb158
%pyproject_save_files pytest_randomly
ffb158
ffb158
%check
ffb158
# Skip test_model_bakery to avoid new dependency on model_bakery
ffb158
%pytest -p no:randomly -k 'not test_it_runs_before_stepwise and not test_model_bakery'
ffb158
ffb158
%files -n python3-%{upstream_name} -f %{pyproject_files}
ffb158
%doc README.rst HISTORY.rst
ffb158
%license LICENSE
ffb158
ffb158
%changelog
ffb158
%autochangelog