From 5e4a4c457053980a0da78cdb2ca889492192621e Mon Sep 17 00:00:00 2001 From: Aaron Loo Date: Wed, 25 Mar 2020 08:33:49 -0700 Subject: [PATCH] making python-crontab an optional dependency --- README.md | 2 +- setup.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17473a7..ad7a42c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Therefore, `detect-secrets-server` accomplishes several things: ### Quick Start ``` -$ pip install detect-secrets-server +$ pip install detect-secrets-server[cron] $ detect-secrets-server add git@github.com:yelp/detect-secrets $ detect-secrets-server install cron ``` diff --git a/setup.py b/setup.py index 1c81c24..1bbafba 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,12 @@ 'detect-secrets>=0.13.0', 'pyyaml', 'unidiff', - 'python-crontab', ], + extras_require={ + 'cron': [ + 'python-crontab', + ], + }, entry_points={ 'console_scripts': [ 'detect-secrets-server = detect_secrets_server.__main__:main',