Skip to content

Commit

Permalink
Install local packages in editable format (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Feb 3, 2025
1 parent f0791fd commit 4d579fa
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 22 deletions.
1 change: 0 additions & 1 deletion dbt-adapters/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ packages = ["src/dbt/adapters", "src/dbt/include"]
sources = ["src"]

[envs.default]
python = "3.9"
dependencies = [
"dbt_common @ git+https://github.com/dbt-labs/dbt-common.git",
'pre-commit==3.7.0',
Expand Down
17 changes: 9 additions & 8 deletions dbt-athena-community/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[build.targets.sdist]
include = ["src/dbt"]
packages = ["src/dbt/adapters"]
sources = ["src"]

[build.targets.wheel]
packages = ["src/dbt"]
packages = ["src/dbt/adapters"]
sources = ["src"]

[envs.default]
# the only build dependency is dbt-athena, which will never be published when running this
# because the versions need to be identical
detached = true
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
"pip install -e ../dbt-athena",
]
dependencies = [
"dbt-athena @ {root:uri}/../dbt-athena",
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"isort~=5.13",
"moto~=5.0.13",
"pre-commit~=3.5",
Expand Down
6 changes: 4 additions & 2 deletions dbt-athena/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ packages = ["src/dbt/adapters", "src/dbt/include"]
sources = ["src"]

[envs.default]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"moto~=5.0.13",
Expand Down
7 changes: 4 additions & 3 deletions dbt-bigquery/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ packages = ["src/dbt"]
sources = ["src"]

[envs.default]
python = "3.9"
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
Expand Down
6 changes: 4 additions & 2 deletions dbt-postgres/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ packages = ["src/dbt/adapters", "src/dbt/include"]
sources = ["src"]

[envs.default]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
Expand Down
7 changes: 5 additions & 2 deletions dbt-redshift/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ packages = ["src/dbt"]
sources = ["src"]

[envs.default]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
"pip install -e ../dbt-postgres",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
Expand Down
6 changes: 4 additions & 2 deletions dbt-snowflake/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ packages = ["src/dbt"]
sources = ["src"]

[envs.default]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt-tests-adapter @ {root:uri}/../dbt-tests-adapter",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
Expand Down
5 changes: 3 additions & 2 deletions dbt-tests-adapter/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ packages = ["src/dbt/tests"]
sources = ["src"]

[envs.default]
python = "3.9"
pre-install-commands = [
"pip install -e ../dbt-adapters",
]
dependencies = [
"dbt-adapters @ {root:uri}/../dbt-adapters",
"dbt_common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"pre-commit==3.7.0",
Expand Down

0 comments on commit 4d579fa

Please sign in to comment.