From 7b76984a125a8bd3921063c92402b8e8ca5a034f Mon Sep 17 00:00:00 2001 From: Bao Doan N Date: Mon, 4 Apr 2022 09:40:15 +0700 Subject: [PATCH] Upd: release 1.0.6 --- README.md | 7 ++++--- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d11d94d..d7fae3d 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ while True: print("Now is the next scheduled time.") ``` -**5. Use extended cron rules based on AWS EventBridge rules** +**5. Use extended cron rules based on AWS EventBridge rules** (from v1.0.6) The cron validator supports partially extended rules based on the Amazon EvenBridge rule set. [More info.](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html#eb-cron-expressions) @@ -107,12 +107,13 @@ Currently we support: ```python from cron_validator import CronValidator from cron_validator.util import str_to_datetime +from cron_validator.regexes import Version dt_str = '2023-04-28 1:00' dt = str_to_datetime(dt_str) -assert CronValidator.match_datetime("* * * * 30W", dt, , version=Version.EB) -assert CronValidator.match_datetime("* * * * 5L", dt, , version=Version.EB) +assert CronValidator.match_datetime("* * * * 30W", dt, version=Version.EB) +assert CronValidator.match_datetime("* * * * 5L", dt, version=Version.EB) dt_str = "2022-02-28 1:00" dt = str_to_datetime(dt_str) diff --git a/setup.py b/setup.py index bd2c881..c2c165e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="cron-validator", packages=["cron_validator"], - version="1.0.5", + version="1.0.6", license="MIT", description="Unix cron implementation by Python", long_description=long_description, @@ -21,6 +21,6 @@ author_email="doanngocbao@gmail.com", url="https://github.com/vcoder4c/cron-validator", keywords=["cron", "python", "cron expression validator", "cron expression iterator", "cron scheduler"], - download_url="https://github.com/vcoder4c/cron-validator/archive/v1.0.5.tar.gz", + download_url="https://github.com/vcoder4c/cron-validator/archive/v1.0.6.tar.gz", install_requires=["python_dateutil", "pytz"], )