forked from pool/python-APScheduler
120 lines
3.8 KiB
RPMSpec
120 lines
3.8 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package python-APScheduler
|
||
|
#
|
||
|
# Copyright (c) 2011 SUSE LINUX Products 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: 2.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
|
||
|
BuildRequires: python-devel
|
||
|
%if 0%{?suse_version}
|
||
|
%py_requires
|
||
|
%if 0%{?suse_version} > 1110
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
%endif
|
||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||
|
|
||
|
%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
|
||
|
<http://www.quartz-scheduler.org/>`_ 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).
|
||
|
|
||
|
|
||
|
Features
|
||
|
========
|
||
|
|
||
|
* No (hard) external dependencies
|
||
|
* Thread-safe API
|
||
|
* Excellent test coverage (tested on CPython 2.4 - 2.7, 3.1 - 3.2, Jython 2.5.2, PyPy 1.4.1 and 1.5)
|
||
|
* 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 <http://www.sqlalchemy.org/>`_ (any supported RDBMS works)
|
||
|
* `MongoDB <http://www.mongodb.org/>`_
|
||
|
|
||
|
|
||
|
Documentation
|
||
|
=============
|
||
|
|
||
|
Documentation can be found `here <http://readthedocs.org/docs/apscheduler/en/latest/>`_.
|
||
|
|
||
|
|
||
|
Source
|
||
|
======
|
||
|
|
||
|
The source can be browsed at `Bitbucket
|
||
|
<http://bitbucket.org/agronholm/apscheduler/src/>`_.
|
||
|
|
||
|
|
||
|
Reporting bugs
|
||
|
==============
|
||
|
|
||
|
A `bug tracker <http://bitbucket.org/agronholm/apscheduler/issues/>`_
|
||
|
is provided by bitbucket.org.
|
||
|
|
||
|
|
||
|
Getting help
|
||
|
============
|
||
|
|
||
|
If you have problems or other questions, you can either:
|
||
|
|
||
|
* Ask on the `APScheduler Google group
|
||
|
<http://groups.google.com/group/apscheduler>`_, or
|
||
|
* Ask on the ``#apscheduler`` channel on
|
||
|
`Freenode IRC <http://freenode.net/irc_servers.shtml>`_
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n APScheduler-%{version}
|
||
|
|
||
|
%build
|
||
|
export CFLAGS="%{optflags}"
|
||
|
python setup.py build
|
||
|
|
||
|
%install
|
||
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
# You may have to add additional files here (documentation and binaries mostly)
|
||
|
%{python_sitelib}/*
|
||
|
%doc README.rst
|
||
|
%changelog
|