polyswarm-engine 3.2.2__tar.gz → 3.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/PKG-INFO +1 -1
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/__init__.py +1 -1
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/backend.py +5 -1
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/engine.py +2 -2
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/PKG-INFO +1 -1
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/pyproject.toml +2 -2
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/README.md +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/bidutils.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/bounty.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/celeryconfig.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/cli.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/command.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/constants.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/exceptions.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/log_config.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/py.typed +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/settings.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/typing.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/utils.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/wine.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine/wsgi.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/SOURCES.txt +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/dependency_links.txt +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/requires.txt +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/top_level.txt +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/setup.cfg +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/tests/test_bidutils.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/tests/test_bounty.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/tests/test_engine.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/tests/test_utils.py +0 -0
- {polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/tests/test_wine.py +0 -0
|
@@ -46,10 +46,14 @@ class CeleryBackend:
|
|
|
46
46
|
lifecycle=contextlib.nullcontext,
|
|
47
47
|
deliver_func=None,
|
|
48
48
|
deliver_task_name=None,
|
|
49
|
+
backend_kwargs=None,
|
|
49
50
|
):
|
|
50
51
|
# lazy setting the backend
|
|
51
52
|
if CeleryBackend.app is None:
|
|
52
|
-
|
|
53
|
+
config_kwargs: dict = backend_kwargs or {}
|
|
54
|
+
CeleryBackend.app = celery.Celery(
|
|
55
|
+
'polyswarm_engine_celery_backend', config_source=CeleryConfig(**config_kwargs)
|
|
56
|
+
)
|
|
53
57
|
|
|
54
58
|
self.name = name
|
|
55
59
|
self._analyze = analyze
|
|
@@ -16,7 +16,7 @@ class EngineManager:
|
|
|
16
16
|
self.config = config or dict()
|
|
17
17
|
self.ctx = dict()
|
|
18
18
|
self.backend: CeleryBackend|None = None
|
|
19
|
-
self.backend_kwargs = dict()
|
|
19
|
+
self.backend_kwargs = backend_kwargs or dict()
|
|
20
20
|
self.cmd = CommandRegistry()
|
|
21
21
|
# in case a lifecycle is not defined, use a nop context manager
|
|
22
22
|
self._lifecycle = lambda: contextlib.nullcontext()
|
|
@@ -42,7 +42,7 @@ class EngineManager:
|
|
|
42
42
|
self._analyze,
|
|
43
43
|
self._head,
|
|
44
44
|
self._lifecycle,
|
|
45
|
-
|
|
45
|
+
backend_kwargs=self.backend_kwargs,
|
|
46
46
|
)
|
|
47
47
|
with self.backend.run() as backend:
|
|
48
48
|
yield backend
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "polyswarm_engine"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.5"
|
|
8
8
|
description = "Polyswarm engine libarary"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -101,7 +101,7 @@ split_before_dot = "true"
|
|
|
101
101
|
include-package-data = false
|
|
102
102
|
|
|
103
103
|
[tool.bumpversion]
|
|
104
|
-
current_version = "3.2.
|
|
104
|
+
current_version = "3.2.5"
|
|
105
105
|
commit = true
|
|
106
106
|
tag = false
|
|
107
107
|
sign_tags = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyswarm_engine-3.2.2 → polyswarm_engine-3.2.5}/polyswarm_engine.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|