dbt_core_experimental_parser 2.0.0b2__tar.gz → 2.0.0rc1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-core-experimental-parser
3
- Version: 2.0.0b2
3
+ Version: 2.0.0rc1
4
4
  Summary: Build analytics the way engineers build applications
5
5
  Requires-Python: >=3.9
6
6
  License: Apache-2.0
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
24
24
 
25
25
  > [!WARNING]
26
26
  > **dbt Core v1 development has moved to the [`1.latest`](https://github.com/dbt-labs/dbt-core/tree/1.latest) branch.**
27
- > The `main` branch now hosts dbt Core v2.0 (alpha) — a ground-up rewrite in Rust that is the foundation of the Fusion engine. If you're looking for the Python implementation of dbt Core, switch to [`1.latest`](https://github.com/dbt-labs/dbt-core/tree/1.latest).
27
+ > The `main` branch now hosts dbt Core v2.0 (beta) — a ground-up rewrite in Rust that is the foundation of the Fusion engine. If you're looking for the Python implementation of dbt Core, switch to [`1.latest`](https://github.com/dbt-labs/dbt-core/tree/1.latest).
28
28
 
29
29
  **[dbt](https://www.getdbt.com/)** enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
30
30
 
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
32
32
 
33
33
  ## About dbt Core v2.0
34
34
 
35
- > 🚧 dbt Core v2.0 is in alpha. Behavior, APIs, and on-disk formats may change before the stable release.
35
+ > 🚧 dbt Core v2.0 is in beta. Behavior, APIs, and on-disk formats may change before the stable release.
36
36
 
37
37
  dbt Core v2.0 is engineered for performance at scale — parsing, compiling, and running projects in a fraction of the time compared to v1. It's released under the Apache 2.0 license and is the foundation of the [Fusion engine](https://docs.getdbt.com/docs/fusion/about-fusion).
38
38
 
@@ -8,6 +8,8 @@ Uses only the stdlib plus ``packaging`` (declared in pyproject build-requires).
8
8
 
9
9
  import hashlib
10
10
  import json
11
+ import os
12
+ import sys
11
13
  import time
12
14
  import urllib.error
13
15
  import urllib.request
@@ -43,6 +45,37 @@ def _select_wheel():
43
45
  )
44
46
 
45
47
 
48
+ def _emit_notice():
49
+ """Print the manifest's install-time notice, if it carries one.
50
+
51
+ pip and uv run the build backend as a subprocess and only surface its output
52
+ when the build *fails*, so stderr alone would hide this from a normal
53
+ install. Writing to the controlling terminal as well is best-effort: with no
54
+ tty (CI, redirected output, Windows with no console) it just falls through to
55
+ stderr, where `-v` and the pip log still pick it up. Both land under `-v`,
56
+ which is better than the notice going unseen.
57
+ """
58
+ notice = _MANIFEST.get("notice")
59
+ if not notice:
60
+ return
61
+ text = "\n" + notice.rstrip("\n") + "\n"
62
+ sys.stderr.write(text)
63
+ sys.stderr.flush()
64
+ try:
65
+ with open(
66
+ "CONOUT$" if os.name == "nt" else "/dev/tty",
67
+ "w",
68
+ encoding="utf-8",
69
+ errors="replace",
70
+ ) as tty:
71
+ # uv repaints its progress lines over whatever sits at the cursor,
72
+ # clobbering the tail of the notice; the trailing blanks give that
73
+ # repaint something other than the text to clear.
74
+ tty.write(text + "\n\n\n")
75
+ except (OSError, ValueError):
76
+ pass
77
+
78
+
46
79
  def _fetch(url):
47
80
  last = None
48
81
  for attempt in range(1, _RETRIES + 1):
@@ -60,6 +93,7 @@ def _fetch(url):
60
93
 
61
94
 
62
95
  def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
96
+ _emit_notice()
63
97
  entry = _select_wheel()
64
98
  filename = entry["filename"]
65
99
  url = "{base}/{file}".format(base=_MANIFEST["base_url"].rstrip("/"), file=filename)
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "dbt-core-experimental-parser",
3
+ "version": "2.0.0rc1",
4
+ "base_url": "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-rc.1",
5
+ "wheels": {
6
+ "macosx_10_12_x86_64": {
7
+ "filename": "dbt_core_experimental_parser-2.0.0rc1-py3-none-macosx_10_12_x86_64.whl",
8
+ "sha256": "ba885e9f8759c2efa181bf4118188d8277cbe50359a7c7ca4aef2fd16b1898e9"
9
+ },
10
+ "macosx_11_0_arm64": {
11
+ "filename": "dbt_core_experimental_parser-2.0.0rc1-py3-none-macosx_11_0_arm64.whl",
12
+ "sha256": "e84d9fffe1e7a256d7c3ee0c34bb77f27fd7797b4199fc37bc0f04ae9836317c"
13
+ },
14
+ "manylinux_2_28_aarch64": {
15
+ "filename": "dbt_core_experimental_parser-2.0.0rc1-py3-none-manylinux_2_28_aarch64.whl",
16
+ "sha256": "b7315d1e0fdf462669810fd4a83b6dc44d53859875e0b6fcf34f1767c028a66f"
17
+ },
18
+ "manylinux_2_28_x86_64": {
19
+ "filename": "dbt_core_experimental_parser-2.0.0rc1-py3-none-manylinux_2_28_x86_64.whl",
20
+ "sha256": "d4666ea7b5a1e16ee027c02d87ec150b76fb61aedeb3e193fd3b985d7cb682f9"
21
+ },
22
+ "win_amd64": {
23
+ "filename": "dbt_core_experimental_parser-2.0.0rc1-py3-none-win_amd64.whl",
24
+ "sha256": "390ebaa2446ad7c5d408de637b5db395657e80628fd0e3ea577b68b53ac5aa3a"
25
+ }
26
+ }
27
+ }
@@ -5,5 +5,5 @@ backend-path = ["."]
5
5
 
