2011-08-16 08:59:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-APScheduler
|
|
|
|
#
|
2023-02-23 14:34:29 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
|
|
|
2023-08-17 08:00:18 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-08-16 08:59:30 +00:00
|
|
|
Name: python-APScheduler
|
2023-09-18 19:33:50 +00:00
|
|
|
Version: 3.10.4
|
2011-08-16 08:59:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: In-process task scheduler with Cron-like capabilities
|
|
|
|
License: MIT
|
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
|
2023-02-23 14:34:29 +00:00
|
|
|
BuildRequires: %{python_module SQLAlchemy >= 1.4}
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module Twisted}
|
|
|
|
BuildRequires: %{python_module gevent}
|
2021-01-22 11:08:27 +00:00
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2019-10-14 13:42:03 +00:00
|
|
|
BuildRequires: %{python_module pytest-tornado}
|
2022-03-01 15:03:54 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
2020-01-13 14:40:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools >= 36.2.7}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
|
2018-10-18 08:02:45 +00:00
|
|
|
BuildRequires: %{python_module six >= 1.4.0}
|
|
|
|
BuildRequires: %{python_module tornado}
|
2021-02-01 17:39:58 +00:00
|
|
|
BuildRequires: %{python_module tzlocal >= 2.0}
|
2017-07-12 09:10:41 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
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
|
2021-02-01 17:39:58 +00:00
|
|
|
Requires: python-tzlocal >= 2.0
|
2023-02-23 14:34:29 +00:00
|
|
|
Recommends: python-SQLAlchemy >= 1.4
|
2018-10-18 08:02:45 +00:00
|
|
|
Recommends: python-Twisted
|
2020-03-16 06:33:16 +00:00
|
|
|
Recommends: python-gevent
|
2018-10-18 08:02:45 +00:00
|
|
|
Suggests: python-kazoo
|
2021-02-01 17:39:58 +00:00
|
|
|
Suggests: python-pymongo >= 3.0
|
2018-10-18 08:02:45 +00:00
|
|
|
Suggests: python-redis
|
|
|
|
Suggests: python-tornado >= 4.3
|
2011-08-16 08:59:30 +00:00
|
|
|
BuildArch: noarch
|
2020-03-16 06:33:16 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-funcsigs
|
|
|
|
BuildRequires: python-futures
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-trollius
|
|
|
|
%endif
|
2018-10-18 08:02:45 +00:00
|
|
|
%ifpython2
|
2020-03-16 06:33:16 +00:00
|
|
|
Requires: python-funcsigs
|
|
|
|
Requires: python-futures
|
|
|
|
Requires: python-trollius
|
2018-10-18 08:02:45 +00:00
|
|
|
%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}
|
2022-01-24 13:27:02 +00:00
|
|
|
sed -i 's/--cov//' 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
|
2022-03-01 15:03:54 +00:00
|
|
|
# https://github.com/agronholm/apscheduler/issues/601
|
|
|
|
%pytest -k 'not test_broken_pool'
|
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/
|
2022-01-24 13:27:02 +00:00
|
|
|
%{python_sitelib}/apscheduler
|
|
|
|
%{python_sitelib}/APScheduler-%{version}*-info
|
2013-09-26 07:51:12 +00:00
|
|
|
|
2011-08-16 08:59:30 +00:00
|
|
|
%changelog
|