dbt-common 0.1.5__tar.gz → 0.1.6__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_common-0.1.5 → dbt_common-0.1.6}/PKG-INFO +2 -2
- dbt_common-0.1.6/dbt_common/__about__.py +1 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/contextvars.py +9 -9
- {dbt_common-0.1.5 → dbt_common-0.1.6}/pyproject.toml +1 -1
- dbt_common-0.1.5/dbt_common/__about__.py +0 -1
- {dbt_common-0.1.5 → dbt_common-0.1.6}/.gitignore +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/CHANGELOG.md +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/LICENSE +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/README.md +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/codecov.yml +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/clients/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/clients/_jinja_blocks.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/clients/agate_helper.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/clients/jinja.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/clients/system.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/constants.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/context.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/config/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/config/base.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/config/materialization.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/config/metadata.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/config/properties.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/constraints.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/contracts/util.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/dataclass_schema.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/README.md +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/base_types.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/event_handler.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/event_manager.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/event_manager_client.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/format.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/functions.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/helpers.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/interfaces.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/logger.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/types.proto +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/types.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/events/types_pb2.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/base.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/cache.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/connection.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/contracts.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/events.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/jinja.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/macros.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/exceptions/system.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/helper_types.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/invocation.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/py.typed +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/semver.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/tests.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/ui.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/__init__.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/casting.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/connection.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/dict.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/encoding.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/executor.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/formatting.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/dbt_common/utils/jinja.py +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/docs/arch/adr-0001-build-tooling.md +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/agate/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/agate/data_types.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/colorama/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/isodate/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/config.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/const.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/helpers.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/code/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/code/builder.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/code/lines.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/helpers.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/mixin.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/common.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/pack.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/unpack.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/dialect.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/exceptions.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/helper.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/annotations.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/builder.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/dialects.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/models.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/schema.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/__init__.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/dict.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/json.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/msgpack.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/orjson.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/toml.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/mixins/yaml.pyi +0 -0
- {dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/types.pyi +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dbt-common
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.6
|
4
4
|
Summary: The shared common utilities that dbt-core and adapter implementations use
|
5
5
|
Project-URL: Homepage, https://github.com/dbt-labs/dbt-common
|
6
6
|
Project-URL: Repository, https://github.com/dbt-labs/dbt-common.git
|
@@ -30,7 +30,7 @@ Requires-Dist: jinja2~=3.0
|
|
30
30
|
Requires-Dist: jsonschema~=4.0
|
31
31
|
Requires-Dist: mashumaro[msgpack]~=3.9
|
32
32
|
Requires-Dist: pathspec<0.12,>=0.9
|
33
|
-
Requires-Dist: protobuf
|
33
|
+
Requires-Dist: protobuf<5.0.0,>=4.0.0
|
34
34
|
Requires-Dist: python-dateutil~=2.0
|
35
35
|
Requires-Dist: requests<3.0.0
|
36
36
|
Requires-Dist: typing-extensions~=4.4
|
@@ -0,0 +1 @@
|
|
1
|
+
version = "0.1.6"
|
@@ -58,12 +58,12 @@ def set_task_contextvars(**kwargs: Any) -> Mapping[str, contextvars.Token]:
|
|
58
58
|
def set_contextvars(prefix: str, **kwargs: Any) -> Mapping[str, contextvars.Token]:
|
59
59
|
cvar_tokens = {}
|
60
60
|
for k, v in kwargs.items():
|
61
|
-
|
61
|
+
prefix_key = f"{prefix}{k}"
|
62
62
|
try:
|
63
|
-
var = _context_vars[
|
63
|
+
var = _context_vars[prefix_key]
|
64
64
|
except KeyError:
|
65
|
-
var = contextvars.ContextVar(
|
66
|
-
_context_vars[
|
65
|
+
var = contextvars.ContextVar(prefix_key, default=Ellipsis)
|
66
|
+
_context_vars[prefix_key] = var
|
67
67
|
|
68
68
|
cvar_tokens[k] = var.set(v)
|
69
69
|
|
@@ -73,17 +73,17 @@ def set_contextvars(prefix: str, **kwargs: Any) -> Mapping[str, contextvars.Toke
|
|
73
73
|
# reset by Tokens
|
74
74
|
def reset_contextvars(prefix: str, **kwargs: contextvars.Token) -> None:
|
75
75
|
for k, v in kwargs.items():
|
76
|
-
|
77
|
-
var = _context_vars[
|
76
|
+
prefix_key = f"{prefix}{k}"
|
77
|
+
var = _context_vars[prefix_key]
|
78
78
|
var.reset(v)
|
79
79
|
|
80
80
|
|
81
81
|
# remove from contextvars
|
82
82
|
def unset_contextvars(prefix: str, *keys: str) -> None:
|
83
83
|
for k in keys:
|
84
|
-
|
85
|
-
|
86
|
-
_context_vars[
|
84
|
+
prefix_key = f"{prefix}{k}"
|
85
|
+
if prefix_key in _context_vars:
|
86
|
+
_context_vars[prefix_key].set(Ellipsis)
|
87
87
|
|
88
88
|
|
89
89
|
# Context manager or decorator to set and unset the context vars
|
@@ -1 +0,0 @@
|
|
1
|
-
version = "0.1.5"
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/code/__init__.pyi
RENAMED
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/code/builder.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/__init__.pyi
RENAMED
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/common.pyi
RENAMED
File without changes
|
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/core/meta/types/unpack.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-0.1.5 → dbt_common-0.1.6}/third-party-stubs/mashumaro/jsonschema/annotations.pyi
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|