Accepting request 518656 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/518656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-croniter?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2017-08-28 13:15:57 +00:00 committed by Git OBS Bridge
commit 1b33814075
4 changed files with 40 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:445cb26bc2f3cff25a7b06575caf98312b552affffeee0437f26d416c6e3c895
size 13761

3
croniter-0.3.17.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9db0f313db21e38c6861e88f3649cb828dfc0d450994fb1ed20c279727fc811b
size 17362

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Fri Aug 25 07:05:44 UTC 2017 - tbechtold@suse.com
- update to 0.3.17:
- DOW occurence sharp style support.
- Better test suite
- DST support
- fix bug around multiple conditions and range_val in
_get_prev_nearest_diff.
- issue #69: added day_or option to change behavior when day-of-month and
day-of-week is given
- `Real fix for #34
- `Modernize test infra
- `Release as a universal wheel
- `Raise ValueError on negative numbers
- `Compare types using "issubclass" instead of exact match
- `Implement step cron with a variable base
- convert to singlespec
-------------------------------------------------------------------
Tue Nov 15 10:24:09 UTC 2016 - dmueller@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-croniter
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,28 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-croniter
Version: 0.3.12
Version: 0.3.17
Release: 0
Summary: Croniter provides iteration for datetime object with cron like format
License: MIT
Group: Development/Languages/Python
Url: http://github.com/kiorky/croniter
Source: https://pypi.io/packages/source/c/croniter/croniter-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source: https://files.pythonhosted.org/packages/source/c/croniter/croniter-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
# Test requirements:
BuildRequires: python-nose
BuildRequires: python-python-dateutil
BuildRequires: python-pytz
BuildRequires: %{python_module nose}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
Requires: python-python-dateutil
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%python_subpackages
%description
croniter provides iteration for datetime object with cron like format.
@ -46,15 +46,16 @@ croniter provides iteration for datetime object with cron like format.
%setup -q -n croniter-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
nosetests
%python_exec %{_bindir}/nosetests
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst docs/LICENSE
%{python_sitelib}/*