Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tempora for openSUSE:Factory checked in at 2023-07-15 23:14:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tempora (Old) and /work/SRC/openSUSE:Factory/.python-tempora.new.3193 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tempora" Sat Jul 15 23:14:24 2023 rev:19 rq:1098499 version:5.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tempora/python-tempora.changes 2023-05-09 13:06:15.384634782 +0200 +++ /work/SRC/openSUSE:Factory/.python-tempora.new.3193/python-tempora.changes 2023-07-15 23:14:25.719257824 +0200 @@ -1,0 +2,19 @@ +Wed Jul 12 22:50:07 UTC 2023 - Arun Persaud <[email protected]> + +- specfile: + * require 3.8 or later + * Changelog got renamed to NEWS + +- update to version 5.5.0: + * Features + + Stopwatch now uses time.monotonic. + +- changes from version 5.4.0: + * Features + + Require Python 3.8 or later. + +- changes from version 5.3.0: + * #24: Removed use of datetime.utc** functions deprecated in Python + 3.12. + +------------------------------------------------------------------- Old: ---- tempora-5.2.2.tar.gz New: ---- tempora-5.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tempora.spec ++++++ --- /var/tmp/diff_new_pack.zXiB1v/_old 2023-07-15 23:14:27.215266599 +0200 +++ /var/tmp/diff_new_pack.zXiB1v/_new 2023-07-15 23:14:27.219266623 +0200 @@ -22,15 +22,14 @@ %else %bcond_with libalternatives %endif -%{?sle15_python_module_pythons} Name: python-tempora -Version: 5.2.2 +Version: 5.5.0 Release: 0 Summary: Objects and routines pertaining to date and time (tempora) License: MIT URL: https://github.com/jaraco/tempora Source: https://files.pythonhosted.org/packages/source/t/tempora/tempora-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module jaraco.functools >= 1.20} BuildRequires: %{python_module pip} @@ -46,6 +45,7 @@ Requires: python-jaraco.functools >= 1.20 Requires: python-pytz BuildArch: noarch +%{?sle15_python_module_pythons} %if %{with libalternatives} BuildRequires: alts Requires: alts @@ -93,7 +93,7 @@ %files %{python_files} %license LICENSE -%doc CHANGES.rst README.rst docs/*rst +%doc NEWS.rst README.rst docs/*rst %python_alternative %{_bindir}/calc-prorate %{python_sitelib}/tempora %{python_sitelib}/tempora-%{version}.dist-info ++++++ tempora-5.2.2.tar.gz -> tempora-5.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/.flake8 new/tempora-5.5.0/.flake8 --- old/tempora-5.2.2/.flake8 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/.flake8 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -[flake8] -max-line-length = 88 - -# jaraco/skeleton#34 -max-complexity = 10 - -extend-ignore = - # Black creates whitespace before colon - E203 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/.github/workflows/main.yml new/tempora-5.5.0/.github/workflows/main.yml --- old/tempora-5.2.2/.github/workflows/main.yml 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/.github/workflows/main.yml 2023-06-27 11:13:38.000000000 +0200 @@ -2,6 +2,9 @@ on: [push, pull_request] +permissions: + contents: read + env: # Environment variables to support color support (jaraco/skeleton#66): # Request colored output from CLI tools supporting it. Different tools @@ -39,19 +42,14 @@ strategy: matrix: python: - - "3.7" + - "3.8" - "3.11" - "3.12" - # Workaround for actions/setup-python#508 - dev: - - -dev platform: - ubuntu-latest - macos-latest - windows-latest include: - - python: "3.8" - platform: ubuntu-latest - python: "3.9" platform: ubuntu-latest - python: "3.10" @@ -65,7 +63,8 @@ - name: Setup Python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python }}${{ matrix.dev }} + python-version: ${{ matrix.python }} + allow-prereleases: true - name: Install tox run: | python -m pip install tox @@ -80,8 +79,6 @@ - uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }}${{ matrix.dev }} - name: Install tox run: | python -m pip install tox @@ -104,6 +101,8 @@ jobs: ${{ toJSON(needs) }} release: + permissions: + contents: write needs: - check if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/.readthedocs.yaml new/tempora-5.5.0/.readthedocs.yaml --- old/tempora-5.2.2/.readthedocs.yaml 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/.readthedocs.yaml 2023-06-27 11:13:38.000000000 +0200 @@ -5,9 +5,8 @@ extra_requirements: - docs -# workaround for readthedocs/readthedocs.org#9623 +# required boilerplate readthedocs/readthedocs.org#10401 build: - # workaround for readthedocs/readthedocs.org#9635 os: ubuntu-22.04 tools: python: "3" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/CHANGES.rst new/tempora-5.5.0/CHANGES.rst --- old/tempora-5.2.2/CHANGES.rst 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/CHANGES.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,204 +0,0 @@ -v5.2.2 -====== - -#22: Fixed bug in tests that would fail when a leap year -was about a year away. - -v5.2.1 -====== - -#21: Restored dependency on ``jaraco.functools``, still -used in timing module. - -v5.2.0 -====== - -Remove dependency on jaraco.functools. - -v5.1.1 -====== - -Packaging refresh. - -v5.1.0 -====== - -Introduced ``infer_datetime`` and added some type hints. - -v5.0.2 -====== - -- Refreshed project. -- Enrolled with Tidelift. - -v5.0.1 -====== - -- Refreshed project. - -v5.0.0 -====== - -- Removed deprecated ``divide_*`` functions and ``Parser`` - class. -- Require Python 3.7 or later. -- #19: Fixed error reporting in parse_timedelta. - -v4.1.2 -====== - -- #18: Docs now build without warnings. - -v4.1.1 -====== - -- Fixed issue where digits were picked up in the unit when - adjacent to the last unit. - -v4.1.0 -====== - -- Added support for more formats in ``parse_timedelta``. -- #17: ``parse_timedelta`` now supports formats emitted by - ``timeit``, including honoring nanoseconds at the - microsecond resolution. - -v4.0.2 -====== - -- Refreshed package metadata. - -v4.0.1 -====== - -- Refreshed package metadata. - -v4.0.0 -====== - -- Removed ``strptime`` function in favor of - `datetime.datetime.strptime <https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime>`_. If passing - a ``tzinfo`` parameter, instead invoke `.replace(tzinfo=...)` - on the result. -- Deprecated ``divide_timedelta`` and ``divide_timedelta_float`` - now that Python supports this functionality natively. -- Deprecated ``Parser`` class. The - `dateutil.parser <https://dateutil.readthedocs.io/en/stable/parser.html>`_ - provides more sophistication. - -v3.0.0 -====== - -- #10: ``strftime`` now reverts to the stdlib behavior for - ``%u``. Use tempora 2.1 or later and the ``%µ`` for - microseconds. - -v2.1.1 -====== - -- #8: Fixed error in ``PeriodicCommandFixedDelay.daily_at`` - when timezone is more than 12 hours from UTC. - -v2.1.0 -====== - -- #9: Fixed error when date object is passed to ``strftime``. -- #11: ``strftime`` now honors upstream expectation of - rendering date values on time objects and vice versa. -- #10: ``strftime`` now honors ``%µ`` for rendering just - the "microseconds" as ``%u`` supported previously. - In a future, backward-incompatible release, the - ``%u`` behavior will revert to the behavior as found - in stdlib. - -v2.0.0 -====== - -* Require Python 3.6 or later. -* Removed DatetimeConstructor. - -1.14.1 -====== - -#7: Fix failing doctest in ``parse_timedelta``. - -1.14 -==== - -Package refresh, including use of declarative config in -the package metadata. - -1.13 -==== - -Enhancements to BackoffDelay: - - - Added ``.reset`` method. - - Made iterable to retrieve delay values. - -1.12 -==== - -Added UTC module (Python 3 only), inspired by the -`utc project <https://pypi.org/project/utc>`_. - -1.11 -==== - -#5: Scheduler now honors daylight savings times in the - PeriodicCommands. - -1.10 -==== - -Added ``timing.BackoffDelay``, suitable for implementing -exponential backoff delays, such as those between retries. - -1.9 -=== - -Added support for months, years to ``parse_timedelta``. - -1.8 -=== - -Introducing ``timing.Timer``, featuring a ``expired`` -method for detecting when a certain duration has been -exceeded. - -1.7.1 -===== - -#3: Stopwatch now behaves reliably during timezone - changes and (presumably) daylight savings time - changes. - -1.7 -=== - -Update project skeleton. - -1.6 -=== - -Adopt ``irc.schedule`` as ``tempora.schedule``. - -1.5 -=== - -Adopt ``jaraco.timing`` as ``tempora.timing``. - -Automatic deployment with Travis-CI. - -1.4 -=== - -Moved to Github. - -Improved test support on Python 2. - -1.3 -=== - -Added divide_timedelta from ``svg.charts``. -Added date_range from ``svg.charts``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/LICENSE new/tempora-5.5.0/LICENSE --- old/tempora-5.2.2/LICENSE 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/LICENSE 2023-06-27 11:13:38.000000000 +0200 @@ -1,5 +1,3 @@ -Copyright Jason R. Coombs - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/NEWS.rst new/tempora-5.5.0/NEWS.rst --- old/tempora-5.2.2/NEWS.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/tempora-5.5.0/NEWS.rst 2023-06-27 11:13:38.000000000 +0200 @@ -0,0 +1,228 @@ +v5.5.0 +====== + +Features +-------- + +- Stopwatch now uses ``time.monotonic``. + + +v5.4.0 +====== + +Features +-------- + +- Require Python 3.8 or later. + + +v5.3.0 +====== + +#24: Removed use of ``datetime.utc**`` functions +deprecated in Python 3.12. + +v5.2.2 +====== + +#22: Fixed bug in tests that would fail when a leap year +was about a year away. + +v5.2.1 +====== + +#21: Restored dependency on ``jaraco.functools``, still +used in timing module. + +v5.2.0 +====== + +Remove dependency on jaraco.functools. + +v5.1.1 +====== + +Packaging refresh. + +v5.1.0 +====== + +Introduced ``infer_datetime`` and added some type hints. + +v5.0.2 +====== + +- Refreshed project. +- Enrolled with Tidelift. + +v5.0.1 +====== + +- Refreshed project. + +v5.0.0 +====== + +- Removed deprecated ``divide_*`` functions and ``Parser`` + class. +- Require Python 3.7 or later. +- #19: Fixed error reporting in parse_timedelta. + +v4.1.2 +====== + +- #18: Docs now build without warnings. + +v4.1.1 +====== + +- Fixed issue where digits were picked up in the unit when + adjacent to the last unit. + +v4.1.0 +====== + +- Added support for more formats in ``parse_timedelta``. +- #17: ``parse_timedelta`` now supports formats emitted by + ``timeit``, including honoring nanoseconds at the + microsecond resolution. + +v4.0.2 +====== + +- Refreshed package metadata. + +v4.0.1 +====== + +- Refreshed package metadata. + +v4.0.0 +====== + +- Removed ``strptime`` function in favor of + `datetime.datetime.strptime <https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime>`_. If passing + a ``tzinfo`` parameter, instead invoke `.replace(tzinfo=...)` + on the result. +- Deprecated ``divide_timedelta`` and ``divide_timedelta_float`` + now that Python supports this functionality natively. +- Deprecated ``Parser`` class. The + `dateutil.parser <https://dateutil.readthedocs.io/en/stable/parser.html>`_ + provides more sophistication. + +v3.0.0 +====== + +- #10: ``strftime`` now reverts to the stdlib behavior for + ``%u``. Use tempora 2.1 or later and the ``%µ`` for + microseconds. + +v2.1.1 +====== + +- #8: Fixed error in ``PeriodicCommandFixedDelay.daily_at`` + when timezone is more than 12 hours from UTC. + +v2.1.0 +====== + +- #9: Fixed error when date object is passed to ``strftime``. +- #11: ``strftime`` now honors upstream expectation of + rendering date values on time objects and vice versa. +- #10: ``strftime`` now honors ``%µ`` for rendering just + the "microseconds" as ``%u`` supported previously. + In a future, backward-incompatible release, the + ``%u`` behavior will revert to the behavior as found + in stdlib. + +v2.0.0 +====== + +* Require Python 3.6 or later. +* Removed DatetimeConstructor. + +1.14.1 +====== + +#7: Fix failing doctest in ``parse_timedelta``. + +1.14 +==== + +Package refresh, including use of declarative config in +the package metadata. + +1.13 +==== + +Enhancements to BackoffDelay: + + - Added ``.reset`` method. + - Made iterable to retrieve delay values. + +1.12 +==== + +Added UTC module (Python 3 only), inspired by the +`utc project <https://pypi.org/project/utc>`_. + +1.11 +==== + +#5: Scheduler now honors daylight savings times in the + PeriodicCommands. + +1.10 +==== + +Added ``timing.BackoffDelay``, suitable for implementing +exponential backoff delays, such as those between retries. + +1.9 +=== + +Added support for months, years to ``parse_timedelta``. + +1.8 +=== + +Introducing ``timing.Timer``, featuring a ``expired`` +method for detecting when a certain duration has been +exceeded. + +1.7.1 +===== + +#3: Stopwatch now behaves reliably during timezone + changes and (presumably) daylight savings time + changes. + +1.7 +=== + +Update project skeleton. + +1.6 +=== + +Adopt ``irc.schedule`` as ``tempora.schedule``. + +1.5 +=== + +Adopt ``jaraco.timing`` as ``tempora.timing``. + +Automatic deployment with Travis-CI. + +1.4 +=== + +Moved to Github. + +Improved test support on Python 2. + +1.3 +=== + +Added divide_timedelta from ``svg.charts``. +Added date_range from ``svg.charts``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/PKG-INFO new/tempora-5.5.0/PKG-INFO --- old/tempora-5.2.2/PKG-INFO 2023-04-10 16:47:19.522996200 +0200 +++ new/tempora-5.5.0/PKG-INFO 2023-06-27 11:14:01.828022200 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tempora -Version: 5.2.2 +Version: 5.5.0 Summary: Objects and routines pertaining to date and time (tempora) Home-page: https://github.com/jaraco/tempora Author: Jason R. Coombs @@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only -Requires-Python: >=3.7 +Requires-Python: >=3.8 Provides-Extra: testing Provides-Extra: docs License-File: LICENSE @@ -24,6 +24,10 @@ :target: https://github.com/jaraco/tempora/actions?query=workflow%3A%22tests%22 :alt: tests +.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json + :target: https://github.com/astral-sh/ruff + :alt: Ruff + .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: Black diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/README.rst new/tempora-5.5.0/README.rst --- old/tempora-5.2.2/README.rst 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/README.rst 2023-06-27 11:13:38.000000000 +0200 @@ -7,6 +7,10 @@ :target: https://github.com/jaraco/tempora/actions?query=workflow%3A%22tests%22 :alt: tests +.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json + :target: https://github.com/astral-sh/ruff + :alt: Ruff + .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: Black diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/docs/conf.py new/tempora-5.5.0/docs/conf.py --- old/tempora-5.2.2/docs/conf.py 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/docs/conf.py 2023-06-27 11:13:38.000000000 +0200 @@ -9,7 +9,7 @@ # Link dates and other references in the changelog extensions += ['rst.linker'] link_files = { - '../CHANGES.rst': dict( + '../NEWS.rst': dict( using=dict(GH='https://github.com'), replace=[ dict( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/docs/history.rst new/tempora-5.5.0/docs/history.rst --- old/tempora-5.2.2/docs/history.rst 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/docs/history.rst 2023-06-27 11:13:38.000000000 +0200 @@ -5,4 +5,4 @@ History ******* -.. include:: ../CHANGES (links).rst +.. include:: ../NEWS (links).rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/pyproject.toml new/tempora-5.5.0/pyproject.toml --- old/tempora-5.2.2/pyproject.toml 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/pyproject.toml 2023-06-27 11:13:38.000000000 +0200 @@ -6,15 +6,3 @@ skip-string-normalization = true [tool.setuptools_scm] - -[tool.pytest-enabler.black] -addopts = "--black" - -[tool.pytest-enabler.mypy] -addopts = "--mypy" - -[tool.pytest-enabler.flake8] -addopts = "--flake8" - -[tool.pytest-enabler.cov] -addopts = "--cov" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/pytest.ini new/tempora-5.5.0/pytest.ini --- old/tempora-5.2.2/pytest.ini 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/pytest.ini 2023-06-27 11:13:38.000000000 +0200 @@ -7,19 +7,11 @@ # Ensure ResourceWarnings are emitted default::ResourceWarning - # Suppress deprecation warning in flake8 - ignore:SelectableGroups dict interface is deprecated::flake8 - # shopkeep/pytest-black#55 ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning - # tholo/pytest-flake8#83 - ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning - ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning - ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning - # shopkeep/pytest-black#67 ignore:'encoding' argument not specified::pytest_black @@ -29,7 +21,7 @@ # python/cpython#100750 ignore:'encoding' argument not specified::platform + # pypa/build#615 + ignore:'encoding' argument not specified::build.env + ## end upstream - - # ktosiek/pytest-freezegun#35 - ignore:distutils Version classes are deprecated:DeprecationWarning diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/setup.cfg new/tempora-5.5.0/setup.cfg --- old/tempora-5.2.2/setup.cfg 2023-04-10 16:47:19.522996200 +0200 +++ new/tempora-5.5.0/setup.cfg 2023-06-27 11:14:01.828022200 +0200 @@ -15,7 +15,7 @@ [options] packages = find_namespace: include_package_data = true -python_requires = >=3.7 +python_requires = >=3.8 install_requires = pytz jaraco.functools>=1.20 @@ -31,20 +31,16 @@ testing = pytest >= 6 pytest-checkdocs >= 2.4 - pytest-flake8; \ - python_version < "3.12" - flake8 < 5 pytest-black >= 0.3.7; \ python_implementation != "PyPy" pytest-cov pytest-mypy >= 0.9.1; \ python_implementation != "PyPy" - pytest-enabler >= 1.3 + pytest-enabler >= 2.2 + pytest-ruff backports.unittest_mock - freezegun - pytest-freezegun - types-freezegun + pytest-freezer types-pytz docs = sphinx >= 3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tempora/schedule.py new/tempora-5.5.0/tempora/schedule.py --- old/tempora-5.2.2/tempora/schedule.py 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/tempora/schedule.py 2023-06-27 11:13:38.000000000 +0200 @@ -28,7 +28,7 @@ A client may override this function to change the default behavior, such as to use local time or timezone-naïve times. """ - return datetime.datetime.utcnow().replace(tzinfo=pytz.utc) + return datetime.datetime.now(pytz.utc) def from_timestamp(ts): @@ -38,7 +38,7 @@ A client may override this function to change the default behavior, such as to use local time or timezone-naïve times. """ - return datetime.datetime.utcfromtimestamp(ts).replace(tzinfo=pytz.utc) + return datetime.datetime.fromtimestamp(ts, pytz.utc) class DelayedCommand(datetime.datetime): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tempora/timing.py new/tempora-5.5.0/tempora/timing.py --- old/tempora-5.2.2/tempora/timing.py 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/tempora/timing.py 2023-06-27 11:13:38.000000000 +0200 @@ -48,20 +48,21 @@ def reset(self): self.elapsed = datetime.timedelta(0) with contextlib.suppress(AttributeError): - del self.start_time + del self._start + + def _diff(self): + return datetime.timedelta(seconds=time.monotonic() - self._start) def start(self): - self.start_time = datetime.datetime.utcnow() + self._start = time.monotonic() def stop(self): - stop_time = datetime.datetime.utcnow() - self.elapsed += stop_time - self.start_time - del self.start_time + self.elapsed += self._diff() + del self._start return self.elapsed def split(self): - local_duration = datetime.datetime.utcnow() - self.start_time - return self.elapsed + local_duration + return self.elapsed + self._diff() # context manager support def __enter__(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tempora.egg-info/PKG-INFO new/tempora-5.5.0/tempora.egg-info/PKG-INFO --- old/tempora-5.2.2/tempora.egg-info/PKG-INFO 2023-04-10 16:47:19.000000000 +0200 +++ new/tempora-5.5.0/tempora.egg-info/PKG-INFO 2023-06-27 11:14:01.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tempora -Version: 5.2.2 +Version: 5.5.0 Summary: Objects and routines pertaining to date and time (tempora) Home-page: https://github.com/jaraco/tempora Author: Jason R. Coombs @@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only -Requires-Python: >=3.7 +Requires-Python: >=3.8 Provides-Extra: testing Provides-Extra: docs License-File: LICENSE @@ -24,6 +24,10 @@ :target: https://github.com/jaraco/tempora/actions?query=workflow%3A%22tests%22 :alt: tests +.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json + :target: https://github.com/astral-sh/ruff + :alt: Ruff + .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: Black diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tempora.egg-info/SOURCES.txt new/tempora-5.5.0/tempora.egg-info/SOURCES.txt --- old/tempora-5.2.2/tempora.egg-info/SOURCES.txt 2023-04-10 16:47:19.000000000 +0200 +++ new/tempora-5.5.0/tempora.egg-info/SOURCES.txt 2023-06-27 11:14:01.000000000 +0200 @@ -1,16 +1,16 @@ .coveragerc .editorconfig -.flake8 .pre-commit-config.yaml .readthedocs.yaml -CHANGES.rst LICENSE +NEWS.rst README.rst conftest.py mypy.ini pyproject.toml pytest.ini setup.cfg +towncrier.toml tox.ini .github/FUNDING.yml .github/dependabot.yml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tempora.egg-info/requires.txt new/tempora-5.5.0/tempora.egg-info/requires.txt --- old/tempora-5.2.2/tempora.egg-info/requires.txt 2023-04-10 16:47:19.000000000 +0200 +++ new/tempora-5.5.0/tempora.egg-info/requires.txt 2023-06-27 11:14:01.000000000 +0200 @@ -12,18 +12,13 @@ [testing] pytest>=6 pytest-checkdocs>=2.4 -flake8<5 pytest-cov -pytest-enabler>=1.3 +pytest-enabler>=2.2 +pytest-ruff backports.unittest_mock -freezegun -pytest-freezegun -types-freezegun +pytest-freezer types-pytz [testing:platform_python_implementation != "PyPy"] pytest-black>=0.3.7 pytest-mypy>=0.9.1 - -[testing:python_version < "3.12"] -pytest-flake8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tests/test_schedule.py new/tempora-5.5.0/tests/test_schedule.py --- old/tempora-5.2.2/tests/test_schedule.py 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/tests/test_schedule.py 2023-06-27 11:13:38.000000000 +0200 @@ -132,7 +132,7 @@ sched = schedule.InvokeScheduler() target = mock.MagicMock() - before = datetime.datetime.utcnow() + before = datetime.datetime.now(tz=datetime.timezone.utc) cmd = schedule.PeriodicCommand.after(10, target) sched.add(cmd) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/towncrier.toml new/tempora-5.5.0/towncrier.toml --- old/tempora-5.2.2/towncrier.toml 1970-01-01 01:00:00.000000000 +0100 +++ new/tempora-5.5.0/towncrier.toml 2023-06-27 11:13:38.000000000 +0200 @@ -0,0 +1,2 @@ +[tool.towncrier] +title_format = "{version}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tempora-5.2.2/tox.ini new/tempora-5.5.0/tox.ini --- old/tempora-5.2.2/tox.ini 2023-04-10 16:46:59.000000000 +0200 +++ new/tempora-5.5.0/tox.ini 2023-06-27 11:13:38.000000000 +0200 @@ -1,8 +1,4 @@ [tox] -envlist = python -minversion = 3.2 -# https://github.com/jaraco/skeleton/issues/6 -tox_pip_extensions_ext_venv_update = true toxworkdir={env:TOX_WORK_DIR:.tox} @@ -25,6 +21,16 @@ python -m sphinx -W --keep-going . {toxinidir}/build/html python -m sphinxlint +[testenv:finalize] +skip_install = True +deps = + towncrier + jaraco.develop >= 7.23 +passenv = * +commands = + python -m jaraco.develop.finalize + + [testenv:release] skip_install = True deps =
