[med-svn] [snakemake] 06/06: Temporarily patch out rate limiter
chrysn
chrysn-guest at moszumanska.debian.org
Mon Dec 4 21:27:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
chrysn-guest pushed a commit to branch master
in repository snakemake.
commit 5fb1243b74ee0a22624c07a8a67d52ceb3b68823
Author: chrysn <chrysn at fsfe.org>
Date: Tue Nov 14 09:32:16 2017 +0100
Temporarily patch out rate limiter
---
debian/patches/0007-noop-rate-limiter.patch | 36 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 37 insertions(+)
diff --git a/debian/patches/0007-noop-rate-limiter.patch b/debian/patches/0007-noop-rate-limiter.patch
new file mode 100644
index 0000000..eff31b3
--- /dev/null
+++ b/debian/patches/0007-noop-rate-limiter.patch
@@ -0,0 +1,36 @@
+Author: Christian Amsüss <chrysn at fsfe.org>
+Last-Update: Tue, 14 Nov 2017 09:28:21 CET +0100
+Description: Temporary workaround for missing ratelimiter package (#880661).
+ This removes functionality and should not be left in for the package for a
+ released version, but eases fixing the build failures.
+
+--- a/snakemake/executors.py
++++ b/snakemake/executors.py
+@@ -405,7 +405,11 @@
+ exec_job=None,
+ assume_shared_fs=True,
+ max_status_checks_per_second=1):
+- from ratelimiter import RateLimiter
++
++ import contextlib
++ @contextlib.contextmanager
++ def _cm(): yield
++ RateLimiter = lambda *args, **wkargs: _cm()
+
+ local_input = local_input or []
+ super().__init__(workflow, dag,
+--- a/snakemake/scheduler.py
++++ b/snakemake/scheduler.py
+@@ -61,7 +61,11 @@
+ force_use_threads=False,
+ assume_shared_fs=True):
+ """ Create a new instance of KnapsackJobScheduler. """
+- from ratelimiter import RateLimiter
++
++ import contextlib
++ @contextlib.contextmanager
++ def _cm(): yield
++ RateLimiter = lambda *args, **wkargs: _cm()
+
+ self.cluster = cluster
+ self.cluster_config = cluster_config
diff --git a/debian/patches/series b/debian/patches/series
index d039ce2..6a30ac9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
0004-drop_test_symlink_time_handling.patch
# 0005-drop_test_symlink_temp.patch - should be fixed in commit d697f23
0006-restore-bin.patch
+0007-noop-rate-limiter.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/snakemake.git
More information about the debian-med-commit
mailing list