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 2021-12-07 00:00:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-croniter (Old)
 and      /work/SRC/openSUSE:Factory/.python-croniter.new.31177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-croniter"

Tue Dec  7 00:00:32 2021 rev:19 rq:936119 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-croniter/python-croniter.changes  
2021-10-18 22:01:55.962082309 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-croniter.new.31177/python-croniter.changes   
    2021-12-07 00:02:21.567932645 +0100
@@ -1,0 +2,8 @@
+Mon Dec  6 20:11:10 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 1.1.0:
+  * Enforce validation for month=1. Before this release we used to support
+    month=0 and it was silently glided to month=1 to support having both day in
+    month in 4th field when it came to have 6fields cron forms
+
+-------------------------------------------------------------------

Old:
----
  croniter-1.0.15.tar.gz

New:
----
  croniter-1.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-croniter.spec ++++++
--- /var/tmp/diff_new_pack.WZ7Rpl/_old  2021-12-07 00:02:22.075930848 +0100
+++ /var/tmp/diff_new_pack.WZ7Rpl/_new  2021-12-07 00:02:22.075930848 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-croniter
-Version:        1.0.15
+Version:        1.1.0
 Release:        0
 Summary:        Python iterators for datetime objects with cron-like format
 License:        MIT

++++++ croniter-1.0.15.tar.gz -> croniter-1.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/PKG-INFO new/croniter-1.1.0/PKG-INFO
--- old/croniter-1.0.15/PKG-INFO        2021-06-25 10:17:39.104149800 +0200
+++ new/croniter-1.1.0/PKG-INFO 2021-12-03 20:59:43.088390600 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: croniter
-Version: 1.0.15
+Version: 1.1.0
 Summary: croniter provides iteration for datetime object with cron like format
 Home-page: http://github.com/kiorky/croniter
 Author: Matsumoto Taichi, kiorky
@@ -295,6 +295,12 @@
         Changelog
         ==============
         
+        1.1.0 (2021-12-03)
+        ------------------
+        
+        - Enforce validation for month=1. Before this release we used to 
support month=0 and it was silently glided to month=1 to support having both 
day in month 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.0.15 (2021-06-25)
         -------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/docs/CHANGES.rst 
new/croniter-1.1.0/docs/CHANGES.rst
--- old/croniter-1.0.15/docs/CHANGES.rst        2021-06-25 10:17:38.000000000 
+0200
+++ new/croniter-1.1.0/docs/CHANGES.rst 2021-12-03 20:59:42.000000000 +0100
@@ -1,6 +1,12 @@
 Changelog
 ==============
 
+1.1.0 (2021-12-03)
+------------------
+
+- Enforce validation for month=1. Before this release we used to support 
month=0 and it was silently glided to month=1 to support having both day in 
month 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.0.15 (2021-06-25)
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/setup.py new/croniter-1.1.0/setup.py
--- old/croniter-1.0.15/setup.py        2021-06-25 10:17:38.000000000 +0200
+++ new/croniter-1.1.0/setup.py 2021-12-03 20:59:42.000000000 +0100
@@ -24,7 +24,7 @@
 
 setup(
     name='croniter',
-    version='1.0.15',
+    version='1.1.0',
     py_modules=['croniter', ],
     description=(
         'croniter provides iteration for datetime '
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/src/croniter/croniter.py 
new/croniter-1.1.0/src/croniter/croniter.py
--- old/croniter-1.0.15/src/croniter/croniter.py        2021-06-25 
10:17:38.000000000 +0200
+++ new/croniter-1.1.0/src/croniter/croniter.py 2021-12-03 20:59:42.000000000 
+0100
@@ -712,7 +712,13 @@
                     except ValueError:
                         pass
 
-                    if t in cls.LOWMAP[i]:
+                    if t in cls.LOWMAP[i] and not (
+                        # 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)
+                    ):
                         t = cls.LOWMAP[i][t]
 
                     if (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/src/croniter/tests/test_croniter.py 
new/croniter-1.1.0/src/croniter/tests/test_croniter.py
--- old/croniter-1.0.15/src/croniter/tests/test_croniter.py     2021-06-25 
10:17:38.000000000 +0200
+++ new/croniter-1.1.0/src/croniter/tests/test_croniter.py      2021-12-03 
20:59:42.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 0 0').expanded[m], wildcard)
-        self.assertEqual(croniter('0 0-23 0 0 0').expanded[h], wildcard)
-        self.assertEqual(croniter('0 0 0-31 0 0').expanded[d], wildcard)
+        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 0 0-6').expanded[dow], wildcard)
-        self.assertEqual(croniter('0 0 0 0 1-7').expanded[dow], wildcard)
-        self.assertEqual(croniter('0 0 0 0 1-7,sat#3').expanded[dow], wildcard)
-        self.assertEqual(croniter('0 0 0 0 0 0-59').expanded[s], 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)
         # 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)
@@ -993,12 +993,12 @@
              '2019-01-17 00:00:01',
              '2019-01-18 00:00:02',
              '2019-01-19 00:00:03',
-             '2019-01-20 00:00:04',
              '2019-01-23 00:00:00',
              '2019-01-24 00:00:01',
              '2019-01-25 00:00:02',
              '2019-01-26 00:00:03',
-             '2019-01-27 00:00:04'])
+             '2019-01-30 00:00:00',
+             '2019-01-31 00:00:01'])
 
     def test_mixdow(self):
         base = datetime(2018, 10, 1, 0, 0)
@@ -1433,11 +1433,14 @@
 
     def test_confirm_sort(self):
         m, h, d, mon, dow, s = range(6)
-        self.assertListEqual(croniter('0 8,22,10,23 0 0 0').expanded[h], [8, 
10, 22, 23])
-        self.assertListEqual(croniter('0 0 25-L 0 0').expanded[d], [25, 26, 
27, 28, 29, 30, 31])
+        self.assertListEqual(croniter('0 8,22,10,23 0 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')
+
 
 if __name__ == '__main__':
     unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/croniter-1.0.15/src/croniter.egg-info/PKG-INFO 
new/croniter-1.1.0/src/croniter.egg-info/PKG-INFO
--- old/croniter-1.0.15/src/croniter.egg-info/PKG-INFO  2021-06-25 
10:17:38.000000000 +0200
+++ new/croniter-1.1.0/src/croniter.egg-info/PKG-INFO   2021-12-03 
20:59:42.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: croniter
-Version: 1.0.15
+Version: 1.1.0
 Summary: croniter provides iteration for datetime object with cron like format
 Home-page: http://github.com/kiorky/croniter
 Author: Matsumoto Taichi, kiorky
@@ -295,6 +295,12 @@
         Changelog
         ==============
         
+        1.1.0 (2021-12-03)
+        ------------------
+        
+        - Enforce validation for month=1. Before this release we used to 
support month=0 and it was silently glided to month=1 to support having both 
day in month 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.0.15 (2021-06-25)
         -------------------
         

Reply via email to