diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..104cff2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-randomly-1.2.3.tar.gz diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec new file mode 100644 index 0000000..86bc6db --- /dev/null +++ b/python-pytest-randomly.spec @@ -0,0 +1,51 @@ +%global upstream_name pytest-randomly +%global module_name pytest_randomly + +Name: python-%{upstream_name} +Version: 1.2.3 +Release: 1%{?dist} +Summary: Pytest plugin to randomly order tests and control random.seed +License: BSD +URL: https://github.com/pytest-dev/pytest-randomly +Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz +BuildArch: noarch + +%description +%{summary}. + +%package -n python3-%{upstream_name} +Summary: Pytest plugin to randomly order tests and control random.seed +%{?python_provide:%python_provide python3-%{upstream_name}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +# Only for running the tests: +BuildRequires: python3-pytest +BuildRequires: python3-factory-boy +BuildRequires: python3-numpy + +%description -n python3-%{upstream_name} +%{summary}. + +%prep +%setup -q -n %{upstream_name}-%{version} +rm -r *.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +# Tests are failing currently due to: +# https://bugzilla.redhat.com/show_bug.cgi?id=1662619 +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v tests/ || : + +%files -n python3-%{upstream_name} +%doc README.rst HISTORY.rst AUTHORS.rst +%license LICENSE +%{python3_sitelib}/%{module_name}.py +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{module_name}*.egg-info + +%changelog diff --git a/sources b/sources new file mode 100644 index 0000000..feaed6b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a14d9ac82ac744e7c3ddf51e62d5c751 pytest-randomly-1.2.3.tar.gz