From 66592721da175648635df49a4a666de7ff4e9880 Mon Sep 17 00:00:00 2001 From: akhila-guruju Date: Thu, 20 Feb 2025 09:03:32 +0000 Subject: [PATCH] Upgrade: python-pytest-subtests version to 0.12.1 --- .../python-pytest-subtests.signatures.json | 8 +- .../python-pytest-subtests.spec | 105 +++++++++++++----- cgmanifest.json | 4 +- 3 files changed, 81 insertions(+), 36 deletions(-) diff --git a/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.signatures.json b/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.signatures.json index c2c35cd8b5d..b9aec3ce05b 100644 --- a/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.signatures.json +++ b/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.signatures.json @@ -1,5 +1,5 @@ { - "Signatures": { - "python-pytest-subtests-0.3.1.tar.gz": "f673d8536eb8a153dd9c871b55c06aa3dea55cbdcf3bb3cdd4c4149a4e81606f" - } -} + "Signatures": { + "python-pytest-subtests-0.12.1.tar.gz": "d6605dcb88647e0b7c1889d027f8ef1c17d7a2c60927ebfdc09c7b0d8120476d" + } +} \ No newline at end of file diff --git a/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.spec b/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.spec index ddf9924a45a..5681f33ecaf 100644 --- a/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.spec +++ b/SPECS-EXTENDED/python-pytest-subtests/python-pytest-subtests.spec @@ -1,24 +1,17 @@ -%{!?python3_pkgversion: %global python3_pkgversion 3} -%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} -%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} -%{!?__python3: %global __python3 /usr/bin/python3} -%{!?py3_build: %define py3_build CFLAGS="%{optflags}" %{__python3} setup.py build} -%{!?py3_install: %define py3_install %{__python3} setup.py install --skip-build --root %{buildroot}} - %global pypi_name pytest-subtests -Summary: Support for unittest subTest() and subtests fixture Name: python-%{pypi_name} -Version: 0.3.1 +Version: 0.12.1 Release: 4%{?dist} +Summary: Support for unittest subTest() and subtests fixture + +# SPDX License: MIT +Vendor: Microsoft Corporation +Distribution: Azure Linux URL: https://github.com/pytest-dev/pytest-subtests -#Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz -Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-0.12.1.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch -%if 0%{?with_check} -BuildRequires: python3-pip -%endif %description pytest-subtests unittest subTest() support and subtests fixture. @@ -27,8 +20,11 @@ pytest-subtests unittest subTest() support and subtests fixture. Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm +BuildRequires: python3dist(pytest) +BuildRequires: python3-wheel +BuildRequires: python3-pip +BuildRequires: python3-setuptools_scm + %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} @@ -36,34 +32,83 @@ pytest-subtests unittest subTest() support and subtests fixture. %prep %autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -r %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files pytest_subtests %check -pip3 install pytest==7.1.2 # https://github.com/pytest-dev/pytest-subtests/issues/21 -PYTHONDONTWRITEBYTECODE=1 pytest -v tests \ +PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \ + %{python3} -m pytest -v tests \ -k "not TestFixture and not TestCapture and not test_simple_terminal" -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc CHANGELOG.rst README.rst %license LICENSE -%doc README.rst -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/pytest_subtests.py -%{python3_sitelib}/pytest_subtests-%{version}-py*.egg-info/ %changelog -* Thu Apr 29 2022 Muhammad Falak - 0.3.1-4 -- Drop BR on pytest & pip install latest deps to enable ptest +* Thu Feb 20 2025 Akhila Guruju - 0.12.1-4 +- Initial Azure Linux import from Fedora 41 (license: MIT). - License verified +- Added `BuildRequires: python3-setuptools_scm` to fix build + +* Fri Jul 19 2024 Fedora Release Engineering - 0.12.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.12.1-2 +- Rebuilt for Python 3.13 + +* Mon Apr 08 2024 Fabian Affolter - 0.12.1 +- Update to latest upstream release (closes rhbz#2196751, closes rhbz#2203842) + +* Fri Jan 26 2024 Fedora Release Engineering - 0.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 0.10.0-2 +- Rebuilt for Python 3.12 + +* Mon Mar 27 2023 Christian Heimes - 0.10.0-1 +- Update to 0.10.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.5.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.5.0-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Aug 25 2021 Fabian Affolter - 0.5.0-1 +- Update to latest upstream release 0.5.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 02 2021 Python Maint - 0.4.0-2 +- Rebuilt for Python 3.10 + +* Sun Feb 07 2021 Christian Heimes - 0.4.0-1 +- Update to 0.4 (#1925972) -* Wed Dec 09 2020 Steve Laughman - 0.3.1-3 -- Initial CBL-Mariner import from Fedora 33 (license: MIT) +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/cgmanifest.json b/cgmanifest.json index 7b8fd8438ee..608e28d6c31 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -24213,8 +24213,8 @@ "type": "other", "other": { "name": "python-pytest-subtests", - "version": "0.3.1", - "downloadUrl": "https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-0.3.1.tar.gz" + "version": "0.12.1", + "downloadUrl": "https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-0.12.1.tar.gz" } } },