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

111 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-APScheduler
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://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
%{?sle15_python_module_pythons}
Name: python-APScheduler
Version: 3.11.0
Release: 0
Summary: In-process task scheduler with Cron-like capabilities
License: MIT
URL: https://github.com/agronholm/apscheduler
Source: https://files.pythonhosted.org/packages/source/a/apscheduler/apscheduler-%{version}.tar.gz
BuildRequires: %{python_module SQLAlchemy >= 1.4}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-tornado}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools >= 36.2.7}
BuildRequires: %{python_module setuptools_scm >= 1.7.0}
BuildRequires: %{python_module six >= 1.4.0}
BuildRequires: %{python_module tornado}
- update to 3.7.0: * Dropped support for Python 3.4 * Added PySide2 support (PR by Abdulla Ibrahim) * Pinned ``tzlocal`` to a version compatible with pytz * Ensured that jitter is always non-negative to prevent triggers from firing more often than intended * Changed ``AsyncIOScheduler`` to obtain the event loop in ``start()`` instead of ``__init__()``, to prevent situations where the scheduler won't run because it's using a different event loop than then one currently running * Made it possible to create weak references to ``Job`` instances * Made the schedulers explicitly raise a descriptive ``TypeError`` when serialization is attempted * Fixed Zookeeper job store using backslashes instead of forward slashes for paths on Windows * Fixed deprecation warnings on the MongoDB job store and increased the minimum PyMongo * Fixed ``BlockingScheduler`` and ``BackgroundScheduler`` shutdown hanging after the user has erroneously tried to start it twice * Fixed memory leak when coroutine jobs raise exceptions * Fixed inability to schedule wrapped functions with extra arguments when the wrapped function cannot accept them but the wrapper can (original PR by Egor Malykh) * Fixed potential ``where`` clause error in the SQLAlchemy job store when a subclass uses more than one search condition * Fixed a problem where bound methods added as jobs via textual references were called with an unwanted extra ``self`` argument (PR by Pengjie Song) * Fixed ``BrokenPoolError`` in ``ProcessPoolExecutor`` so that it will automatically replace the broken pool with a fresh instance OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=40
2021-02-01 17:39:58 +00:00
BuildRequires: %{python_module tzlocal >= 2.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
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-pytz
Requires: python-six >= 1.4.0
- update to 3.7.0: * Dropped support for Python 3.4 * Added PySide2 support (PR by Abdulla Ibrahim) * Pinned ``tzlocal`` to a version compatible with pytz * Ensured that jitter is always non-negative to prevent triggers from firing more often than intended * Changed ``AsyncIOScheduler`` to obtain the event loop in ``start()`` instead of ``__init__()``, to prevent situations where the scheduler won't run because it's using a different event loop than then one currently running * Made it possible to create weak references to ``Job`` instances * Made the schedulers explicitly raise a descriptive ``TypeError`` when serialization is attempted * Fixed Zookeeper job store using backslashes instead of forward slashes for paths on Windows * Fixed deprecation warnings on the MongoDB job store and increased the minimum PyMongo * Fixed ``BlockingScheduler`` and ``BackgroundScheduler`` shutdown hanging after the user has erroneously tried to start it twice * Fixed memory leak when coroutine jobs raise exceptions * Fixed inability to schedule wrapped functions with extra arguments when the wrapped function cannot accept them but the wrapper can (original PR by Egor Malykh) * Fixed potential ``where`` clause error in the SQLAlchemy job store when a subclass uses more than one search condition * Fixed a problem where bound methods added as jobs via textual references were called with an unwanted extra ``self`` argument (PR by Pengjie Song) * Fixed ``BrokenPoolError`` in ``ProcessPoolExecutor`` so that it will automatically replace the broken pool with a fresh instance OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=40
2021-02-01 17:39:58 +00:00
Requires: python-tzlocal >= 2.0
Recommends: python-SQLAlchemy >= 1.4
Recommends: python-Twisted
Recommends: python-gevent
Suggests: python-kazoo
- update to 3.7.0: * Dropped support for Python 3.4 * Added PySide2 support (PR by Abdulla Ibrahim) * Pinned ``tzlocal`` to a version compatible with pytz * Ensured that jitter is always non-negative to prevent triggers from firing more often than intended * Changed ``AsyncIOScheduler`` to obtain the event loop in ``start()`` instead of ``__init__()``, to prevent situations where the scheduler won't run because it's using a different event loop than then one currently running * Made it possible to create weak references to ``Job`` instances * Made the schedulers explicitly raise a descriptive ``TypeError`` when serialization is attempted * Fixed Zookeeper job store using backslashes instead of forward slashes for paths on Windows * Fixed deprecation warnings on the MongoDB job store and increased the minimum PyMongo * Fixed ``BlockingScheduler`` and ``BackgroundScheduler`` shutdown hanging after the user has erroneously tried to start it twice * Fixed memory leak when coroutine jobs raise exceptions * Fixed inability to schedule wrapped functions with extra arguments when the wrapped function cannot accept them but the wrapper can (original PR by Egor Malykh) * Fixed potential ``where`` clause error in the SQLAlchemy job store when a subclass uses more than one search condition * Fixed a problem where bound methods added as jobs via textual references were called with an unwanted extra ``self`` argument (PR by Pengjie Song) * Fixed ``BrokenPoolError`` in ``ProcessPoolExecutor`` so that it will automatically replace the broken pool with a fresh instance OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=40
2021-02-01 17:39:58 +00:00
Suggests: python-pymongo >= 3.0
Suggests: python-redis
Suggests: python-tornado >= 4.3
BuildArch: noarch
%if %{with python2}
BuildRequires: python-funcsigs
BuildRequires: python-futures
BuildRequires: python-mock
BuildRequires: python-trollius
%endif
%ifpython2
Requires: python-funcsigs
Requires: python-futures
Requires: python-trollius
%endif
%python_subpackages
%description
Advanced Python Scheduler (APScheduler) is an in-process task
scheduler that lets you schedule jobs (functions or any python callables) to be
executed at any time of your choosing.
This can be an alternative to externally run cron scripts for
long-running applications (e.g. web applications), as it is platform neutral
and can access the application's variables and functions.
APscheduler provides multiple job stores.
* 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}
sed -i 's/--cov//' setup.cfg
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/agronholm/apscheduler/issues/601
%pytest -k 'not test_broken_pool'
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%doc examples/
%{python_sitelib}/apscheduler
%{python_sitelib}/apscheduler-%{version}.dist-info
%changelog