Packit ffe6b1d
%global desc %{expand:
Packit ffe6b1d
REQUest REcordingRequre [rekure] - Is Library for storing output of various
Packit ffe6b1d
function and methods to persistent storage and be able to replay the stored
Packit ffe6b1d
output to functions.}
Packit ffe6b1d
84b3cb9
Packit ffe6b1d
Name:           python-requre
Packit a695e5c
Version:        0.8.4
Packit ffe6b1d
Release:        1%{?dist}
Packit ffe6b1d
Summary:        Python library that allows re/store output of various objects for testing
84b3cb9
84b3cb9
License:        MIT
0b6d665
URL:            https://github.com/packit/requre
Packit ffe6b1d
Source0:        %{pypi_source requre}
84b3cb9
BuildArch:      noarch
84b3cb9
84b3cb9
BuildRequires:  python3-devel
Packit ffe6b1d
84b3cb9
84b3cb9
%description
Packit ffe6b1d
%{desc}
Packit ffe6b1d
84b3cb9
Packit ffe6b1d
%package -n     python3-requre
84b3cb9
Summary:        %{summary}
84b3cb9
0b6d665
Packit ffe6b1d
%description -n python3-requre
Packit ffe6b1d
%{desc}
Packit ffe6b1d
84b3cb9
84b3cb9
%prep
Packit ffe6b1d
%autosetup -n requre-%{version}
Packit ffe6b1d
Packit ffe6b1d
Packit ffe6b1d
%generate_buildrequires
Packit ffe6b1d
# The -w flag is required for EPEL 9's older hatchling
Packit ffe6b1d
%pyproject_buildrequires %{?el9:-w}
Packit ffe6b1d
84b3cb9
84b3cb9
%build
Packit ffe6b1d
%pyproject_wheel
Packit ffe6b1d
84b3cb9
84b3cb9
%install
Packit ffe6b1d
%pyproject_install
Packit ffe6b1d
%pyproject_save_files requre
84b3cb9
Packit ffe6b1d
Packit ffe6b1d
%files -n python3-requre -f %{pyproject_files}
Packit ffe6b1d
# Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case
Packit ffe6b1d
%if 0%{?el9}
84b3cb9
%license LICENSE
Packit ffe6b1d
%endif
84b3cb9
%doc README.md
84b3cb9
%{_bindir}/requre-patch
Packit ffe6b1d
84b3cb9
84b3cb9
%changelog
Packit a695e5c
* Sun Jan 07 2024 Packit <hello@packit.dev> - 0.8.4-1
Packit a695e5c
- Provide `__version__` of the package so it can be easily checked when installed on the system.
Packit a695e5c
Packit ffe6b1d
* Mon Oct 30 2023 Packit <hello@packit.dev> - 0.8.3-1
Packit ffe6b1d
- Fix an issue of clashing with the _coverage_.
Packit ffe6b1d
- Packaging has been modernized.
Packit ffe6b1d
4747d3f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-6
4747d3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
4747d3f
20fb7d3
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.8.2-5
20fb7d3
- Rebuilt for Python 3.12
20fb7d3
fbf0cd3
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
fbf0cd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fbf0cd3
73b288e
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
73b288e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
73b288e
835d77b
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.8.2-2
835d77b
- Rebuilt for Python 3.11
835d77b
Packit 0d51d48
* Mon Apr 25 2022 Packit <hello@packit.dev> - 0.8.2-1
Packit 0d51d48
- No user-facing changes.
Packit 0d51d48
3ac24aa
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
3ac24aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3ac24aa
cecb2a3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
cecb2a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cecb2a3
44d46b4
* Fri Jun 18 2021 Frantisek Lachman <flachman@redhat.com> - 0.8.1-2
44d46b4
- Fix the changelog formatting.
44d46b4
Packit Service 1c05ce7
* Fri Jun 18 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.8.1-1
Packit Service 1c05ce7
- Fix the problem with kwarg decorators that causes the function body not to be executed.
6d1c58f
44d46b4
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.0-2
44d46b4
- Rebuilt for Python 3.10
Packit Service 1c05ce7
44d46b4
* Fri May 07 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.8.0-1
44d46b4
- New decorators for handling temporary files (MkTemp) and directories (MkDTemp) in a more transparent way.
44d46b4
- The old implementation based on static paths and counter has been deprecated.
Packit Service 1ca1a34
9ac3440
* Fri Apr 30 2021 Hunor Csomortáni <csomh@redhat.com> - 0.7.1-1
44d46b4
- Fix a performance issue when detecting cassettes following the old naming format.
9ac3440
44d46b4
* Fri Mar 12 2021 Packit Service <user-cont-team+packit-service@redhat.com> - 0.7.0-1
44d46b4
- New version of requre 0.7.0 (Jan Ščotka)
44d46b4
- Workflow for uploading release to PyPI (Jiri Popelka)
44d46b4
- fix the name of storage file for unittest, use just class.method.yaml (Jan Ščotka)
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
Packit Service 5af31f9
c304a13
* Mon Mar 01 2021 Jan Ščotka <jscotka@redhat.com> - 0.6.1-1
44d46b4
- version increased (Jan Ščotka)
44d46b4
- test Tuple type (Jan Ščotka)
44d46b4
- add tuple as base simple type (Jan Ščotka)
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
44d46b4
* Tue Feb 16 2021 Jan Ščotka <jscotka@redhat.com> - 0.6.0-1
44d46b4
- release new version 0.6.0 (Jan Ščotka)
44d46b4
- Cleanup import system (#152) (jscotka)
44d46b4
- improve failing test (Jan Ščotka)
44d46b4
- prepare code before next cleanup (Jan Ščotka)
44d46b4
- remove unused type of decoration and it was outtaded (Jan Ščotka)
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
- Don't recommend to use 'pip' with 'sudo' (Hunor Csomortáni)
44d46b4
- Change 'master' to 'main' (Hunor Csomortáni)
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
- small issue with setting up storage mode debug (Jan Ščotka)
44d46b4
- Bump Version in fedora/python-requre.spec (Jiri Popelka)
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
- [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot])
44d46b4
- add backward compatibility to files (Jan Ščotka)
44d46b4
- improve file operations with guess if not given (Jan Ščotka)
44d46b4
44d46b4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
44d46b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
44d46b4
44d46b4
* Tue Dec 08 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.5.0-1
44d46b4
- apply PR suggestion (Jan Ščotka)
44d46b4
- add default decorator and test (Jan Ščotka)
44d46b4
- guess proper return object type based on  return value (Jan Ščotka)
44d46b4
- Link our common contribution guidelines (Matej Focko)
44d46b4
- Fix mypy remark (Matej Focko)
44d46b4
- Move rebase check from pre-commit to pre-push hook (Matej Focko)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- Update docs/filter_format.rst (jscotka)
44d46b4
- update documentation (Jan Ščotka)
44d46b4
- fix examples (Jan Ščotka)
44d46b4
- fix ip addr and DNS issue inside tests (Jan Ščotka)
44d46b4
- Do not skip bug and security issues by stalebot (Frantisek Lachman)
44d46b4
- Do not run tests for zuul gating (Frantisek Lachman)
44d46b4
- Add more specific type for __replace_module_match_with_multiple_decorators (Frantisek Lachman)
44d46b4
- fix mistake (Jan Ščotka)
44d46b4
- Update requre/modules_decorate_all_methods.py (jscotka)
44d46b4
- apply PR suggestions (Jan Ščotka)
44d46b4
- Allow to use list as parameter for decoratos and add common aliases for decorators. (Jan Ščotka)
44d46b4
- Update pre-commit configuration for prettier (Hunor Csomortáni)
44d46b4
- Copy modules when listing to avoid changes during execution (Frantisek Lachman)
44d46b4
- adapt PR review issues (Jan Ščotka)
44d46b4
- optimise files handling, avoid duplication of stored files in test_data files (Jan Ščotka)
44d46b4
- Document installation instructions in README (Frantisek Lachman)
44d46b4
- Enable all fedora targets for master/release copr builds (Frantisek Lachman)
44d46b4
- Use default packit COPR projects (Frantisek Lachman)
44d46b4
44d46b4
* Tue Sep 22 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 0.4.0-1
44d46b4
- new upstream release: 0.4.0
44d46b4
44d46b4
* Mon Sep 21 2020 Jan Ščotka <jscotka@redhat.com> - 0.3.0-1
44d46b4
- new upstream release: 0.3.0
0b6d665
84b3cb9
* Wed Jan 15 2020 Jan Ščotka <jscotka@redhat.com> - 0.2.0-1
84b3cb9
- Initial package.