14
0
Files
python-APScheduler/python-APScheduler.spec

100 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-APScheduler
#
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
# 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.
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
Name: python-APScheduler
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
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
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
Requires: python-futures
Requires: python-pytz
Requires: python-six
Requires: python-tzlocal
BuildRequires: python-devel
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
BuildRequires: python-futures
BuildRequires: python-mock
BuildRequires: python-nose
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
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
Accepting request 293863 from home:rjschwei:branches:devel:languages:python - Update to version 3.0.2 + Add new upstream dependencies: ~ python-futures ~ python-pytz ~ python-six ~ python-tzlocal + Contains incompatible changes to previous version + Fixed ValueError when the target callable has a default keyword argument that wasn’t overridden + Fixed wrong job sort order in some job stores + Fixed exception when loading all jobs from the redis job store when there are paused jobs in it + Fixed AttributeError when printing a job list when there were pending jobs + Added setuptools as an explicit requirement in install requirements + A wider variety of target callables can now be scheduled so that the jobs are still serializable (static methods on Python 3.3+, unbound methods on all except Python 3.2) + Attempting to serialize a non-serializable Job now raises a helpful exception during serialization. Thanks to Jeremy Morgan for pointing this out. + Fixed table creation with SQLAlchemyJobStore on MySQL/InnoDB + Fixed start date getting set too far in the future with a timezone different from the local one + Fixed _run_job_error() being called with the incorrect number of arguments in most executors + Added support for timezones (special thanks to Curtis Vogt for help with this one) + Split the old Scheduler class into BlockingScheduler and BackgroundScheduler and added integration for asyncio (PEP 3156), Gevent, Tornado, Twisted and Qt event loops OBS-URL: https://build.opensuse.org/request/show/293863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=6
2015-04-02 07:51:38 +00:00
#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