]> git.pld-linux.org Git - packages/python3-pytest-randomly.git/blame - python3-pytest-randomly.spec
rebuild with python 3.10
[packages/python3-pytest-randomly.git] / python3-pytest-randomly.spec
CommitLineData
a6e0e82d
JB
1#
2# Conditional build:
3%bcond_with tests # unit tests (not included in sdist)
4
5Summary: Pytest plugin to randomly order tests and control random.seed
6Summary(pl.UTF-8): Wtyczka pytesta do losowej kolejności testów i sterowania random.seed
7Name: python3-pytest-randomly
88f5cb3f 8Version: 3.11.0
2d78eae3 9Release: 2
a6e0e82d
JB
10License: MIT
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/pytest-randomly/
13Source0: https://files.pythonhosted.org/packages/source/p/pytest-randomly/pytest-randomly-%{version}.tar.gz
88f5cb3f 14# Source0-md5: 13cf321031de846c969aa5522a01ec40
a6e0e82d 15URL: https://pypi.org/project/pytest-randomly/
88f5cb3f 16BuildRequires: python3-modules >= 1:3.7
cd3e026f 17BuildRequires: python3-setuptools >= 1:40.6.0
a6e0e82d
JB
18%if %{with tests}
19BuildRequires: python3-factory_boy
20BuildRequires: python3-faker
21%if "%{_ver_lt '%{py3_ver}' '3.10'}" == "1"
22BuildRequires: python3-importlib-metadata >= 3.6.0
23%endif
24BuildRequires: python3-numpy
25BuildRequires: python3-pytest
26%endif
27BuildRequires: rpm-pythonprov
28BuildRequires: rpmbuild(macros) >= 1.750
88f5cb3f 29Requires: python3-modules >= 1:3.7
a6e0e82d
JB
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34Pytest plugin to randomly order tests and control random.seed.
35
36%description -l pl.UTF-8
37Wtyczka pytesta do losowej kolejności testów i sterowania random.seed.
38
39%prep
40%setup -q -n pytest-randomly-%{version}
41
42%build
43%py3_build
44
45%if %{with tests}
46PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
47PYTEST_PLUGINS="pytester,pytest_randomly" \
48%{__python3} -m pytest tests
49%endif
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54%py3_install
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc HISTORY.rst LICENSE README.rst
62%{py3_sitescriptdir}/pytest_randomly
63%{py3_sitescriptdir}/pytest_randomly-%{version}-py*.egg-info
This page took 0.103301 seconds and 4 git commands to generate.