14
0

Accepting request 1124365 from home:ecsos:python

- Update to 2.13.0
  - Add support for datetime.timedelta to time_machine.travel().
  - Fix documentation about using local time for naive date(time) strings.
  - Add shift() method to the time_machine pytest fixture.
  - Mock time.monotonic() and time.monotonic_ns(). 
    They return the values of time.time() and time.time_ns()
    respectively, rather than real monotonic clocks.
- Changes from 2.12.0
  - Include wheels for Python 3.12.
- Changes from 2.11.0
  - Drop Python 3.7 support.
- Changes from 2.10.0
  - Support Python 3.12.

OBS-URL: https://build.opensuse.org/request/show/1124365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-time-machine?expand=0&rev=27
This commit is contained in:
2023-11-09 09:30:23 +00:00
committed by Git OBS Bridge
parent 0f2e12c294
commit ec3fec7aae
4 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0892ada963bd16fdaf657d71ef9bec614931c467a935f3217bf08906fe3bd11
size 28747

Binary file not shown.

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Nov 9 09:05:38 UTC 2023 - ecsos <ecsos@opensuse.org>
- Update to 2.13.0
- Add support for datetime.timedelta to time_machine.travel().
- Fix documentation about using local time for naive date(time) strings.
- Add shift() method to the time_machine pytest fixture.
- Mock time.monotonic() and time.monotonic_ns().
They return the values of time.time() and time.time_ns()
respectively, rather than real monotonic clocks.
- Changes from 2.12.0
- Include wheels for Python 3.12.
- Changes from 2.11.0
- Drop Python 3.7 support.
- Changes from 2.10.0
- Support Python 3.12.
-------------------------------------------------------------------
Fri Jun 9 06:20:34 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -19,14 +19,14 @@
%{?sle15_python_module_pythons}
Name: python-time-machine
Group: Development/Languages/Python
Version: 2.9.0
Version: 2.13.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 devel >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}