python-tempora/python-tempora.spec
Matej Cepl 53f3206d18 Accepting request 685106 from home:mcepl:branches:devel:languages:python
- Upgrade all the way to 1.14:
  - Package refresh, including use of declarative config in the package metadata.
  - Enhancements to BackoffDelay: Added .reset method and Made
    iterable to retrieve delay values.
  - Added UTC module (Python 3 only), inspired by the utc project.
  - Scheduler now honors daylight savings times in the PeriodicCommands.
  - Added timing.BackoffDelay, suitable for implementing
    exponential backoff delays, such as those between retries.
  - Added support for months, years to parse_timedelta.
  - Introducing timing.Timer, featuring a expired method for
    detecting when a certain duration has been exceeded.
  - Stopwatch now behaves reliably during timezone changes and
    (presumably) daylight savings time changes.
  - Update project skeleton.
- Run the SPEC file through spec-cleaner
- Switched off test suite run temporarily. gh#jaraco/tempora#6

OBS-URL: https://build.opensuse.org/request/show/685106
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tempora?expand=0&rev=8
2019-03-14 18:35:49 +00:00

74 lines
2.2 KiB
RPMSpec

#
# spec file for package python-tempora
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-tempora
Version: 1.14
Release: 0
Summary: Objects and routines pertaining to date and time (tempora)
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jaraco/tempora
Source: https://files.pythonhosted.org/packages/source/t/tempora/tempora-%{version}.tar.gz
BuildRequires: %{python_module pytest-flake8}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytz
Requires: python-six
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-backports.unittest_mock
%endif
%python_subpackages
%description
Objects and routines pertaining to date and time (tempora)
Modules include:
* tempora (top level package module) contains miscellaneous utilities and constants.
* timing contains routines for measuring and profiling.
* schedule contains an event scheduler.
%prep
%setup -q -n tempora-%{version}
%build
%python_build
%install
%python_install
%fdupes %{buildroot}
%check
# gh#jaraco/tempora#6
# %%pytest tests
%files %{python_files}
%doc CHANGES.rst README.rst docs/*rst
%python3_only %{_bindir}/calc-prorate
%{python_sitelib}/*
%changelog