dbt-postgres 1.8.0b2__tar.gz → 1.8.0b4__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.
Files changed (47) hide show
  1. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/PKG-INFO +6 -6
  2. dbt_postgres-1.8.0b4/dbt/adapters/postgres/__version__.py +1 -0
  3. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/pyproject.toml +13 -4
  4. dbt_postgres-1.8.0b2/dbt/adapters/postgres/__version__.py +0 -1
  5. dbt_postgres-1.8.0b2/hatch_build.py +0 -56
  6. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/.gitignore +0 -0
  7. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/LICENSE +0 -0
  8. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/README.md +0 -0
  9. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/__init__.py +0 -0
  10. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/__init__.py +0 -0
  11. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/column.py +0 -0
  12. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/connections.py +0 -0
  13. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/impl.py +0 -0
  14. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/relation.py +0 -0
  15. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/relation_configs/__init__.py +0 -0
  16. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/relation_configs/constants.py +0 -0
  17. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/relation_configs/index.py +0 -0
  18. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/adapters/postgres/relation_configs/materialized_view.py +0 -0
  19. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/__init__.py +0 -0
  20. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/dbt_project.yml +0 -0
  21. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/adapters.sql +0 -0
  22. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/catalog.sql +0 -0
  23. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/materializations/incremental_strategies.sql +0 -0
  24. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/materializations/snapshot_merge.sql +0 -0
  25. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/alter.sql +0 -0
  26. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/create.sql +0 -0
  27. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/describe.sql +0 -0
  28. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/drop.sql +0 -0
  29. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/refresh.sql +0 -0
  30. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/materialized_view/rename.sql +0 -0
  31. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/table/drop.sql +0 -0
  32. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/table/rename.sql +0 -0
  33. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/table/replace.sql +0 -0
  34. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/view/drop.sql +0 -0
  35. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/view/rename.sql +0 -0
  36. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations/view/replace.sql +0 -0
  37. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/relations.sql +0 -0
  38. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/timestamps.sql +0 -0
  39. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/any_value.sql +0 -0
  40. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/columns_spec_ddl.sql +0 -0
  41. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/dateadd.sql +0 -0
  42. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/datediff.sql +0 -0
  43. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/last_day.sql +0 -0
  44. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/listagg.sql +0 -0
  45. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/macros/utils/split_part.sql +0 -0
  46. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/profile_template.yml +0 -0
  47. {dbt_postgres-1.8.0b2 → dbt_postgres-1.8.0b4}/dbt/include/postgres/sample_profiles.yml +0 -0
@@ -1,7 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-postgres
3
- Version: 1.8.0b2
4
- Dynamic: Requires-Dist
3
+ Version: 1.8.0b4
5
4
  Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
6
5
  Project-URL: Homepage, https://github.com/dbt-labs/dbt-postgres
7
6
  Project-URL: Documentation, https://docs.getdbt.com
@@ -22,11 +21,12 @@ Classifier: Programming Language :: Python :: 3.9
22
21
  Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.11
24
23
  Requires-Python: >=3.8.0
25
- Requires-Dist: dbt-adapters>=0.1.0a1,<2.0
24
+ Requires-Dist: agate<2.0,>=1.0
25
+ Requires-Dist: dbt-adapters<2.0,>=0.1.0a1
26
+ Requires-Dist: dbt-common<2.0,>=0.1.0a1
26
27
  Requires-Dist: dbt-core>=1.8.0a1
27
- Requires-Dist: dbt-common>=0.1.0a1,<2.0
28
- Requires-Dist: agate>=1.0,<2.0
29
- Requires-Dist: psycopg2-binary>=2.9,<3.0
28
+ Requires-Dist: psycopg2-binary<3.0,>=2.9; platform_system != 'Linux'
29
+ Requires-Dist: psycopg2<3.0,>=2.9; platform_system == 'Linux'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  <p align="center">
@@ -0,0 +1 @@
1
+ version = "1.8.0b4"
@@ -1,5 +1,5 @@
1
1
  [project]
2
- dynamic = ["version", "dependencies"]
2
+ dynamic = ["version"]
3
3
  name = "dbt-postgres"
