From d5e977b7ed8ef28f8ae03b59390a7e551524e88c Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Sun, 15 Dec 2019 13:53:33 +0100 Subject: [PATCH] Remove timeout decorator Signals do not work on windows and use_signals=False did not work at first try. --- Pipfile | 1 - Pipfile.lock | 9 +-------- ocopy/backup_check.py | 3 --- setup.py | 1 - 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Pipfile b/Pipfile index e125d4e..faf8e79 100644 --- a/Pipfile +++ b/Pipfile @@ -8,7 +8,6 @@ click = "*" defusedxml = "*" lxml = "*" requests = "*" -timeout_decorator = "*" xxhash = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 291ca9f..494981e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "705dc6ad67eae8a6b3c397b430792470ac29fe5fe2e18bffd0f3e836abcf225f" + "sha256": "8593e55ef79467aa3dbe537b13829f644c17e3559f29cda1d5b60e69ce5fe36b" }, "pipfile-spec": 6, "requires": {}, @@ -91,13 +91,6 @@ "index": "pypi", "version": "==2.22.0" }, - "timeout-decorator": { - "hashes": [ - "sha256:1a5e276e75c1c5acbf3cdbd9b5e45d77e1f8626f93e39bd5115d68119171d3c6" - ], - "index": "pypi", - "version": "==0.4.1" - }, "urllib3": { "hashes": [ "sha256:a8a318824cc77d1fd4b2bec2ded92646630d7fe8619497b142c84a9e6f5a7293", diff --git a/ocopy/backup_check.py b/ocopy/backup_check.py index c73ea3b..5502a92 100644 --- a/ocopy/backup_check.py +++ b/ocopy/backup_check.py @@ -3,8 +3,6 @@ from pathlib import Path from typing import List -import timeout_decorator - logger = logging.getLogger(__name__) @@ -27,7 +25,6 @@ def get_signatures(path: Path) -> set: return signatures -@timeout_decorator.timeout(30) def get_missing(src: str, dst: str) -> (List[str], int): logger.info(f"Searching all files from {src} in {dst}") src = Path(src) diff --git a/setup.py b/setup.py index 75a209d..bbd6a01 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,6 @@ "xxhash>=1.4.2", "defusedxml>=0.6.0", "requests>=2.22.0", - "timeout_decorator>=0.4.1", ], dependency_links=[], long_description=long_description,