3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Nose plugin to randomly order tests and control random.seed
8 Summary(pl.UTF-8): Wtyczka nose do losowania kolejności testów oraz sterowania random.seed
9 Name: python-nose_randomly
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/nose-randomly/
15 Source0: https://files.pythonhosted.org/packages/source/n/nose-randomly/nose-randomly-%{version}.tar.gz
16 # Source0-md5: e358c97da4be4514b8505c27ca8e8a5d
17 URL: https://pypi.org/project/nose-randomly/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-nose
26 BuildRequires: python3-modules >= 1:3.4
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-nose
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Nose plugin to randomly order tests and control random.seed.
41 %description -l pl.UTF-8
42 Wtyczka nose do losowania kolejności testów oraz sterowania
45 %package -n python3-nose_randomly
46 Summary: Nose plugin to randomly order tests and control random.seed
47 Summary(pl.UTF-8): Wtyczka nose do losowania kolejności testów oraz sterowania random.seed
48 Group: Libraries/Python
49 Requires: python3-modules >= 1:3.4
51 %description -n python3-nose_randomly
52 Nose plugin to randomly order tests and control random.seed.
54 %description -n python3-nose_randomly -l pl.UTF-8
55 Wtyczka nose do losowania kolejności testów oraz sterowania
59 %setup -q -n nose-randomly-%{version}
66 %{__python} -m nose tests
74 %{__python3} -m nose tests
79 rm -rf $RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc AUTHORS.rst HISTORY.rst LICENSE README.rst
98 %{py_sitescriptdir}/nose_randomly.py[co]
99 %{py_sitescriptdir}/nose_randomly-%{version}-py*.egg-info
103 %files -n python3-nose_randomly
104 %defattr(644,root,root,755)
105 %doc AUTHORS.rst HISTORY.rst LICENSE README.rst
106 %{py3_sitescriptdir}/nose_randomly.py
107 %{py3_sitescriptdir}/__pycache__/nose_randomly.cpython-*.py[co]
108 %{py3_sitescriptdir}/nose_randomly-%{version}-py*.egg-info