Blame python-pytest-freezegun.spec

9974c19
Name:           python-pytest-freezegun
9974c19
Version:        0.4.2
a3d377a
Release:        7%{?dist}
9974c19
Summary:        Wrap pytest tests with fixtures in freeze_time
9974c19
9974c19
License:        MIT
9974c19
URL:            https://github.com/ktosiek/pytest-freezegun
9974c19
Source0:        %{url}/archive/%{version}/pytest-freezegun-%{version}.tar.gz
9974c19
9974c19
BuildArch:      noarch
9974c19
BuildRequires:  pyproject-rpm-macros
9974c19
BuildRequires:  python3-devel
9974c19
9974c19
%global _description %{expand:
9974c19
This is a pytest plugin that let you wrap tests with fixtures in freeze_time.
9974c19
9974c19
Features:
9974c19
9974c19
- Freeze time in both the test and fixtures
9974c19
- Access the freezer when you need it}
9974c19
9974c19
%description %_description
9974c19
9974c19
9974c19
%package -n python3-pytest-freezegun
9974c19
Summary:        %{summary}
9974c19
9974c19
%description -n python3-pytest-freezegun %_description
9974c19
9974c19
9974c19
%prep
9974c19
%autosetup -p1 -n pytest-freezegun-%{version}
9974c19
9974c19
9974c19
%generate_buildrequires
9974c19
# tox config contains coverage, so we'll execute pytest directly instead
9974c19
# since this a pytest plugin, pytetst is a runtime dependency anyway
9974c19
%pyproject_buildrequires -r
9974c19
9974c19
9974c19
%build
9974c19
%pyproject_wheel
9974c19
9974c19
9974c19
%install
9974c19
%pyproject_install
9974c19
%pyproject_save_files pytest_freezegun
9974c19
9974c19
9974c19
%check
9974c19
%pytest -v
9974c19
9974c19
9974c19
%files -n python3-pytest-freezegun -f %{pyproject_files}
9974c19
%doc README.rst CHANGELOG.md
9974c19
%license LICENSE
9974c19
9974c19
9974c19
%changelog
a3d377a
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-7
a3d377a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a3d377a
4696083
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-6
4696083
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4696083
6a72a81
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.4.2-5
6a72a81
- Rebuilt for Python 3.11
6a72a81
23d214d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-4
23d214d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
23d214d
d586ebc
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-3
d586ebc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d586ebc
3ae9afc
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.2-2
3ae9afc
- Rebuilt for Python 3.10
3ae9afc
9974c19
* Tue May 18 2021 Miro HronĨok <mhroncok@redhat.com> - 0.4.2-1
9974c19
- Initial RPM package
9974c19
- Fixes rhbz#1961793