Dan Callaghan 6e3f6cb
%global upstream_name pytest-randomly
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
Name:           python-%{upstream_name}
f4f0045
Version:        3.13.0
4ee6c2d
Release:        %autorelease
Dan Callaghan 6e3f6cb
Summary:        Pytest plugin to randomly order tests and control random.seed
fafe2df
License:        MIT
Dan Callaghan 6e3f6cb
URL:            https://github.com/pytest-dev/pytest-randomly
633e466
Source0:        %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz
cfa7218
Dan Callaghan 6e3f6cb
BuildArch:      noarch
Dan Callaghan 6e3f6cb
633e466
BuildRequires:  python3-devel
633e466
BuildRequires:  pyproject-rpm-macros
633e466
633e466
# Required for tests
633e466
BuildRequires:  python3dist(factory-boy)
4ee6c2d
BuildRequires:  python3dist(numpy)
633e466
BuildRequires:  python3dist(pytest-forked)
633e466
BuildRequires:  python3dist(pytest-xdist)
633e466
Dan Callaghan 6e3f6cb
%description
Dan Callaghan 6e3f6cb
%{summary}.
Dan Callaghan 6e3f6cb
633e466
%package -n     python3-%{upstream_name}
633e466
Summary:        %{summary}
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%description -n python3-%{upstream_name}
Dan Callaghan 6e3f6cb
%{summary}.
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%prep
cfa7218
%autosetup -p1 -n %{upstream_name}-%{version}
633e466
633e466
%generate_buildrequires
4ee6c2d
%pyproject_buildrequires
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%build
633e466
%pyproject_wheel
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%install
633e466
%pyproject_install
633e466
%pyproject_save_files pytest_randomly
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%check
633e466
%pytest -p no:randomly -k 'not test_it_runs_before_stepwise'
633e466
633e466
%files -n python3-%{upstream_name} -f %{pyproject_files}
eb9532b
%doc README.rst HISTORY.rst
Dan Callaghan 6e3f6cb
%license LICENSE
Dan Callaghan 6e3f6cb
Dan Callaghan 6e3f6cb
%changelog
4ee6c2d
%autochangelog