From cc289650b7d774443962898599339137857956bb Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 16:41:07 +0300 Subject: [PATCH] import python-pytest-doctestplus-1.2.1-3.el10 --- .gitignore | 1 + .python-pytest-doctestplus.metadata | 1 + SPECS/python-pytest-doctestplus.spec | 195 +++++++++++++++++++++++++++ 3 files changed, 197 insertions(+) create mode 100644 .gitignore create mode 100644 .python-pytest-doctestplus.metadata create mode 100644 SPECS/python-pytest-doctestplus.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe83479 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pytest-doctestplus-1.2.1.tar.gz diff --git a/.python-pytest-doctestplus.metadata b/.python-pytest-doctestplus.metadata new file mode 100644 index 0000000..641a11a --- /dev/null +++ b/.python-pytest-doctestplus.metadata @@ -0,0 +1 @@ +acabcb77397f04749750849cc0f666ddcb4c0455 SOURCES/pytest-doctestplus-1.2.1.tar.gz diff --git a/SPECS/python-pytest-doctestplus.spec b/SPECS/python-pytest-doctestplus.spec new file mode 100644 index 0000000..d7df5c3 --- /dev/null +++ b/SPECS/python-pytest-doctestplus.spec @@ -0,0 +1,195 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 srcname pytest-doctestplus +%global pythonicname pytest_doctestplus +%global sum Pytest plugin with advanced doctest features + +Name: python-%{srcname} +Version: 1.2.1 +Release: %autorelease +Summary: Pytest plugin with advanced doctest features + +License: BSD-3-Clause +URL: https://github.com/scientific-python/pytest-doctestplus +Source0: %{pypi_source} + +BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +The doctestplus plugin provides advanced features for testing example Python +code that is included in Python docstrings and in standalone documentation +files. + +Good documentation for developers contains example code. This is true of both +standalone documentation and of documentation that is integrated with the +code itself. Python provides a mechanism for testing code snippets that are +provided in Python docstrings. The unit test framework pytest provides a +mechanism for running doctests against both docstrings in source code and in +standalone documentation files. + +This plugin augments the functionality provided by Python and pytest by +providing the following features: +* approximate floating point comparison for doctests that produce floating + point results +* skipping particular classes, methods, and functions when running doctests +* handling doctests that use remote data in conjunction with the + pytest-remotedata plugin +* optional inclusion of *.rst files for doctests} + +%description %_description + + +%package -n python3-%{srcname} +Summary: %{summary} + + +%description -n python3-%{srcname} %_description + + +%prep +%autosetup -n %{srcname}-%{version} + +# Remove egg files from source +rm -r %{pythonicname}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -x test + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{pythonicname} + + +%check +%pyproject_check_import + + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE.rst +%doc CHANGES.rst README.rst + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 1.2.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 1.2.1-2 +- Rebuilt for Python 3.13 + +* Sat Mar 16 2024 Sergio Pascual - 1.2.1-1 +- New upstream source 1.2.1 + +* Wed Mar 06 2024 Sergio Pascual - 1.2.0-1 +- Update to 1.2.0 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 31 2023 Sergio Pascual - 1.1.0-1 +- New upstream version 1.1.0 +- Updated url and summary +- Updated to use SPDX license name + +* Fri Jul 21 2023 Fedora Release Engineering - 0.12.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 0.12.0-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Aug 08 2022 Mattia Verga - 0.12.0-1 +- Update to 0.12.0 (fedora#2058783) +- Switch to modern python build macros + +* Fri Jul 22 2022 Fedora Release Engineering - 0.11.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.11.2-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Dec 31 2021 Christian Dersch - 0.11.2-1 +- new version + +* Fri Jul 23 2021 Fedora Release Engineering - 0.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.9.0-2 +- Rebuilt for Python 3.10 + +* Sun Feb 28 2021 Mattia Verga - 0.9.0-1 +- Update to 0.9.0 +- Fixes rhbz#1916541 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 13 2020 Mattia Verga - 0.8.0-1 +- Update to 0.8.0 +- Fixes rhbz#1862639 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Christian Dersch - 0.7.0-1 +- new version + +* Tue May 26 2020 Miro Hrončok - 0.3.0-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.3.0-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.3.0-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 29 2019 Christian Dersch - 0.3.0-1 +- new version + +* Sat Feb 02 2019 Fedora Release Engineering - 0.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 24 2018 Christian Dersch - 0.1.3-1 +- new version + +* Tue Jun 19 2018 Miro Hrončok - 0.1.2-2 +- Rebuilt for Python 3.7 + +* Sat Mar 17 2018 Christian Dersch - 0.1.2-1 +- initial packaging effort + +## END: Generated by rpmautospec