forked from pool/python-pytest-randomly
Accepting request 829131 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 3.4.1
* Fix numpy error ``ValueError: Seed must be between 0 and 2**32 - 1`` when
passed a seed outside of this range.
- Add upstream patch pytest6.patch to fix tests
OBS-URL: https://build.opensuse.org/request/show/829131
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-randomly?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
dd97f570aa
commit
40b3284969
@@ -19,12 +19,14 @@
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pytest-randomly
|
||||
Version: 3.4.0
|
||||
Version: 3.4.1
|
||||
Release: 0
|
||||
Summary: Pytest plugin to randomly order tests and control random.seed
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pytest-dev/pytest-randomly
|
||||
Source: https://github.com/pytest-dev/pytest-randomly/archive/%{version}.tar.gz
|
||||
#PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-randomly/commit/c89ba6bb4458704f47e08d3f2fcc7cf0ebb8f9da Fix deprecation warnings in tests (#281)
|
||||
Patch0: pytest6.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -65,6 +67,7 @@ Features:
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-randomly-%{version}
|
||||
%patch0 -p1
|
||||
# Disregard Python 3.4+ restriction
|
||||
sed -i '/python_requires/d' setup.py
|
||||
|
||||
@@ -77,10 +80,10 @@ sed -i '/python_requires/d' setup.py
|
||||
|
||||
%check
|
||||
# test_entrypoint_injection needs installed module for pytest to use
|
||||
%pytest -k 'not test_entrypoint_injection and not test_passing_nonsense_for_randomly_seed'
|
||||
%pytest -k 'not test_entrypoint_injection'
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.rst
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user