dbt-copilot-python 0.1.5.dev5__tar.gz → 0.2.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.
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/PKG-INFO +5 -4
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/README.md +4 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/celery_health_check/heartbeat.py +2 -2
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/pyproject.toml +2 -4
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/LICENSE +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/__init__.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/celery_health_check/__init__.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/celery_health_check/const.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/celery_health_check/healthcheck.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/database.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/network.py +0 -0
- {dbt_copilot_python-0.1.5.dev5 → dbt_copilot_python-0.2.0}/dbt_copilot_python/utility.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dbt-copilot-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Helper functions to run Django and Flask applications in AWS Copilot/ECS.
|
|
5
5
|
Author: Department for Business and Trade Platform Team
|
|
6
6
|
Author-email: sre-team@digital.trade.gov.uk
|
|
@@ -16,9 +16,6 @@ Requires-Dist: opentelemetry-exporter-otlp (==1.22.0)
|
|
|
16
16
|
Requires-Dist: opentelemetry-instrumentation-wsgi (==0.43b0)
|
|
17
17
|
Requires-Dist: opentelemetry-propagator-aws-xray (>=1.0.1,<2.0.0)
|
|
18
18
|
Requires-Dist: opentelemetry-sdk-extension-aws (>=2.0.1,<3.0.0)
|
|
19
|
-
Requires-Dist: pytest-celery (>=0.0.0,<0.0.1)
|
|
20
|
-
Requires-Dist: pytest-mock (>=3.12.0,<4.0.0)
|
|
21
|
-
Requires-Dist: redis (>=5.0.1,<6.0.0)
|
|
22
19
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
23
20
|
Description-Content-Type: text/markdown
|
|
24
21
|
|
|
@@ -30,6 +27,10 @@ A set of utility functions for running Django & Flask apps in AWS ECS via AWS Co
|
|
|
30
27
|
|
|
31
28
|
## Using `dbt-copilot-python`
|
|
32
29
|
|
|
30
|
+
### Supported Python versions
|
|
31
|
+
|
|
32
|
+
3.9, 3.10, 3.11 and 3.12.
|
|
33
|
+
|
|
33
34
|
### Installation
|
|
34
35
|
|
|
35
36
|
```shell
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from datetime import UTC
|
|
2
1
|
from datetime import datetime
|
|
3
2
|
|
|
4
3
|
from celery import bootsteps
|
|
4
|
+
from dateutil.tz import tz
|
|
5
5
|
|
|
6
6
|
from .const import HEARTBEAT_FILE
|
|
7
7
|
|
|
@@ -26,4 +26,4 @@ class HeartBeat(bootsteps.StartStopStep):
|
|
|
26
26
|
HEARTBEAT_FILE.unlink(missing_ok=True)
|
|
27
27
|
|
|
28
28
|
def update_heartbeat_file(self, worker):
|
|
29
|
-
HEARTBEAT_FILE.write_text(str(datetime.timestamp(datetime.now(UTC))))
|
|
29
|
+
HEARTBEAT_FILE.write_text(str(datetime.timestamp(datetime.now(tz=tz.UTC))))
|
|
@@ -3,7 +3,7 @@ line-length = 100
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "dbt-copilot-python"
|
|
6
|
-
version = "0.
|
|
6
|
+
version = "0.2.0"
|
|
7
7
|
description = "Helper functions to run Django and Flask applications in AWS Copilot/ECS."
|
|
8
8
|
authors = ["Department for Business and Trade Platform Team <sre-team@digital.trade.gov.uk>"]
|
|
9
9
|
readme = "README.md"
|
|
@@ -18,15 +18,13 @@ opentelemetry-instrumentation-wsgi = "0.43b0"
|
|
|
18
18
|
opentelemetry-propagator-aws-xray = "^1.0.1"
|
|
19
19
|
opentelemetry-sdk-extension-aws = "^2.0.1"
|
|
20
20
|
requests = "^2.31.0"
|
|
21
|
-
pytest-celery = "^0.0.0"
|
|
22
|
-
redis = "^5.0.1"
|
|
23
|
-
pytest-mock = "^3.12.0"
|
|
24
21
|
|
|
25
22
|
[tool.poetry.group.dev.dependencies]
|
|
26
23
|
pre-commit = "^3.3.3"
|
|
27
24
|
pytest = "^7.3.2"
|
|
28
25
|
requests-mock = "^1.11.0"
|
|
29
26
|
tox = "^4.6.3"
|
|
27
|
+
pytest-celery = "^0.0.0"
|
|
30
28
|
|
|
31
29
|
[build-system]
|
|
32
30
|
requires = ["poetry-core"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|