diff --git a/.python-pytest-randomly.metadata b/.python-pytest-randomly.metadata new file mode 100644 index 0000000..d36bc05 --- /dev/null +++ b/.python-pytest-randomly.metadata @@ -0,0 +1 @@ +fd4b245c40d16fcb35f55a4ed794fb2f71b4125b SOURCES/pytest-randomly-3.15.0.tar.gz diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/python-pytest-randomly.spec b/SPECS/python-pytest-randomly.spec new file mode 100644 index 0000000..54a520a --- /dev/null +++ b/SPECS/python-pytest-randomly.spec @@ -0,0 +1,52 @@ +%global upstream_name pytest-randomly + +Name: python-%{upstream_name} +Version: 3.15.0 +Release: %autorelease +Summary: Pytest plugin to randomly order tests and control random.seed +License: MIT +URL: https://github.com/pytest-dev/pytest-randomly +Source0: %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +# Required for tests +BuildRequires: python3dist(factory-boy) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(pytest-xdist) + +%description +%{summary}. + +%package -n python3-%{upstream_name} +Summary: %{summary} + +%description -n python3-%{upstream_name} +%{summary}. + +%prep +%autosetup -p1 -n %{upstream_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files pytest_randomly + +%check +# Skip test_model_bakery to avoid new dependency on model_bakery +%pytest -p no:randomly -k 'not test_it_runs_before_stepwise and not test_model_bakery' + +%files -n python3-%{upstream_name} -f %{pyproject_files} +%doc README.rst HISTORY.rst +%license LICENSE + +%changelog +%autochangelog