14
0
Files
python-time-machine/python-time-machine.spec
Sebastian Wagner 179132594e Accepting request 1032223 from home:yarunachalam:branches:devel:languages:python
- Update to version 2.8.2 
  * Improve type hints for time_machine.travel() to preserve the types of the wrapped function/coroutine/class.

OBS-URL: https://build.opensuse.org/request/show/1032223
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-time-machine?expand=0&rev=17
2022-10-29 16:55:46 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-time-machine
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-time-machine
Group: Development/Languages/Python
Version: 2.8.2
Release: 0
Summary: Travel through time in your tests
License: MIT
URL: https://github.com/adamchainz/time-machine
# pypi packages don't contain the tests anymore since 2.2.0, see changelog
Source: https://github.com/adamchainz/time-machine/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION tests
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module dateutil}
BuildRequires: %{python_module pytzdata}
BuildRequires: python38-backports.zoneinfo
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-generators
%{?python_enable_dependency_generator}
%python_subpackages
%description
This library mocks all functions from Python's standard library that return the current date or datetime.
It can be used independently, as a function decorator, or as a context manager.
%prep
%setup -q -n time-machine-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest_arch
%files %{python_files}
%doc README.rst HISTORY.rst
%license LICENSE
%{python_sitearch}/*
%changelog