climate-ref-celery 0.5.4__tar.gz → 0.6.0__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.
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/PKG-INFO +6 -3
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/pyproject.toml +9 -8
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/app.py +5 -10
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/.gitignore +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/LICENCE +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/NOTICE +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/README.md +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/__init__.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/__init__.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/base.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/dev.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/prod.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/cli.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/executor.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/py.typed +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/tasks.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/worker_tasks.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/conftest.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/unit/test_app.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/unit/test_cli.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/unit/test_executor.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/unit/test_tasks.py +0 -0
- {climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/tests/unit/test_worker_tasks.py +0 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: climate-ref-celery
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Celery app for mananging tasks and workers
|
|
5
5
|
Author-email: Jared Lewis <jared.lewis@climate-resource.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
6
7
|
License-File: LICENCE
|
|
7
8
|
License-File: NOTICE
|
|
8
|
-
Classifier: Development Status ::
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
10
|
Classifier: Intended Audience :: Developers
|
|
10
11
|
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
13
|
Classifier: Operating System :: OS Independent
|
|
12
14
|
Classifier: Programming Language :: Python
|
|
13
15
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -17,7 +19,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
17
19
|
Classifier: Topic :: Scientific/Engineering
|
|
18
20
|
Requires-Python: >=3.11
|
|
19
21
|
Requires-Dist: celery[redis]>=5.4.0
|
|
20
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: climate-ref
|
|
23
|
+
Requires-Dist: climate-ref-core
|
|
21
24
|
Requires-Dist: environs>=11
|
|
22
25
|
Requires-Dist: loguru>=0.7.2
|
|
23
26
|
Requires-Dist: tqdm>=4.67.1
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "climate-ref-celery"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.6.0"
|
|
4
4
|
description = "Celery app for mananging tasks and workers"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
7
7
|
{ name = "Jared Lewis", email = "jared.lewis@climate-resource.com" }
|
|
8
8
|
]
|
|
9
|
+
license = "Apache-2.0"
|
|
9
10
|
requires-python = ">=3.11"
|
|
10
11
|
classifiers = [
|
|
11
|
-
"Development Status ::
|
|
12
|
-
"Intended Audience :: Developers",
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
13
|
"Operating System :: OS Independent",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
14
15
|
"Intended Audience :: Science/Research",
|
|
15
16
|
"Programming Language :: Python",
|
|
16
17
|
"Programming Language :: Python :: 3",
|
|
@@ -18,9 +19,11 @@ classifiers = [
|
|
|
18
19
|
"Programming Language :: Python :: 3.12",
|
|
19
20
|
"Programming Language :: Python :: 3.13",
|
|
20
21
|
"Topic :: Scientific/Engineering",
|
|
22
|
+
"License :: OSI Approved :: Apache Software License",
|
|
21
23
|
]
|
|
22
24
|
dependencies = [
|
|
23
|
-
"
|
|
25
|
+
"climate-ref",
|
|
26
|
+
"climate-ref-core",
|
|
24
27
|
"celery[redis]>=5.4.0",
|
|
25
28
|
"typer>=0.12.0",
|
|
26
29
|
"environs>=11",
|
|
@@ -32,14 +35,12 @@ dependencies = [
|
|
|
32
35
|
ref-celery = "climate_ref_celery.cli:app"
|
|
33
36
|
|
|
34
37
|
|
|
35
|
-
[
|
|
36
|
-
dev
|
|
38
|
+
[dependency-groups]
|
|
39
|
+
dev = [
|
|
37
40
|
"celery-types>=0.23.0",
|
|
38
41
|
"types-tqdm>=4.67.0.20250301",
|
|
39
42
|
]
|
|
40
43
|
|
|
41
|
-
[tool.uv.sources]
|
|
42
|
-
ref-core = { workspace = true }
|
|
43
44
|
|
|
44
45
|
[build-system]
|
|
45
46
|
requires = ["hatchling"]
|
|
@@ -11,7 +11,7 @@ from loguru import logger
|
|
|
11
11
|
from rich.pretty import pretty_repr
|
|
12
12
|
|
|
13
13
|
from climate_ref.config import Config
|
|
14
|
-
from climate_ref_core.logging import
|
|
14
|
+
from climate_ref_core.logging import initialise_logging
|
|
15
15
|
|
|
16
16
|
os.environ.setdefault("CELERY_CONFIG_MODULE", "climate_ref_celery.celeryconf.dev")
|
|
17
17
|
|
|
@@ -33,16 +33,11 @@ def create_celery_app(name: str) -> Celery:
|
|
|
33
33
|
@setup_logging.connect
|
|
34
34
|
def setup_logging_handler(loglevel: int, **kwargs: Any) -> None: # pragma: no cover
|
|
35
35
|
"""Set up logging for the Celery worker using the celery signal"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
msg_format = (
|
|
40
|
-
"<green>{time:YYYY-MM-DD HH:mm:ss.SSS Z}</green> | <level>{level: <8}</level> | {process.name} | "
|
|
41
|
-
"<cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
|
|
42
|
-
)
|
|
36
|
+
# We ignore the format passed by Celery instead using our own configuration
|
|
37
|
+
config = Config.default()
|
|
38
|
+
msg_format = config.log_format
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
add_log_handler(level=loglevel, format=msg_format, colorize=True)
|
|
40
|
+
initialise_logging(level=loglevel, format=msg_format, log_directory=config.paths.log)
|
|
46
41
|
|
|
47
42
|
|
|
48
43
|
@worker_ready.connect
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/__init__.py
RENAMED
|
File without changes
|
{climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/base.py
RENAMED
|
File without changes
|
{climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/dev.py
RENAMED
|
File without changes
|
{climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/celeryconf/prod.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climate_ref_celery-0.5.4 → climate_ref_celery-0.6.0}/src/climate_ref_celery/worker_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|