diff --git a/pytest-random-order-1.0.4.tar.gz b/pytest-random-order-1.0.4.tar.gz deleted file mode 100644 index 5d917a0872f9feb3cd3140ecd40af532943a88a3..0000000000000000000000000000000000000000 Binary files a/pytest-random-order-1.0.4.tar.gz and /dev/null differ diff --git a/pytest-random-order-1.1.0.tar.gz b/pytest-random-order-1.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9764b43dac92992e24b57fbae62763640ad29186 Binary files /dev/null and b/pytest-random-order-1.1.0.tar.gz differ diff --git a/python-pytest-random-order.spec b/python-pytest-random-order.spec index 2b93588d7a3035ce6e3c166ea5edb72e119e6b9a..ebf527e613605691f423c1eda4dcc3753e85d6a0 100644 --- a/python-pytest-random-order.spec +++ b/python-pytest-random-order.spec @@ -1,22 +1,32 @@ -# Created by pyp2rpm-3.3.8 +%global _empty_manifest_terminate_build 0 %global pypi_name pytest-random-order %global pypi_version 1.0.4 +Name: python-pytest-random-order +Version: 1.1.0 +Release: 1 +Summary: Randomise the order in which pytest tests are run with some control over the randomness +License: MIT +URL: https://github.com/jbasko/pytest-random-order +Source0: https://files.pythonhosted.org/packages/3d/ef/93dc9fa0b3b7eb99566813bccaf50216ef1c7d8d07923348fabbd6f7eefc/pytest-random-order-1.1.0.tar.gz +BuildArch: noarch -Name: python-%{pypi_name} -Version: %{pypi_version} -Release: 1 -Summary: Randomise the order in which pytest tests are run with some control over the randomness - -License: MIT -URL: https://github.com/jbasko/pytest-random-order -Source0: %{pypi_source} -BuildArch: noarch +%description +pytest-random-order is a pytest plugin that randomises the order of tests. This +can be useful to detect a test that passes just because it happens to run after +an unrelated test that leaves the system in a favourable state. -BuildRequires: python3-devel -BuildRequires: python3dist(pytest) >= 3 -BuildRequires: python3dist(setuptools) +The plugin allows user to control the level of randomness they want to introduce +and to disable reordering on subsets of tests. Tests can be rerun in a specific +order by passing a seed value reported in a previous test run. -%description +%package -n python3-pytest-random-order +Summary: Randomise the order in which pytest tests are run with some control over the randomness +Provides: python-pytest-random-order = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) >= 3 +BuildRequires: python3dist(setuptools) +Requires: python3-pytest +%description -n python3-pytest-random-order pytest-random-order is a pytest plugin that randomises the order of tests. This can be useful to detect a test that passes just because it happens to run after an unrelated test that leaves the system in a favourable state. @@ -25,35 +35,68 @@ The plugin allows user to control the level of randomness they want to introduce and to disable reordering on subsets of tests. Tests can be rerun in a specific order by passing a seed value reported in a previous test run. -%package -n python3-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} +%package help +Summary: Development documents and examples for pytest-random-order +Provides: python3-pytest-random-order-doc +%description help +pytest-random-order is a pytest plugin that randomises the order of tests. This +can be useful to detect a test that passes just because it happens to run after +an unrelated test that leaves the system in a favourable state. -Requires: python3dist(pytest) >= 3 -Requires: python3dist(setuptools) -%description -n python3-%{pypi_name} -%{description} +The plugin allows user to control the level of randomness they want to introduce +and to disable reordering on subsets of tests. Tests can be rerun in a specific +order by passing a seed value reported in a previous test run. %prep -%autosetup -n %{pypi_name}-%{pypi_version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info +%autosetup -n pytest-random-order-%{version} %build %py3_build %install %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check %{__python3} setup.py test -%files -n python3-%{pypi_name} +%files -n python3-pytest-random-order -f filelist.lst +%dir %{python3_sitelib}/* %license LICENSE -%doc README.rst -%{python3_sitelib}/random_order -%{python3_sitelib}/pytest_random_order-%{pypi_version}-py%{python3_version}.egg-info + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Feb 20 2023 wangjunqi - 1.1.0-1 +- Update package to version 1.1.0 + * Wed Jun 29 2022 konglidong - 1.0.4-1 - Initial package.