6
6
  [project]
7
7
  name = "dbt-core-experimental-parser"
8
- version = "2.0.0b2"
8
+ version = "2.0.0rc1"
9
9
  requires-python = ">=3.9"
@@ -1,27 +0,0 @@
1
- {
2
- "name": "dbt-core-experimental-parser",
3
- "version": "2.0.0b2",
4
- "base_url": "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-beta.2",
5
- "wheels": {
6
- "macosx_10_12_x86_64": {
7
- "filename": "dbt_core_experimental_parser-2.0.0b2-py3-none-macosx_10_12_x86_64.whl",
8
- "sha256": "ee398842928113f9a803329aae4b939b40acd27852da53e47f374ad4f6fe57f8"
9
- },
10
- "macosx_11_0_arm64": {
11
- "filename": "dbt_core_experimental_parser-2.0.0b2-py3-none-macosx_11_0_arm64.whl",
12
- "sha256": "66f57c40bc6453e42f1cb0cba2f48d15f409b6952a55968a58df7221d05d5b0f"
13
- },
14
- "manylinux_2_28_aarch64": {
15
- "filename": "dbt_core_experimental_parser-2.0.0b2-py3-none-manylinux_2_28_aarch64.whl",
16
- "sha256": "cf7587b69e9e59a33ad5d479a1caf341059b097c148633a96f2cbf903a9fadc1"
17
- },
18
- "manylinux_2_28_x86_64": {
19
- "filename": "dbt_core_experimental_parser-2.0.0b2-py3-none-manylinux_2_28_x86_64.whl",
20
- "sha256": "ff14be1f684c0e411e33a199fed34709601ad0d5d8029302cfeda3b883697cdb"
21
- },
22
- "win_amd64": {
23
- "filename": "dbt_core_experimental_parser-2.0.0b2-py3-none-win_amd64.whl",
24
- "sha256": "ef00352f904a7bfa11d3111366939657c72c65c03a3f8f178f420a9a52664d37"
25
- }
26
- }
27
- }