forked from pool/python-APScheduler
Accepting request 79011 from home:babelworx:python
Advanced Python Scheduler (APScheduler) is a light but powerful in-process task scheduler that lets you schedule jobs. Packaged with py2pack. Added README.rst to %doc OBS-URL: https://build.opensuse.org/request/show/79011 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
APScheduler-2.0.2.tar.gz
Normal file
3
APScheduler-2.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a1f57007133c90b38b902e7a376d76463e34c2d971fd94f7e03a01d3bf2ba291
|
||||
size 18139
|
114
python-APScheduler.changes
Normal file
114
python-APScheduler.changes
Normal file
@@ -0,0 +1,114 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 16 08:28:29 UTC 2011 - cfarrell@novell.com
|
||||
|
||||
2.0.2
|
||||
-----
|
||||
|
||||
* Removed the unique constraint from the "name" column in the SQLAlchemy
|
||||
job store
|
||||
|
||||
* Fixed output from Scheduler.print_jobs() which did not previously output
|
||||
a line ending at the end
|
||||
|
||||
|
||||
2.0.1
|
||||
-----
|
||||
|
||||
* Fixed cron style jobs getting wrong default values
|
||||
|
||||
|
||||
2.0.0
|
||||
-----
|
||||
|
||||
* Added configurable job stores with several persistent back-ends
|
||||
(shelve, SQLAlchemy and MongoDB)
|
||||
|
||||
* Added the possibility to listen for job events (execution, error, misfire,
|
||||
finish) on a scheduler
|
||||
|
||||
* Added an optional start time for cron-style jobs
|
||||
|
||||
* Added optional job execution coalescing for situations where several
|
||||
executions of the job are due
|
||||
|
||||
* Added an option to limit the maximum number of concurrenctly executing
|
||||
instances of the job
|
||||
|
||||
* Allowed configuration of misfire grace times on a per-job basis
|
||||
|
||||
* Allowed jobs to be explicitly named
|
||||
|
||||
* All triggers now accept dates in string form (YYYY-mm-dd HH:MM:SS)
|
||||
|
||||
* Jobs are now run in a thread pool; you can either supply your own PEP 3148
|
||||
compliant thread pool or let APScheduler create its own
|
||||
|
||||
* Maximum run count can be configured for all jobs, not just those using
|
||||
interval-based scheduling
|
||||
|
||||
* Fixed a v1.x design flaw that caused jobs to be executed twice when the
|
||||
scheduler thread was woken up while still within the allowable range of their
|
||||
previous execution time (issues #5, #7)
|
||||
|
||||
* Changed defaults for cron-style jobs to be more intuitive -- it will now
|
||||
default to all minimum values for fields lower than the least significant
|
||||
explicitly defined field
|
||||
|
||||
|
||||
1.3.1
|
||||
-----
|
||||
|
||||
* Fixed time difference calculation to take into account shifts to and from
|
||||
daylight saving time
|
||||
|
||||
|
||||
1.3.0
|
||||
-----
|
||||
|
||||
* Added __repr__() implementations to expressions, fields, triggers, and jobs
|
||||
to help with debugging
|
||||
|
||||
* Added the dump_jobs method on Scheduler, which gives a helpful listing of
|
||||
all jobs scheduled on it
|
||||
|
||||
* Fixed positional weekday (3th fri etc.) expressions not working except in
|
||||
some edge cases (fixes #2)
|
||||
|
||||
* Removed autogenerated API documentation for modules which are not part of
|
||||
the public API, as it might confuse some users
|
||||
|
||||
.. Note:: Positional weekdays are now used with the **day** field, not
|
||||
**weekday**.
|
||||
|
||||
|
||||
1.2.1
|
||||
-----
|
||||
|
||||
* Fixed regression: add_cron_job() in Scheduler was creating a CronTrigger with
|
||||
the wrong parameters (fixes #1, #3)
|
||||
|
||||
* Fixed: if the scheduler is restarted, clear the "stopped" flag to allow
|
||||
jobs to be scheduled again
|
||||
|
||||
|
||||
1.2.0
|
||||
-----
|
||||
|
||||
* Added the ``week`` option for cron schedules
|
||||
|
||||
* Added the ``daemonic`` configuration option
|
||||
|
||||
* Fixed a bug in cron expression lists that could cause valid firing times
|
||||
to be missed
|
||||
|
||||
* Fixed unscheduling bound methods via unschedule_func()
|
||||
|
||||
* Changed CronTrigger constructor argument names to match those in Scheduler
|
||||
|
||||
|
||||
1.01
|
||||
----
|
||||
|
||||
* Fixed a corner case where the combination of hour and day_of_week parameters
|
||||
would cause incorrect timing for a cron trigger
|
||||
|
119
python-APScheduler.spec
Normal file
119
python-APScheduler.spec
Normal file
@@ -0,0 +1,119 @@
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user