Skip to content

Commit

Permalink
install psycopg2 based on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 12, 2024
1 parent 461616f commit f541beb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 56 deletions.
56 changes: 0 additions & 56 deletions hatch_build.py

This file was deleted.

12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
# 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"
Expand Down

0 comments on commit f541beb

Please sign in to comment.