14
0
Files
python-APScheduler/python-APScheduler.spec
Tomáš Chvátal 56a530c2f8 Accepting request 670895 from home:alarrosa:branches:devel:languages:python
- update to 3.5.3
  * Fixed regression introduced in 3.5.2: Class methods were mistaken
    for instance methods and thus were broken during serialization
  * Fixed callable name detection for methods in old style classes
- update to 3.5.2
  * Fixed scheduling of bound methods on persistent job stores (the
    workaround of scheduling YourClass.methodname along with an
    explicit self argument is no longer necessary as this is now done
    automatically for you)
  * Added the FAQ section to the docs
  * Made BaseScheduler.start() raise a RuntimeError if running under
    uWSGI with threads disabled
- Add fix-tests.patch to fix tests that fail with python 3.7
- Add 0001-Correct-update_job-to-raise-with-job-id.patch from upstream
  to fix a wrong variable being used.

OBS-URL: https://build.opensuse.org/request/show/670895
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=20
2019-02-03 18:46:54 +00:00

113 lines
3.8 KiB
RPMSpec

#
# spec file for package python-APScheduler
#
# 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-%{**}}
Name: python-APScheduler
Version: 3.5.3
Release: 0
Summary: In-process task scheduler with Cron-like capabilities
License: MIT
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/APScheduler/
Source: https://files.pythonhosted.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-tests.patch -- Fix python 3.7 incompatibilities
Patch0: fix-tests.patch
# PATCH-FIX-UPSTREAM 0001-Correct-update_job-to-raise-with-job-id.patch
Patch1: 0001-Correct-update_job-to-raise-with-job-id.patch
BuildRequires: %{python_module SQLAlchemy >= 0.8}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module pytest-tornado}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools >= 0.7}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module six >= 1.4.0}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module tzlocal >= 1.2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-funcsigs
BuildRequires: python2-futures
BuildRequires: python2-mock
BuildRequires: python2-trollius
BuildRequires: python3-pytest-asyncio
Requires: python-pytz
Requires: python-six >= 1.4.0
Requires: python-tzlocal >= 1.2
Recommends: python-SQLAlchemy >= 0.8
Recommends: python-gevent
Recommends: python-Twisted
Suggests: python-kazoo
Suggests: python-pymongo >= 2.8
Suggests: python-redis
Suggests: python-tornado >= 4.3
BuildArch: noarch
%ifpython2
Requires: python2-funcsigs
Requires: python2-futures
Requires: python2-trollius
%endif
%python_subpackages
%description
Advanced Python Scheduler (APScheduler) is an in-process task
scheduler that lets you schedule jobs (functions or any python callables) to be
executed at any time of your choosing.
This can be an alternative to externally run cron scripts for
long-running applications (e.g. web applications), as it is platform neutral
and can access the application's variables and functions.
APscheduler provides multiple job stores.
* Configurable scheduling mechanisms (triggers):
* Cron-like scheduling
* Delayed scheduling of single run jobs (like the UNIX "at" command)
* Interval-based (run a job at specified time intervals)
* Multiple, simultaneously active job stores:
* RAM
* File-based simple database (shelve)
* SQLAlchemy (any supported RDBMS works)
* MongoDB
%prep
%setup -q -n APScheduler-%{version}
%patch0 -p1
%patch1 -p1
# we don't want the tweaked pytest config options
rm setup.cfg
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%doc examples/
%{python_sitelib}/*
%changelog