From 5d93afbad5d4e7193d012e5b73f579d44d148eae Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 13 Oct 2020 11:59:11 +0300 Subject: python3-croniter: Upgrade 0.3.34 -> 0.3.35 Upgrade to release 0.3.35: - Handle L in ranges. - Add a new initializaton paramter max_years_between_matches to support finding the next/previous date beyond the default 1 year window, if so desired. Updated README to include additional notes and example of this usage. - The croniter_range() function was updated to automatically determines the appropriate max_years_between_matches value, this preventing handling of the CroniterBadDateError exception. - Updated exception handling classes: CroniterBadDateError now only applies during date finding operations (next/prev), and all parsing errors can now be caught using CroniterBadCronError. The CroniterNotAlphaError exception is now a subclass of CroniterBadCronError. A breif description of each exception class was added as an inline docstring. - Updated iterable interfaces to replace the CroniterBadDateError with StopIteration if (and only if) the max_years_between_matches argument is provided. The rationale here is that if the user has specified the max tollernace between matches, then there's no need to further inform them of no additional matches. Just stop the iteration. This also keeps backwards compatibility. - Minor docs update. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-croniter_0.3.34.bb | 12 ------------ .../recipes-devtools/python/python3-croniter_0.3.35.bb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-croniter_0.3.34.bb create mode 100644 meta-python/recipes-devtools/python/python3-croniter_0.3.35.bb diff --git a/meta-python/recipes-devtools/python/python3-croniter_0.3.34.bb b/meta-python/recipes-devtools/python/python3-croniter_0.3.34.bb deleted file mode 100644 index 123d176137..0000000000 --- a/meta-python/recipes-devtools/python/python3-croniter_0.3.34.bb +++ /dev/null @@ -1,12 +0,0 @@ -DESCRIPTION = "croniter provides iteration for datetime object with cron like format" -SECTION = "devel/python" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2" - -PYPI_PACKAGE = "croniter" -SRC_URI[md5sum] = "adfeeb0032ab7aeccba908fa2eb09c33" -SRC_URI[sha256sum] = "7186b9b464f45cf3d3c83a18bc2344cc101d7b9fd35a05f2878437b14967e964" - -inherit pypi setuptools3 - -RDEPENDS_${PN} += " python3-dateutil python3-natsort" diff --git a/meta-python/recipes-devtools/python/python3-croniter_0.3.35.bb b/meta-python/recipes-devtools/python/python3-croniter_0.3.35.bb new file mode 100644 index 0000000000..388885c158 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-croniter_0.3.35.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "croniter provides iteration for datetime object with cron like format" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2" + +PYPI_PACKAGE = "croniter" +SRC_URI[md5sum] = "8bb1443b90123f96ad64d7fae26df342" +SRC_URI[sha256sum] = "b9075573d9d18fdc4c67ad6741c4bfa4b446b1b1d7f03279757244c8a75abedf" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += " python3-dateutil python3-natsort" -- cgit 1.2.3-korg