From 2488127b9cf48d76e9efd470586a9c1b5d1cab7b Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 2 Jan 2020 10:53:59 -0800 Subject: [PATCH 1/5] noop to test hook From 81803f36f165ae7b8e93b49e72113d634ab55399 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 2 Jan 2020 10:54:44 -0800 Subject: [PATCH 2/5] noop to test hook From 0e4a09ae13ee2ebade8a6cfc1de98f5a8e774751 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 2 Jan 2020 17:19:55 -0800 Subject: [PATCH 3/5] Adding pipenv ! --- Pipfile | 12 ++++++++++++ Pipfile.lock | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 Pipfile create mode 100644 Pipfile.lock diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..af965aa --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +url = "https://pypi.python.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +pyyaml = "*" + +[dev-packages] + +[requires] +python_version = "3.7" diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 0000000..b1f7e6b --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,38 @@ +{ + "_meta": { + "hash": { + "sha256": "0df46f7a63444903ec7a2c27100b62c2c4c03930c9cc06281e292b56a4eb5038" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "3.7" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.python.org/simple", + "verify_ssl": true + } + ] + }, + "default": { + "pyyaml": { + "hashes": [ + "sha256:0e7f69397d53155e55d10ff68fdfb2cf630a35e6daf65cf0bdeaf04f127c09dc", + "sha256:2e9f0b7c5914367b0916c3c104a024bb68f269a486b9d04a2e8ac6f6597b7803", + "sha256:35ace9b4147848cafac3db142795ee42deebe9d0dad885ce643928e88daebdcc", + "sha256:38a4f0d114101c58c0f3a88aeaa44d63efd588845c5a2df5290b73db8f246d15", + "sha256:483eb6a33b671408c8529106df3707270bfacb2447bf8ad856a4b4f57f6e3075", + "sha256:4b6be5edb9f6bb73680f5bf4ee08ff25416d1400fbd4535fe0069b2994da07cd", + "sha256:7f38e35c00e160db592091751d385cd7b3046d6d51f578b29943225178257b31", + "sha256:8100c896ecb361794d8bfdb9c11fce618c7cf83d624d73d5ab38aef3bc82d43f", + "sha256:c0ee8eca2c582d29c3c2ec6e2c4f703d1b7f1fb10bc72317355a746057e7346c", + "sha256:e4c015484ff0ff197564917b4b4246ca03f411b9bd7f16e02a2f586eb48b6d04", + "sha256:ebc4ed52dcc93eeebeae5cf5deb2ae4347b3a81c3fa12b0b8c976544829396a4" + ], + "index": "pypi", + "version": "==5.2" + } + }, + "develop": {} +} From da4c0671e156ada4e825a569b5f6adf3085972ff Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 2 Jan 2020 18:06:09 -0800 Subject: [PATCH 4/5] Write to syslog as well --- BackupRotator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BackupRotator.py b/BackupRotator.py index 992ae33..c4b9652 100755 --- a/BackupRotator.py +++ b/BackupRotator.py @@ -16,6 +16,7 @@ import datetime import os import shutil import sys +import syslog import yaml @@ -59,6 +60,8 @@ class BackupRotator: if o is not None: to_log += " " + str(o) + syslog.syslog(to_log) + print(to_log) def consume_arguments(self): From 985a5b6b69955e35aca1835274b205df1df7ceea Mon Sep 17 00:00:00 2001 From: "info@sevencode.com" Date: Mon, 15 Jun 2020 11:48:56 -0700 Subject: [PATCH 5/5] Bump python to 3.8 in pipenv --- Pipfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pipfile b/Pipfile index af965aa..521715d 100644 --- a/Pipfile +++ b/Pipfile @@ -9,4 +9,5 @@ pyyaml = "*" [dev-packages] [requires] -python_version = "3.7" +python_version = "3.8" +