dbt-common 1.21.0__py3-none-any.whl → 1.23.0__py3-none-any.whl

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/__about__.py CHANGED
@@ -1 +1 @@
1
- version = "1.21.0"
1
+ version = "1.23.0"
@@ -52,12 +52,11 @@ class EventManager:
52
52
  if force_warn_or_error_handling or (
53
53
  self.require_warn_or_error_handling and msg.info.level == "warn"
54
54
  ):
55
- event_name = type(e).__name__
56
- if self.warn_error or self.warn_error_options.includes(event_name):
55
+ if self.warn_error or self.warn_error_options.includes(e):
57
56
  # This has the potential to create an infinite loop if the handling of the raised
58
57
  # EventCompilationError fires an event as a warning instead of an error.
59
58
  raise EventCompilationError(e.message(), node)
60
- elif self.warn_error_options.silenced(event_name):
59
+ elif self.warn_error_options.silenced(e):
61
60
  # Return early if the event is silenced
62
61
  return
63
62
 
dbt_common/ui.py CHANGED
@@ -82,5 +82,9 @@ def warning_tag(msg: str) -> str:
82
82
  return f'[{yellow("WARNING")}]: {msg}'
83
83
 
84
84
 
85
+ def deprecation_tag(msg: str) -> str:
86
+ return warning_tag(f"Deprecated functionality\n\n{msg}")
87
+
88
+
85
89
  def error_tag(msg: str) -> str:
86
90
  return f'[{red("ERROR")}]: {msg}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-common
3
- Version: 1.21.0
3
+ Version: 1.23.0
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
@@ -1,4 +1,4 @@
1
- dbt_common/__about__.py,sha256=BJJwCMTmz-ZTFIZOVwnFlEBH6mtoBCr4D8lYd7TPzoo,19
1
+ dbt_common/__about__.py,sha256=aQAgejfvBJWgErscsekMI9-f-XZYA6Im-fYbFUo9xPI,19
2
2
  dbt_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  dbt_common/behavior_flags.py,sha256=hQzxCqQSweJbRp_xoQqNnlUF77PBuOdCdLOSdcBlkxk,4885
4
4
  dbt_common/constants.py,sha256=-Y5DIL1SDPQWtlCNizXRYxFgbx1D7LaLs1ysamvGMRk,278
@@ -10,7 +10,7 @@ dbt_common/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  dbt_common/record.py,sha256=QLrKppBHYuV7ZTckOMi4Gnz7jLQJcOa5kp4PwK0JmwY,21889
11
11
  dbt_common/semver.py,sha256=Znewz6tc_NBpXr4mZf20bK_RayPL4ODrnxDbkUZrrRo,15034
12
12
  dbt_common/tests.py,sha256=6lC_JuRtoYO6cbAF8-R5aTM4HtQiM_EH8X5m_97duGY,315
13
- dbt_common/ui.py,sha256=rc2TEM29raBFc_LXcg901pMDD07C2ohwp9qzkE-7pBY,2567
13
+ dbt_common/ui.py,sha256=rC-d4J3u0sBH_0L1AZdQ-mDxPrTDYecTFn65mNqQ-ig,2668
14
14
  dbt_common/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  dbt_common/clients/_jinja_blocks.py,sha256=eUjZLBtLCASJRRj1G8b9u15A3PQMDCKvytIdWkTLSP4,15451
16
16
  dbt_common/clients/agate_helper.py,sha256=anKKgKV5PSnFRuFeBwRMdHK3JCaQoUqB2ZXHD0su0Wo,9123
@@ -30,7 +30,7 @@ dbt_common/events/__init__.py,sha256=av08vfpxo0ek7PqZNtMxY8FODJ3xwph4ehRxgInx4LA
30
30
  dbt_common/events/base_types.py,sha256=bdDMbawAV0FkxmvuxgsTev82vxTuyu6rJiSkvEQPsO8,5525
31
31
  dbt_common/events/contextvars.py,sha256=EIs1P6NrJzx_IAV17x5cVqOAS4Lqbu6oc0etHtWCJOo,3097
32
32
  dbt_common/events/event_handler.py,sha256=jfi0PyqIOGnXCG9HEa0VIVULqNvXs1RYmAg0b50ChQs,1385
33
- dbt_common/events/event_manager.py,sha256=0CDHNh_qTjdj4blpJiJ7gq6YkP1NzjE0iIct4v_MdoA,4588
33
+ dbt_common/events/event_manager.py,sha256=ElltioymOwrDmSdYpiyTNPOEFIOWQMQ9b_hAARmf5aE,4528
34
34
  dbt_common/events/event_manager_client.py,sha256=5IVdIuRVi5xCNQGiZqXdywlED2kLj1W_Pj0lh2HiDiI,1115
35
35
  dbt_common/events/format.py,sha256=x1RWDZ8G7ZMHmxdld6Q4VXca4kvnhiQOIaQXkC6Uo0Q,1609
36
36
  dbt_common/events/functions.py,sha256=R3DuyNy2TqOwNyMACVOYtiG1NjZ9FQa6FWKkzMeMCBY,4767
@@ -57,7 +57,7 @@ dbt_common/utils/encoding.py,sha256=6_kSY2FvGNYMg7oX7PrbvVioieydih3Kl7Ii802LaHI,
57
57
  dbt_common/utils/executor.py,sha256=pNY0UbPlwQmTE69Vt_Rj91YGCIOEaqeYU3CjAds0T70,2454
58
58
  dbt_common/utils/formatting.py,sha256=JUn5rzJ-uajs9wPCN0-f2iRFY1pOJF5YjTD9dERuLoc,165
59
59
  dbt_common/utils/jinja.py,sha256=JXgNmJArGGy0h7qkbNLA3zaEQmoF1CxsNBYTlIwFXDw,1101
60
- dbt_common-1.21.0.dist-info/METADATA,sha256=l18o711trbF1jdi2Uj2jYWfAm9xPAg1GZLOiwDzLOgo,4946
61
- dbt_common-1.21.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
62
- dbt_common-1.21.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
- dbt_common-1.21.0.dist-info/RECORD,,
60
+ dbt_common-1.23.0.dist-info/METADATA,sha256=ba64BsaO0C5gCGrnpfKQ8IOxJsgdoX6ZKFJc7w3REMU,4946
61
+ dbt_common-1.23.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
62
+ dbt_common-1.23.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
+ dbt_common-1.23.0.dist-info/RECORD,,