## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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 Name: python-venusian Version: 3.1.0 Release: %autorelease Summary: A library for deferring decorator actions # The entire source is BSD-3-Clause-Modification, except: # ZPL-2.1: tests/test_advice.py src/venusian/advice.py # License Review: BSD-3-Clause-Modification # https://gitlab.com/fedora/legal/fedora-license-data/-/issues/108 License: BSD-3-Clause-Modification AND ZPL-2.1 URL: https://github.com/Pylons/venusian Source: %{pypi_source venusian} # Accommodate FrameLocalsProxy introduction in Python 3.13 # https://github.com/Pylons/venusian/pull/92 # # Fixes: # # Test failure in FrameInfoTest::testCallInfo on Python 3.13 # https://github.com/Pylons/venusian/issues/91 # # python-venusian fails to build with Python 3.13: AssertionError: # self.assertTrue(f_locals is locals()) # https://bugzilla.redhat.com/show_bug.cgi?id=2280554 Patch: %{url}/pull/92.patch BuildArch: noarch BuildRequires: python3-devel # There is a “testing” extra, but it’s not worth generating BR’s from it # because everything other than pytest is for coverage analysis and would need # to be patched out. # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters BuildRequires: python3dist(pytest) %global common_description %{expand: Venusian is a library which allows framework authors to defer decorator actions. Instead of taking actions when a function (or class) decorator is executed at import time, you can defer the action usually taken by the decorator until a separate “scan” phase.} %description %{common_description} %package -n python3-venusian Summary: %{summary} %description -n python3-venusian %{common_description} %prep %autosetup -n venusian-%{version} -p1 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i 's/ --cov[^[:blank:]]*//g' setup.cfg %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files venusian %check %pytest %files -n python3-venusian -f %{pyproject_files} # pyproject_files handles LICENSE.txt in dist-info, but COPYRIGHT.txt is not # present there, so we manually install both files to %%{_licensedir} %license COPYRIGHT.txt %license LICENSE.txt %doc CHANGES.rst %doc CONTRIBUTORS.txt %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 3.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.1.0-5 - Rebuilt for Python 3.13 * Wed May 15 2024 Benjamin A. Beasley - 3.1.0-4 - Backport proposed patch for Python 3.13 (close RHBZ#2280554) * Fri Jan 26 2024 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 09 2023 Benjamin A. Beasley - 3.1.0-1 - Update to 3.1.0 (close RHBZ#2248560) * Fri Jul 21 2023 Fedora Release Engineering - 3.0.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 3.0.0-13 - Rebuilt for Python 3.12 * Tue Mar 07 2023 Benjamin A. Beasley - 3.0.0-12 - Backport Python 3.12 fixes (close RHBZ#2176132) * Fri Jan 20 2023 Fedora Release Engineering - 3.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 06 2022 Benjamin A. Beasley - 3.0.0-8 - Convert to pyproject-rpm-macros - Update License to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 3.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.0.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 3.0.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 3.0.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 30 2020 Kevin Fenzi - 3.0.0-1 - Update to 3.0.0. Fixes Bug 1768869 * Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 1.2.0-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.2.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Fri Aug 30 2019 Miro Hrončok - 1.2.0-4 - Subpackage python2-venusian has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Aug 17 2019 Miro Hrončok - 1.2.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 26 2019 Randy Barlow - 1.2.0-1 - Update to 1.2.0. - https://github.com/Pylons/venusian/blob/1.2.0/CHANGES.rst * Sat Feb 02 2019 Fedora Release Engineering - 1.0-0.24.a7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jul 25 2018 Pierre-Yves Chibon - 1.0-0.23.a7 - Use the py2 version of the macros * Sat Jul 14 2018 Fedora Release Engineering - 1.0-0.22.a7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jun 17 2018 Miro Hrončok - 1.0-0.21.a7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0-0.20.a7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 31 2018 Iryna Shcherbina - 1.0-0.19.a7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) ## END: Generated by rpmautospec