From 2fe243fc2cb0e696f2ee2d0c228925d18d536d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 6 Jun 2023 21:43:12 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-time-machine revision 515ff19fd096366d76e8fd20b20af427 --- .gitattributes | 23 +++++++ python-time-machine-2.9.0.tar.gz | 3 + python-time-machine.changes | 109 +++++++++++++++++++++++++++++++ python-time-machine.spec | 69 +++++++++++++++++++ 4 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 python-time-machine-2.9.0.tar.gz create mode 100644 python-time-machine.changes create mode 100644 python-time-machine.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-time-machine-2.9.0.tar.gz b/python-time-machine-2.9.0.tar.gz new file mode 100644 index 0000000..0839c33 --- /dev/null +++ b/python-time-machine-2.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c356560a2af1b3235da6deeeb68de67afda2bcfbe2a810e211ae4c5df3684a4 +size 28043 diff --git a/python-time-machine.changes b/python-time-machine.changes new file mode 100644 index 0000000..f4e14eb --- /dev/null +++ b/python-time-machine.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Wed May 31 09:26:06 UTC 2023 - Ben Greiner + +- Move to PEP517 +- Do not use pytzdata, but system timezone directly +- Don't catchall sitearch + +------------------------------------------------------------------- +Sat May 27 19:44:39 UTC 2023 - Dirk Müller + +- update to 2.9.0: + * Explicitly error when attempting to install on PyPy. + +------------------------------------------------------------------- +Tue Apr 11 08:32:21 UTC 2023 - Dominique Leuenberger + +- BuildRequire python38-backports.zoneinfo only when python38-base + is present in the buildsystem: fix build on distros where python + 3.8 is no longer in the supported set of python interpreters. + +------------------------------------------------------------------- +Sat Oct 29 16:04:03 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.8.2 + * Improve type hints for time_machine.travel() to preserve the types of the wrapped function/coroutine/class. + +------------------------------------------------------------------- +Thu Aug 18 07:00:08 UTC 2022 - Sebastian Wagner + +- update to version 2.8.1: + - Actually build Python 3.11 wheels. +- update to version 2.8.0: + - Build Python 3.11 wheels. +- update to version 2.7.1: + - Fix usage of ``ZoneInfo`` from the ``backports.zoneinfo`` package. + This makes ``ZoneInfo`` support work for Python < 3.9. +- update to version 2.7.0: + - Support Python 3.11 (no wheels yet, they will only be available when Python 3.11 is RC when the ABI is stable). + +------------------------------------------------------------------- +Tue Jan 11 10:01:09 UTC 2022 - Sebastian Wagner + +- Limit package to python >= 3.7 + +------------------------------------------------------------------- +Mon Jan 10 17:18:47 UTC 2022 - Sebastian Wagner + +- update to version 2.6.0: + * Drop Python 3.6 support. + +------------------------------------------------------------------- +Tue Dec 14 15:06:54 UTC 2021 - Sebastian Wagner + +- update to version 2.5.0: + * Add ``time_machine.escape_hatch``, which provides functions to bypass + time-machine. + Thanks to Matt Pegler for the feature request in `Issue #206 + `__. + +------------------------------------------------------------------- +Tue Dec 14 07:40:10 UTC 2021 - pgajdos@suse.com + +- pytest-runner is not required for build + +------------------------------------------------------------------- +Sat Nov 27 14:29:53 UTC 2021 - Sebastian Wagner + +- update to version 2.4.1: + - Build musllinux wheels. + +------------------------------------------------------------------- +Sat Sep 4 17:54:02 UTC 2021 - Sebastian Wagner + +- update to version 2.4.0: + - Support Python 3.10. + +------------------------------------------------------------------- +Fri Jul 30 08:23:35 UTC 2021 - Sebastian Wagner + +- update to version 2.3.1: + - Build universal2 wheels for Python 3.8 on macOS. +- update to version 2.3.0: + - Allow passing ``tick`` to ``Coordinates.move_to()`` and the pytest fixture’s + ``time_machine.move_to()``. This allows freezing or unfreezing of time when + travelling. + +------------------------------------------------------------------- +Sat Jul 3 13:17:35 UTC 2021 - Sebastian Wagner + +- update to version 2.2.0: + - Include type hints. + - Convert C module to use PEP 489 multi-phase extension module initialization. + This makes the module ready for Python sub-interpreters. + - Release now includes a universal2 wheel for Python 3.9 on macOS, to work on + Apple Silicon. + - Stop distributing tests to reduce package size. Tests are not intended to be + run outside of the tox setup in the repository. Repackagers can use GitHub's + tarballs per tag. + +------------------------------------------------------------------- +Sat May 29 07:50:49 UTC 2021 - Sebastian Wagner + +- skip python2 to fix leap build +- add missing group tag to fix leap build + +------------------------------------------------------------------- +Tue May 25 11:43:44 UTC 2021 - Sebastian Wagner + +- initial package for version 2.1.0. diff --git a/python-time-machine.spec b/python-time-machine.spec new file mode 100644 index 0000000..2e4486d --- /dev/null +++ b/python-time-machine.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-time-machine +# +# Copyright (c) 2023 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/ +# + + +Name: python-time-machine +Group: Development/Languages/Python +Version: 2.9.0 +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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION tests +BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil} +BuildRequires: timezone +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-generators +Requires: python-python-dateutil +Requires: timezone +%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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest_arch + +%files %{python_files} +%doc README.rst HISTORY.rst +%license LICENSE +%{python_sitearch}/time_machine +%{python_sitearch}/_time_machine.*.so +%{python_sitearch}/time_machine-%{version}.dist-info + +%changelog