diff --git a/.gitignore b/.gitignore index 4ccf922..fb7de26 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1 @@ -/pytest-randomly-1.2.3.tar.gz -/pytest-randomly-3.2.1.tar.gz -/pytest-randomly-3.3.1.tar.gz -/pytest-randomly-3.4.0.tar.gz -/pytest-randomly-3.4.1.tar.gz -/pytest-randomly-3.5.0.tar.gz -/pytest-randomly-3.10.1.tar.gz -/pytest-randomly-3.10.3.tar.gz -/pytest-randomly-3.11.0.tar.gz -/pytest-randomly-3.12.0.tar.gz +SOURCES/pytest-randomly-3.15.0.tar.gz diff --git a/.python-pytest-randomly.metadata b/.python-pytest-randomly.metadata new file mode 100644 index 0000000..d36bc05 --- /dev/null +++ b/.python-pytest-randomly.metadata @@ -0,0 +1 @@ +fd4b245c40d16fcb35f55a4ed794fb2f71b4125b SOURCES/pytest-randomly-3.15.0.tar.gz diff --git a/SPECS/python-pytest-randomly.spec b/SPECS/python-pytest-randomly.spec new file mode 100644 index 0000000..e1f20a2 --- /dev/null +++ b/SPECS/python-pytest-randomly.spec @@ -0,0 +1,165 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global upstream_name pytest-randomly + +Name: python-%{upstream_name} +Version: 3.15.0 +Release: %autorelease +Summary: Pytest plugin to randomly order tests and control random.seed +License: MIT +URL: https://github.com/pytest-dev/pytest-randomly +Source0: %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +# Required for tests +BuildRequires: python3dist(factory-boy) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(pytest-xdist) + +%description +%{summary}. + +%package -n python3-%{upstream_name} +Summary: %{summary} + +%description -n python3-%{upstream_name} +%{summary}. + +%prep +%autosetup -p1 -n %{upstream_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files pytest_randomly + +%check +# Skip test_model_bakery to avoid new dependency on model_bakery +%pytest -p no:randomly -k 'not test_it_runs_before_stepwise and not test_model_bakery' + +%files -n python3-%{upstream_name} -f %{pyproject_files} +%doc README.rst HISTORY.rst +%license LICENSE + +%changelog +* Tue Dec 17 2024 Arkady L. Shane - 3.15.0-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Oct 19 2024 Mikel Olasagasti Uranga - 3.15.0-4 +- pytest-forked not required since release 3.13 + +* Fri Jul 19 2024 Fedora Release Engineering - 3.15.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 3.15.0-2 +- Rebuilt for Python 3.13 + +* Fri Mar 08 2024 Mikel Olasagasti Uranga - 3.15.0-1 +- Update to 3.15.0 - Closes rhbz#2232088 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.13.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 3.13.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Mikel Olasagasti Uranga - 3.13.0-1 +- Update to 3.13.0 - Closes rhbz#2221652 + +* Fri Jun 16 2023 Python Maint - 3.12.0-6 +- Rebuilt for Python 3.12 + +* Wed Apr 12 2023 Miro Hrončok - 3.12.0-5 +- Fix tests failures with pytest 7.3.x + +* Fri Jan 20 2023 Fedora Release Engineering - 3.12.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 3.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 14 2022 Python Maint - 3.12.0-2 +- Rebuilt for Python 3.11 + +* Wed May 11 2022 Mikel Olasagasti Uranga - 3.12.0-1 +- Update to 3.12.0 - Closes rhbz#2084246 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.11.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Jan 17 2022 Mikel Olasagasti Uranga - 3.11.0-1 +- Update to 3.11.0 - Closes rhbz#2038996 + +* Sat Nov 06 2021 Mikel Olasagasti Uranga - 3.10.1-1 +- Update to 3.10.1 +- Switch to pyproject-rpm-macros + +* Fri Jul 23 2021 Fedora Release Engineering - 3.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 3.5.0-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Dec 12 2020 Dan Callaghan - 3.5.0-1 +- new upstream release 3.5.0, including license change to MIT: + https://github.com/pytest-dev/pytest-randomly/blob/3.5.0/HISTORY.rst + +* Thu Aug 20 2020 Merlin Mathesius - 3.4.1-4 +- Fix Rawhide FTBFS error by pulling in upstream patch +- Fix ELN FTBFS error by making minor conditional fixes + +* Wed Jul 29 2020 Fedora Release Engineering - 3.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 15 2020 Dan Callaghan - 3.4.1-2 +- skip tests for optional faker integration when it is not available + +* Wed Jul 15 2020 Dan Callaghan - 3.4.1-1 +- new upstream release 3.4.1: + https://github.com/pytest-dev/pytest-randomly/blob/3.4.1/HISTORY.rst + +* Sat Jun 13 2020 Dan Callaghan - 3.4.0-1 +- new upstream release 3.4.0: + https://github.com/pytest-dev/pytest-randomly/blob/3.4.0/HISTORY.rst + +* Tue May 26 2020 Miro Hrončok - 3.3.1-2 +- Rebuilt for Python 3.9 + +* Sun May 17 2020 Dan Callaghan - 3.3.1-1 +- new upstream release 3.3.1: + https://github.com/pytest-dev/pytest-randomly/blob/3.3.1/HISTORY.rst + +* Thu Jan 30 2020 Dan Callaghan - 3.2.1-1 +- new upstream release 3.2.1 + +* Mon Dec 30 2019 Dan Callaghan - 1.2.3-2 +- re-enabled tests, suppress pytest bytecode + +* Mon Dec 31 2018 Dan Callaghan - 1.2.3-1 +- initial version + +## END: Generated by rpmautospec diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec deleted file mode 100644 index 0619c02..0000000 --- a/python-pytest-randomly.spec +++ /dev/null @@ -1,51 +0,0 @@ -%global upstream_name pytest-randomly - -Name: python-%{upstream_name} -Version: 3.12.0 -Release: %autorelease -Summary: Pytest plugin to randomly order tests and control random.seed -License: MIT -URL: https://github.com/pytest-dev/pytest-randomly -Source0: %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz -BuildArch: noarch - -BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros - -# Required for tests -BuildRequires: python3dist(factory-boy) -BuildRequires: python3dist(numpy) -BuildRequires: python3dist(pytest-forked) -BuildRequires: python3dist(pytest-xdist) - -%description -%{summary}. - -%package -n python3-%{upstream_name} -Summary: %{summary} - -%description -n python3-%{upstream_name} -%{summary}. - -%prep -%autosetup -n %{upstream_name}-%{version} - -%generate_buildrequires -%pyproject_buildrequires - -%build -%pyproject_wheel - -%install -%pyproject_install -%pyproject_save_files pytest_randomly - -%check -%pytest -p no:randomly -k 'not test_it_runs_before_stepwise' - -%files -n python3-%{upstream_name} -f %{pyproject_files} -%doc README.rst HISTORY.rst -%license LICENSE - -%changelog -%autochangelog diff --git a/sources b/sources deleted file mode 100644 index bac4e7c..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (pytest-randomly-3.12.0.tar.gz) = e2241c1304b9597f93cc57d6830808f85c59ea1b4815624dcd9d088f87eb4a34d6cb6394de9c31ebedcb8280fb6ff12b110fd5a559ab28c9e0381481fce52c4d