4
4
  description = "The set of adapter protocols and base functionality that supports integration with dbt-core"
5
5
  readme = "README.md"
@@ -22,6 +22,18 @@ classifiers = [
22
22
  "Programming Language :: Python :: 3.10",
23
23
  "Programming Language :: Python :: 3.11",
24
24
  ]
25
+ dependencies = [
26
+ # install `psycopg2` on linux (assumed production)
27
+ 'psycopg2>=2.9,<3.0; platform_system == "Linux"',
28
+ # install `psycopg2-binary` on macos/windows (assumed development)
29
+ 'psycopg2-binary>=2.9,<3.0; platform_system != "Linux"',
30
+ "dbt-adapters>=0.1.0a1,<2.0",
31
+ # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
32
+ "dbt-core>=1.8.0a1",
33
+ # installed via dbt-adapters but used directly
34
+ "dbt-common>=0.1.0a1,<2.0",
35
+ "agate>=1.0,<2.0",
36
+ ]
25
37
 
26
38
  [project.urls]
27
39
  Homepage = "https://github.com/dbt-labs/dbt-postgres"
@@ -43,9 +55,6 @@ packages = ["dbt"]
43
55
  [tool.hatch.version]
44
56
  path = "dbt/adapters/postgres/__version__.py"
45
57
 
46
- [tool.hatch.build.hooks.custom]
47
- path = "./hatch_build.py"
48
-
49
58
  [tool.hatch.envs.default]
50
59
  dependencies = [
51
60
  "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
@@ -1 +0,0 @@
1
- version = "1.8.0b2"
@@ -1,56 +0,0 @@
1
- import os
2
- from typing import Any, Dict
3
-
4
- from hatchling.builders.config import BuilderConfig
5
- from hatchling.builders.hooks.plugin.interface import BuildHookInterface
6
- from hatchling.plugin import hookimpl
7
-
8
- BASE_DEPS = [
9
- # psycopg2 dependency installed in custom hatch_build.py
10
- "dbt-adapters>=0.1.0a1,<2.0",
11
- # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
12
- "dbt-core>=1.8.0a1",
13
- # installed via dbt-adapters but used directly
14
- "dbt-common>=0.1.0a1,<2.0",
15
- "agate>=1.0,<2.0",
16
- ]
17
-
18
- PSYCOPG2_MESSAGE = """
19
- No package name override was set.
20
- Using 'psycopg2-binary' package to satisfy 'psycopg2'
21
-
22
- If you experience segmentation faults, silent crashes, or installation errors,
23
- consider retrying with the 'DBT_PSYCOPG2_NAME' environment variable set to
24
- 'psycopg2'. It may require a compiler toolchain and development libraries!
25
- """.strip()
26
-
27
-
28
- def _dbt_psycopg2_name():
29
- # if the user chose something, use that
30
- package_name = os.getenv("DBT_PSYCOPG2_NAME", "")
31
- if package_name:
32
- return package_name
33
-
34
- # default to psycopg2-binary for all OSes/versions
35
- print(PSYCOPG2_MESSAGE)
36
- return "psycopg2-binary"
37
-
38
-
39
- class CustomBuildHook(BuildHookInterface[BuilderConfig]):
40
- """
41
- Custom build hook to install psycopg2 instead of psycopg2-binary based on the presence of `DBT_PSYCOPG2_NAME` env
42
- var. This is necessary as psycopg2-binary is better for local development, but psycopg2 is better for production.
43
- """
44
-
45
- def __init__(self, *args: Any, **kwargs: Any) -> None:
46
- super().__init__(*args, **kwargs)
47
-
48
- def initialize(self, version: str, build_data: Dict) -> None:
49
- build_data["dependencies"] = BASE_DEPS
50
- psycopg2_pkg_name = _dbt_psycopg2_name()
51
- build_data["dependencies"].append(f"{psycopg2_pkg_name}>=2.9,<3.0")
52
-
53
-
54
- @hookimpl
55
- def hatch_register_build_hook():
56
- return CustomBuildHook
File without changes
File without changes