## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 date 20250215 %global commit 6a7b6776be95040d67bc6f709ab9ec8937b5be27 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-pytest-golden Version: 0.2.2^%{date}git%{shortcommit} Release: %autorelease Summary: Plugin for pytest that offloads expected outputs to data files License: MIT URL: https://github.com/oprypin/pytest-golden # PyPI tarball doesn't include tests #Source: %%{url}/archive/v%%{version}/pytest-golden-%%{version}.tar.gz # latest release too old, will ask upstream to mergee PR =#8 and release Source: %{url}/archive/%{commit}/pytest-golden-%{version}.tar.gz # Drop deprecated atomicwrites dependency Patch: https://github.com/oprypin/pytest-golden/pull/8.patch#/pytest-golden-drop-atomicwrites.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package provides a plugin for pytest that offloads expected outputs to data files.} %description %_description %package -n python3-pytest-golden Summary: %{summary} %description -n python3-pytest-golden %_description %prep #autosetup -p1 -n pytest-golden-%%{version} %autosetup -p1 -n pytest-golden-%{commit} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L pytest_golden %check %pytest -v %files -n python3-pytest-golden -f %{pyproject_files} %license LICENSE.md %doc README.md %changelog ## START: Generated by rpmautospec * Wed Oct 29 2025 Michel Lind - 0.2.2^20250215git6a7b677-1 - Update to latest snapshot and drop deprecated atomicwrites dependency - Resolves: RHBZ#2403318 * Fri Sep 19 2025 Python Maint - 0.2.2-7 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 0.2.2-6 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jun 02 2025 Python Maint - 0.2.2-4 - Rebuilt for Python 3.14 * Wed Feb 19 2025 Davide Cavalca - 0.2.2-3 - Backport upstream commits to switch from poetry to hatch * Sat Jan 18 2025 Fedora Release Engineering - 0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 13 2024 Davide Cavalca - 0.2.2-1 - Initial import; Fixes: RHBZ#2332084 ## END: Generated by rpmautospec