-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
psycopg2
based on platform (#60)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Determine `psycopg2` based on `platform_system` (Linux or other) | ||
time: 2024-04-12T15:31:54.861201-04:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "60" |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[project] | ||
dynamic = ["version", "dependencies"] | ||
dynamic = ["version"] | ||
name = "dbt-postgres" | ||
description = "The set of adapter protocols and base functionality that supports integration with dbt-core" | ||
readme = "README.md" | ||
|
@@ -22,6 +22,18 @@ classifiers = [ | |
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
dependencies = [ | ||
# install `psycopg2` on linux (assumed production) | ||
'psycopg2>=2.9,<3.0; platform_system == "Linux"', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mikealfare
Author
Contributor
|
||
# install `psycopg2-binary` on macos/windows (assumed development) | ||
'psycopg2-binary>=2.9,<3.0; platform_system != "Linux"', | ||
"dbt-adapters>=0.1.0a1,<2.0", | ||
# add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency | ||
"dbt-core>=1.8.0a1", | ||
# installed via dbt-adapters but used directly | ||
"dbt-common>=0.1.0a1,<2.0", | ||
"agate>=1.0,<2.0", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/dbt-labs/dbt-postgres" | ||
|
@@ -43,9 +55,6 @@ packages = ["dbt"] | |
[tool.hatch.version] | ||
path = "dbt/adapters/postgres/__version__.py" | ||
|
||
[tool.hatch.build.hooks.custom] | ||
path = "./hatch_build.py" | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", | ||
|
@mikealfare assuming platform =
Linux
to be prod (and not-that to be dev) is a big assumption.Why not let this be confirmed? Keeping
DBS_PSYCOPG2_NAME
around feels like a better solution than this.