You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-pytest-randomly/python-pytest-randomly.spec

52 lines
1.2 KiB

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