15
0

- Use license from the archive

- Enable tests
- Add all the recommended packages as suggests (databases)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal
2018-10-18 08:02:45 +00:00
committed by Git OBS Bridge
parent c918d57a2a
commit 83556f111c
3 changed files with 44 additions and 35 deletions

View File

@@ -1,19 +0,0 @@
Copyright (c) 2012 Vladimir Keleshev, <vladimir@keleshev.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 18 08:02:10 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Use license from the archive
- Enable tests
- Add all the recommended packages as suggests (databases)
-------------------------------------------------------------------
Wed Oct 17 14:35:19 UTC 2018 - sjamgade@suse.com

View File

@@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -20,28 +20,45 @@
Name: python-APScheduler
Version: 3.5.1
Release: 0
Url: http://pypi.python.org/pypi/APScheduler/
Summary: In-process task scheduler with Cron-like capabilities
License: MIT
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/APScheduler/
Source: https://files.pythonhosted.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz
Source1: LICENSE.txt
BuildRequires: %{python_module devel}
BuildRequires: %{python_module SQLAlchemy >= 0.8}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module pytest-tornado}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools >= 0.7}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.4.0}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module tzlocal >= 1.2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%ifpython2
Requires: python2-funcsigs
Requires: python2-futures
%endif
BuildRequires: python2-funcsigs
BuildRequires: python2-futures
BuildRequires: python2-mock
BuildRequires: python2-trollius
BuildRequires: python3-pytest-asyncio
Requires: python-pytz
Requires: python-six >= 1.4.0
Requires: python-tzlocal >= 1.2
Recommends: python-SQLAlchemy >= 0.8
Recommends: python-gevent
Recommends: python-Twisted
Suggests: python-kazoo
Suggests: python-pymongo >= 2.8
Suggests: python-redis
Suggests: python-tornado >= 4.3
BuildArch: noarch
%ifpython2
Requires: python2-funcsigs
Requires: python2-futures
Requires: python2-trollius
%endif
%python_subpackages
%description
@@ -60,25 +77,29 @@ APscheduler provides multiple job stores.
* 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
* RAM
* File-based simple database (shelve)
* SQLAlchemy (any supported RDBMS works)
* MongoDB
%prep
%setup -q -n APScheduler-%{version}
# we don't want the tweaked pytest config options
rm setup.cfg
%build
install -m 644 %{SOURCE1} %{_builddir}/APScheduler-%{version}
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%license LICENSE.txt
%doc README.rst
%doc examples/
%{python_sitelib}/*