Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-croniter for openSUSE:Factory
checked in at 2022-01-15 20:05:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-croniter (Old)
and /work/SRC/openSUSE:Factory/.python-croniter.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-croniter"
Sat Jan 15 20:05:22 2022 rev:20 rq:946664 version:1.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-croniter/python-croniter.changes
2021-12-07 00:02:21.567932645 +0100
+++
/work/SRC/openSUSE:Factory/.python-croniter.new.1892/python-croniter.changes
2022-01-15 20:05:44.329784215 +0100
@@ -1,0 +2,9 @@
+Sat Jan 15 16:22:04 UTC 2022 - Dirk M??ller <[email protected]>
+
+- update to 1.2.0:
+ * Enforce validation for day=1. Before this release we used to support day=0
+ and it was silently glided to day=1 to support having both day in day in
+ 4th field when it came to have 6fields cron forms (second repeat). It will
+ now raises a CroniterBadDateError.
+
+-------------------------------------------------------------------
Old:
----
croniter-1.1.0.tar.gz
New:
----
croniter-1.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-croniter.spec ++++++
--- /var/tmp/diff_new_pack.GpRgNp/_old 2022-01-15 20:05:44.785784571 +0100
+++ /var/tmp/diff_new_pack.GpRgNp/_new 2022-01-15 20:05:44.789784574 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-croniter
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-croniter
-Version: 1.1.0
+Version: 1.2.0
Release: 0
Summary: Python iterators for datetime objects with cron-like format
License: MIT
++++++ croniter-1.1.0.tar.gz -> croniter-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/PKG-INFO new/croniter-1.2.0/PKG-INFO
--- old/croniter-1.1.0/PKG-INFO 2021-12-03 20:59:43.088390600 +0100
+++ new/croniter-1.2.0/PKG-INFO 2022-01-14 18:31:30.080388000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: croniter
-Version: 1.1.0
+Version: 1.2.0
Summary: croniter provides iteration for datetime object with cron like format
Home-page: http://github.com/kiorky/croniter
Author: Matsumoto Taichi, kiorky
@@ -79,7 +79,7 @@
entries. Default option is the cron behaviour, which connects those
values using **OR**. If the switch is set to False, the values are
connected
using **AND**. This behaves like fcron and enables you to e.g. define
a job that
- executes each 2nd friday of a month by setting the days of month and
the
+ executes each 2nd Friday of a month by setting the days of month and
the
weekday.
::
@@ -120,10 +120,15 @@
>>> local_date = datetime(2017, 3, 26, tzinfo=tz)
>>> val = croniter('0 0 * * *', local_date).get_next(datetime)
+ Example using python built in module::
+
+ >>> from datetime import datetime, timezone
+ >>> local_date = datetime(2017, 3, 26, tzinfo=timezone.utc)
+ >>> val = croniter('0 0 * * *', local_date).get_next(datetime)
About second repeats
=====================
- Croniter is able to do second repeatition crontabs form::
+ Croniter is able to do second repetition crontabs form::
>>> croniter('* * * * * 1', local_date).get_next(datetime)
>>> base = datetime(2012, 4, 6, 13, 26, 10)
@@ -295,6 +300,12 @@
Changelog
==============
+ 1.2.0 (2022-01-14)
+ ------------------
+
+ - Enforce validation for day=1. Before this release we used to support
day=0 and it was silently glided to day=1 to support having both day in day in
4th field when it came to have 6fields cron forms (second repeat). It will now
raises a CroniterBadDateError. See https://github.com/kiorky/croniter/issues/6
+ [kiorky]
+
1.1.0 (2021-12-03)
------------------
@@ -550,7 +561,7 @@
0.3.17 (2017-05-22)
-------------------
- - DOW occurence sharp style support.
+ - DOW occurrence sharp style support.
[kiorky, Kengo Seki <[email protected]>]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/README.rst
new/croniter-1.2.0/README.rst
--- old/croniter-1.1.0/README.rst 2021-12-03 20:59:42.000000000 +0100
+++ new/croniter-1.2.0/README.rst 2022-01-14 18:31:29.000000000 +0100
@@ -71,7 +71,7 @@
entries. Default option is the cron behaviour, which connects those
values using **OR**. If the switch is set to False, the values are connected
using **AND**. This behaves like fcron and enables you to e.g. define a job
that
-executes each 2nd friday of a month by setting the days of month and the
+executes each 2nd Friday of a month by setting the days of month and the
weekday.
::
@@ -112,10 +112,15 @@
>>> local_date = datetime(2017, 3, 26, tzinfo=tz)
>>> val = croniter('0 0 * * *', local_date).get_next(datetime)
+Example using python built in module::
+
+ >>> from datetime import datetime, timezone
+ >>> local_date = datetime(2017, 3, 26, tzinfo=timezone.utc)
+ >>> val = croniter('0 0 * * *', local_date).get_next(datetime)
About second repeats
=====================
-Croniter is able to do second repeatition crontabs form::
+Croniter is able to do second repetition crontabs form::
>>> croniter('* * * * * 1', local_date).get_next(datetime)
>>> base = datetime(2012, 4, 6, 13, 26, 10)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/docs/CHANGES.rst
new/croniter-1.2.0/docs/CHANGES.rst
--- old/croniter-1.1.0/docs/CHANGES.rst 2021-12-03 20:59:42.000000000 +0100
+++ new/croniter-1.2.0/docs/CHANGES.rst 2022-01-14 18:31:29.000000000 +0100
@@ -1,6 +1,12 @@
Changelog
==============
+1.2.0 (2022-01-14)
+------------------
+
+- Enforce validation for day=1. Before this release we used to support day=0
and it was silently glided to day=1 to support having both day in day in 4th
field when it came to have 6fields cron forms (second repeat). It will now
raises a CroniterBadDateError. See https://github.com/kiorky/croniter/issues/6
+ [kiorky]
+
1.1.0 (2021-12-03)
------------------
@@ -256,7 +262,7 @@
0.3.17 (2017-05-22)
-------------------
-- DOW occurence sharp style support.
+- DOW occurrence sharp style support.
[kiorky, Kengo Seki <[email protected]>]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/setup.py new/croniter-1.2.0/setup.py
--- old/croniter-1.1.0/setup.py 2021-12-03 20:59:42.000000000 +0100
+++ new/croniter-1.2.0/setup.py 2022-01-14 18:31:29.000000000 +0100
@@ -24,7 +24,7 @@
setup(
name='croniter',
- version='1.1.0',
+ version='1.2.0',
py_modules=['croniter', ],
description=(
'croniter provides iteration for datetime '
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/src/croniter/croniter.py
new/croniter-1.2.0/src/croniter/croniter.py
--- old/croniter-1.1.0/src/croniter/croniter.py 2021-12-03 20:59:42.000000000
+0100
+++ new/croniter-1.2.0/src/croniter/croniter.py 2022-01-14 18:31:29.000000000
+0100
@@ -18,7 +18,7 @@
try:
from collections import OrderedDict
except ImportError:
- OrderedDict = dict # py26 degraded mode, expanders order wont be immutable
+ OrderedDict = dict # py26 degraded mode, expanders order will not be
immutable
step_search_re = re.compile(r'^([^-]+)-([^-/]+)(/(\d+))?$')
@@ -247,7 +247,7 @@
result = self._calc(self.cur, expanded,
nth_weekday_of_month, is_prev)
- # DST Handling for cron job spanning accross days
+ # DST Handling for cron job spanning across days
dtstarttime = self._timestamp_to_datetime(self.dst_start_time)
dtstarttime_utcoffset = (
dtstarttime.utcoffset() or datetime.timedelta(0))
@@ -287,7 +287,7 @@
implicit call to __iter__, whenever non-default
'ret_type' has to be specified.
'''
- # In a Python 3.7+ world: contextlib.supress and
contextlib.nullcontext could be used instead
+ # In a Python 3.7+ world: contextlib.suppress and
contextlib.nullcontext could be used instead
try:
while True:
self._is_prev = False
@@ -716,8 +716,8 @@
# do not support 0 as a month either for classical 5
fields cron
# or 6fields second repeat form
# but still let conversion happen if day field is
shifted
- (i == 3 and len(expressions) == 5) or
- (i == 4 and len(expressions) == 6)
+ (i in [2, 3] and len(expressions) == 5) or
+ (i in [3, 4] and len(expressions) == 6)
):
t = cls.LOWMAP[i][t]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/src/croniter/tests/test_croniter.py
new/croniter-1.2.0/src/croniter/tests/test_croniter.py
--- old/croniter-1.1.0/src/croniter/tests/test_croniter.py 2021-12-03
20:59:42.000000000 +0100
+++ new/croniter-1.2.0/src/croniter/tests/test_croniter.py 2022-01-14
18:31:29.000000000 +0100
@@ -317,14 +317,14 @@
wildcard = ['*']
m, h, d, mon, dow, s = range(6)
# Test each field individually
- self.assertEqual(croniter('0-59 0 0 1 0').expanded[m], wildcard)
- self.assertEqual(croniter('0 0-23 0 1 0').expanded[h], wildcard)
- self.assertEqual(croniter('0 0 0-31 1 0').expanded[d], wildcard)
- self.assertEqual(croniter('0 0 0 1-12 0').expanded[mon], wildcard)
- self.assertEqual(croniter('0 0 0 1 0-6').expanded[dow], wildcard)
- self.assertEqual(croniter('0 0 0 1 1-7').expanded[dow], wildcard)
- self.assertEqual(croniter('0 0 0 1 1-7,sat#3').expanded[dow], wildcard)
- self.assertEqual(croniter('0 0 0 1 0 0-59').expanded[s], wildcard)
+ self.assertEqual(croniter('0-59 0 1 1 0').expanded[m], wildcard)
+ self.assertEqual(croniter('0 0-23 1 1 0').expanded[h], wildcard)
+ self.assertEqual(croniter('0 0 1-31 1 0').expanded[d], wildcard)
+ self.assertEqual(croniter('0 0 1 1-12 0').expanded[mon], wildcard)
+ self.assertEqual(croniter('0 0 1 1 0-6').expanded[dow], wildcard)
+ self.assertEqual(croniter('0 0 1 1 1-7').expanded[dow], wildcard)
+ self.assertEqual(croniter('0 0 1 1 1-7,sat#3').expanded[dow], wildcard)
+ self.assertEqual(croniter('0 0 1 1 0 0-59').expanded[s], wildcard)
# Real life examples
self.assertEqual(croniter('30 1-12,0,10-23 15-21 * fri').expanded[h],
wildcard)
self.assertEqual(croniter('30 1-23,0 15-21 * fri').expanded[h],
wildcard)
@@ -702,7 +702,7 @@
itr = croniter('* * * * *')
sleep(.01)
itr2 = croniter('* * * * *')
- # Greater dosnt exists in py26
+ # Greater does not exists in py26
self.assertTrue(itr2.cur > itr.cur)
def assertScheduleTimezone(self, callback, expected_schedule):
@@ -1342,41 +1342,42 @@
self.assertEqual(prev1.hour, 6)
self.assertEqual(prev1.minute, 0)
+ maxDiff = None
def test_issue_142_dow(self):
ret = []
for i in range(1, 31):
ret.append((i,
- croniter('35 * 0-l/8 * *', datetime(2020, 1, i),
+ croniter('35 * 1-l/8 * *', datetime(2020, 1, i),
ret_type=datetime).get_next())
)
i += 1
self.assertEqual(
ret,
[(1, datetime(2020, 1, 1, 0, 35)),
- (2, datetime(2020, 1, 8, 0, 35)),
- (3, datetime(2020, 1, 8, 0, 35)),
- (4, datetime(2020, 1, 8, 0, 35)),
- (5, datetime(2020, 1, 8, 0, 35)),
- (6, datetime(2020, 1, 8, 0, 35)),
- (7, datetime(2020, 1, 8, 0, 35)),
- (8, datetime(2020, 1, 8, 0, 35)),
- (9, datetime(2020, 1, 16, 0, 35)),
- (10, datetime(2020, 1, 16, 0, 35)),
- (11, datetime(2020, 1, 16, 0, 35)),
- (12, datetime(2020, 1, 16, 0, 35)),
- (13, datetime(2020, 1, 16, 0, 35)),
- (14, datetime(2020, 1, 16, 0, 35)),
- (15, datetime(2020, 1, 16, 0, 35)),
- (16, datetime(2020, 1, 16, 0, 35)),
- (17, datetime(2020, 1, 24, 0, 35)),
- (18, datetime(2020, 1, 24, 0, 35)),
- (19, datetime(2020, 1, 24, 0, 35)),
- (20, datetime(2020, 1, 24, 0, 35)),
- (21, datetime(2020, 1, 24, 0, 35)),
- (22, datetime(2020, 1, 24, 0, 35)),
- (23, datetime(2020, 1, 24, 0, 35)),
- (24, datetime(2020, 1, 24, 0, 35)),
- (25, datetime(2020, 2, 1, 0, 35)),
+ (2, datetime(2020, 1, 9, 0, 35)),
+ (3, datetime(2020, 1, 9, 0, 35)),
+ (4, datetime(2020, 1, 9, 0, 35)),
+ (5, datetime(2020, 1, 9, 0, 35)),
+ (6, datetime(2020, 1, 9, 0, 35)),
+ (7, datetime(2020, 1, 9, 0, 35)),
+ (8, datetime(2020, 1, 9, 0, 35)),
+ (9, datetime(2020, 1, 9, 0, 35)),
+ (10, datetime(2020, 1, 17, 0, 35)),
+ (11, datetime(2020, 1, 17, 0, 35)),
+ (12, datetime(2020, 1, 17, 0, 35)),
+ (13, datetime(2020, 1, 17, 0, 35)),
+ (14, datetime(2020, 1, 17, 0, 35)),
+ (15, datetime(2020, 1, 17, 0, 35)),
+ (16, datetime(2020, 1, 17, 0, 35)),
+ (17, datetime(2020, 1, 17, 0, 35)),
+ (18, datetime(2020, 1, 25, 0, 35)),
+ (19, datetime(2020, 1, 25, 0, 35)),
+ (20, datetime(2020, 1, 25, 0, 35)),
+ (21, datetime(2020, 1, 25, 0, 35)),
+ (22, datetime(2020, 1, 25, 0, 35)),
+ (23, datetime(2020, 1, 25, 0, 35)),
+ (24, datetime(2020, 1, 25, 0, 35)),
+ (25, datetime(2020, 1, 25, 0, 35)),
(26, datetime(2020, 2, 1, 0, 35)),
(27, datetime(2020, 2, 1, 0, 35)),
(28, datetime(2020, 2, 1, 0, 35)),
@@ -1433,13 +1434,14 @@
def test_confirm_sort(self):
m, h, d, mon, dow, s = range(6)
- self.assertListEqual(croniter('0 8,22,10,23 0 1 0').expanded[h], [8,
10, 22, 23])
+ self.assertListEqual(croniter('0 8,22,10,23 1 1 0').expanded[h], [8,
10, 22, 23])
self.assertListEqual(croniter('0 0 25-L 1 0').expanded[d], [25, 26,
27, 28, 29, 30, 31])
self.assertListEqual(croniter("1 1 7,14,21,L * *").expanded[d], [7,
14, 21, "l"])
self.assertListEqual(croniter("0 0 * * *,sat#3").expanded[dow], ["*",
6])
def test_issue_k6(self):
self.assertRaises(CroniterBadCronError, croniter, '0 0 0 0 0')
+ self.assertRaises(CroniterBadCronError, croniter, '0 0 0 1 0')
if __name__ == '__main__':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/croniter-1.1.0/src/croniter/tests/test_croniter_hash.py
new/croniter-1.2.0/src/croniter/tests/test_croniter_hash.py
--- old/croniter-1.1.0/src/croniter/tests/test_croniter_hash.py 2021-12-03
20:59:42.000000000 +0100
+++ new/croniter-1.2.0/src/croniter/tests/test_croniter_hash.py 2022-01-14
18:31:29.000000000 +0100
@@ -113,7 +113,7 @@
self._test_iter('H H * * *', 1577877000.0, (60 * 60 * 24),
next_type=float)
def test_invalid_definition(self):
- """Test an invalid defition raises CroniterNotAlphaError"""
+ """Test an invalid definition raises CroniterNotAlphaError"""
with self.assertRaises(CroniterNotAlphaError):
croniter('X X * * *', self.epoch, hash_id=self.hash_id)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/croniter-1.1.0/src/croniter.egg-info/PKG-INFO
new/croniter-1.2.0/src/croniter.egg-info/PKG-INFO
--- old/croniter-1.1.0/src/croniter.egg-info/PKG-INFO 2021-12-03
20:59:42.000000000 +0100
+++ new/croniter-1.2.0/src/croniter.egg-info/PKG-INFO 2022-01-14
18:31:29.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: croniter
-Version: 1.1.0
+Version: 1.2.0
Summary: croniter provides iteration for datetime object with cron like format
Home-page: http://github.com/kiorky/croniter
Author: Matsumoto Taichi, kiorky
@@ -79,7 +79,7 @@
entries. Default option is the cron behaviour, which connects those
values using **OR**. If the switch is set to False, the values are
connected
using **AND**. This behaves like fcron and enables you to e.g. define
a job that
- executes each 2nd friday of a month by setting the days of month and
the
+ executes each 2nd Friday of a month by setting the days of month and
the
weekday.
::
@@ -120,10 +120,15 @@
>>> local_date = datetime(2017, 3, 26, tzinfo=tz)
>>> val = croniter('0 0 * * *', local_date).get_next(datetime)
+ Example using python built in module::
+
+ >>> from datetime import datetime, timezone
+ >>> local_date = datetime(2017, 3, 26, tzinfo=timezone.utc)
+ >>> val = croniter('0 0 * * *', local_date).get_next(datetime)
About second repeats
=====================
- Croniter is able to do second repeatition crontabs form::
+ Croniter is able to do second repetition crontabs form::
>>> croniter('* * * * * 1', local_date).get_next(datetime)
>>> base = datetime(2012, 4, 6, 13, 26, 10)
@@ -295,6 +300,12 @@
Changelog
==============
+ 1.2.0 (2022-01-14)
+ ------------------
+
+ - Enforce validation for day=1. Before this release we used to support
day=0 and it was silently glided to day=1 to support having both day in day in
4th field when it came to have 6fields cron forms (second repeat). It will now
raises a CroniterBadDateError. See https://github.com/kiorky/croniter/issues/6
+ [kiorky]
+
1.1.0 (2021-12-03)
------------------
@@ -550,7 +561,7 @@
0.3.17 (2017-05-22)
-------------------
- - DOW occurence sharp style support.
+ - DOW occurrence sharp style support.
[kiorky, Kengo Seki <[email protected]>]