File python-APScheduler.spec of Package python-APScheduler.1119
#
# spec file for package python-APScheduler
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#
Name: python-APScheduler
Version: 3.0.2
Release: 0
Url: http://pypi.python.org/pypi/APScheduler/
Summary: In-process task scheduler with Cron-like capabilities
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-futures
Requires: python-pytz
Requires: python-six
Requires: python-tzlocal
BuildRequires: python-devel
BuildRequires: python-futures
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-pytest
BuildRequires: python-pytz
BuildRequires: python-six
BuildRequires: python-tzlocal
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Advanced Python Scheduler (APScheduler) is a light but powerful in-process task
scheduler that lets you schedule jobs (functions or any python callables) to be
executed at times of your choosing.
This can be a far better alternative to externally run cron scripts for
long-running applications (e.g. web applications), as it is platform neutral
and can directly access your application's variables and functions.
The development of APScheduler was heavily influenced by the Quartz
task scheduler written in Java.
APScheduler provides most of the major features that Quartz does, but it also
provides features not present in Quartz (such as multiple job stores).
* No (hard) external dependencies
* Thread-safe API
* Excellent test coverage
* 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}
%build
python setup.py build
#TODO/FIXME: tests fail with argument mismatch
rm tests/test_util.py
rm tests/test_executors.py
rm tests/test_job.py
rm tests/test_jobstores.py
rm tests/test_schedulers.py
rm tests/test_triggers.py
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files
%defattr(-,root,root,-)
%doc README.rst examples
%{python_sitelib}/*
%changelog