%global _without_tests 1 # Running the tests requires ipython which requires python-stack-data which # introduces a circular dependency back on python-executing %bcond tests 1 # When tests are enabled, should we also run “very slow” tests? %bcond slow_tests 1 # Package a snapshot to fix test failures with Python 3.13.0rc2 %global commit 3f11fdcd7a017fbdca8a3a9de23dab18d3ba2100 %global snapdate 20240916 Name: python-executing Version: 2.1.0^%{snapdate}git%{sub %{commit} 1 7} Release: 1%{?dist} Summary: Python library for inspecting the current frame run footprint License: MIT URL: https://github.com/alexmojaki/executing %dnl Source: %{pypi_source executing} Source: %{url}/archive/%{commit}/executing-%{commit}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Get information about what a Python frame is currently doing, particularly the AST node being executed} %description %_description %package -n python3-executing Summary: %{summary} %description -n python3-executing %_description %prep %autosetup -p1 -n executing-%{commit} # Remove coverage and coverage-enable-subprocess # from testing deps. sed -Ei "/coverage-?/d" setup.cfg %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION="%(echo '%{version}' | cut -d '^' -f 1)" %pyproject_buildrequires %{?with_tests:-t} %build export SETUPTOOLS_SCM_PRETEND_VERSION="%(echo '%{version}' | cut -d '^' -f 1)" %pyproject_wheel %install %pyproject_install %pyproject_save_files executing %check %pyproject_check_import %if %{with tests} %if %{with slow_tests} export EXECUTING_SLOW_TESTS=1 %endif %tox -- -- -rs %endif %files -n python3-executing -f %{pyproject_files} %doc README.md %license LICENSE.txt %changelog * Sat Sep 21 2024 Benjamin A. Beasley - 2.1.0^20240916git3f11fdc-1 - Package a post-release snapshot to fix regressions - Add a build conditional to optionally enable very slow tests; enable them * Mon Sep 02 2024 Lumír Balhar - 2.1.0-1 - Update to 2.1.0 (rhbz#2309044) * Fri Jul 19 2024 Fedora Release Engineering - 2.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 2.0.1-6 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 2.0.1-5 - Bootstrap for Python 3.13 * Wed Jun 05 2024 Lumír Balhar - 2.0.1-4 - Fix compatibility with Python 3.13 (rhbz#2283503) * Fri Jan 26 2024 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 30 2023 Lumír Balhar - 2.0.1-1 - Update to 2.0.1 (rhbz#2246826) * Fri Oct 20 2023 Karolina Surma - 2.0.0-2 - Conditionalize tests to prevent circular dependency when bootstrapping new Python * Mon Oct 02 2023 Lumír Balhar - 2.0.0-1 - Update to 2.0.0 (rhbz#2241493) * Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 1.2.0-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 01 2022 Lumír Balhar - 1.2.0-1 - Update to 1.2.0 Resolves: rhbz#2138547 * Sun Oct 09 2022 Lumír Balhar - 1.1.1-1 - Update to 1.1.1 Resolves: rhbz#2133192 * Mon Sep 26 2022 Lumír Balhar - 1.1.0-1 - Update to 1.1.0 Resolves: rhbz#2110285 * Fri Jul 22 2022 Fedora Release Engineering - 0.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.8.2-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 27 2021 Roman Inflianskas - 0.8.2-1 - Initial package