59 lines
1.6 KiB
RPMSpec
59 lines
1.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name time-machine
|
|
%global source_name time_machine
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 2.13.0
|
|
Release: 1
|
|
Summary: Travel through time in your tests.
|
|
|
|
License: MIT
|
|
URL: https://github.com/adamchainz/time-machine
|
|
Source0: https://files.pythonhosted.org/packages/48/50/d0c443bc1287dc20a22597346864175774d39f40239223f95fb03d70a044/time_machine-2.13.0.tar.gz
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-editables
|
|
BuildRequires: python3-hatch-vcs
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-virtualenv
|
|
|
|
%description
|
|
Travel through time in your tests.
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
Travel through time in your tests.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{source_name}-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python3_sitearch}/_time_machine*.so
|
|
%{python3_sitearch}/time_machine-*.dist-info/
|
|
%{python3_sitearch}/time_machine
|
|
|
|
%changelog
|
|
* Fri Mar 1 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.13.0-1
|
|
- Update package to version 2.13.0
|
|
Add support for datetime.timedelta to time_machine.travel().
|
|
Add shift() method to the time_machine pytest fixture.
|
|
Fix documentation about using local time for naive date(time) strings.
|
|
|
|
* Sun Jun 18 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.10.0-1
|
|
- Initial package 2.10.0 for isort test
|