2011-08-16 08:59:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-APScheduler
|
|
|
|
#
|
2019-02-03 18:46:54 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-16 08:59:30 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2015-04-02 07:51:38 +00:00
|
|
|
|
2018-10-18 08:02:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-16 08:59:30 +00:00
|
|
|
#
|
|
|
|
|
2015-04-02 07:51:38 +00:00
|
|
|
|
2017-07-12 09:10:41 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-08-16 08:59:30 +00:00
|
|
|
Name: python-APScheduler
|
2019-07-22 09:09:49 +00:00
|
|
|
Version: 3.6.1
|
2011-08-16 08:59:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: In-process task scheduler with Cron-like capabilities
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-03-19 14:32:31 +00:00
|
|
|
URL: https://github.com/agronholm/apscheduler
|
2017-07-12 09:10:41 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module SQLAlchemy >= 0.8}
|
|
|
|
BuildRequires: %{python_module Twisted}
|
|
|
|
BuildRequires: %{python_module gevent}
|
2019-09-05 13:39:41 +00:00
|
|
|
BuildRequires: %{python_module pytest < 4}
|
2019-10-14 13:42:03 +00:00
|
|
|
BuildRequires: %{python_module pytest-tornado}
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module setuptools >= 0.7}
|
2017-07-12 09:18:44 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module six >= 1.4.0}
|
|
|
|
BuildRequires: %{python_module tornado}
|
|
|
|
BuildRequires: %{python_module tzlocal >= 1.2}
|
2017-07-12 09:10:41 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: python2-funcsigs
|
|
|
|
BuildRequires: python2-futures
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
BuildRequires: python2-trollius
|
|
|
|
BuildRequires: python3-pytest-asyncio
|
2015-04-02 07:51:38 +00:00
|
|
|
Requires: python-pytz
|
2017-11-28 17:07:26 +00:00
|
|
|
Requires: python-six >= 1.4.0
|
2017-08-29 12:05:06 +00:00
|
|
|
Requires: python-tzlocal >= 1.2
|
2018-10-18 08:02:45 +00:00
|
|
|
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
|
2011-08-16 08:59:30 +00:00
|
|
|
BuildArch: noarch
|
2018-10-18 08:02:45 +00:00
|
|
|
%ifpython2
|
|
|
|
Requires: python2-funcsigs
|
|
|
|
Requires: python2-futures
|
|
|
|
Requires: python2-trollius
|
|
|
|
%endif
|
2017-07-12 09:10:41 +00:00
|
|
|
%python_subpackages
|
2011-08-16 08:59:30 +00:00
|
|
|
|
|
|
|
%description
|
2017-07-12 13:27:30 +00:00
|
|
|
Advanced Python Scheduler (APScheduler) is an in-process task
|
2011-08-16 08:59:30 +00:00
|
|
|
scheduler that lets you schedule jobs (functions or any python callables) to be
|
2017-07-12 13:27:30 +00:00
|
|
|
executed at any time of your choosing.
|
2011-08-16 08:59:30 +00:00
|
|
|
|
2017-07-12 13:27:30 +00:00
|
|
|
This can be an alternative to externally run cron scripts for
|
2011-08-16 08:59:30 +00:00
|
|
|
long-running applications (e.g. web applications), as it is platform neutral
|
2017-07-12 13:27:30 +00:00
|
|
|
and can access the application's variables and functions.
|
2011-08-16 08:59:30 +00:00
|
|
|
|
2017-07-12 13:27:30 +00:00
|
|
|
APscheduler provides multiple job stores.
|
2011-08-16 08:59:30 +00:00
|
|
|
|
|
|
|
* 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:
|
2018-10-18 08:02:45 +00:00
|
|
|
* RAM
|
2011-08-16 08:59:30 +00:00
|
|
|
* File-based simple database (shelve)
|
2012-06-22 12:24:25 +00:00
|
|
|
* SQLAlchemy (any supported RDBMS works)
|
|
|
|
* MongoDB
|
2011-08-16 08:59:30 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n APScheduler-%{version}
|
2018-10-18 08:02:45 +00:00
|
|
|
# we don't want the tweaked pytest config options
|
|
|
|
rm setup.cfg
|
2011-08-16 08:59:30 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-12 09:10:41 +00:00
|
|
|
%python_build
|
2011-08-16 08:59:30 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-12 09:10:41 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-08-16 08:59:30 +00:00
|
|
|
|
2018-10-18 08:02:45 +00:00
|
|
|
%check
|
2019-11-04 14:12:38 +00:00
|
|
|
%pytest
|
2018-10-18 08:02:45 +00:00
|
|
|
|
2017-07-12 09:10:41 +00:00
|
|
|
%files %{python_files}
|
2018-10-18 08:02:45 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2017-07-12 09:10:41 +00:00
|
|
|
%doc examples/
|
2011-08-16 08:59:30 +00:00
|
|
|
%{python_sitelib}/*
|
2013-09-26 07:51:12 +00:00
|
|
|
|
2011-08-16 08:59:30 +00:00
|
|
|
%changelog
|