Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install local packages in editable format #756

Merged
merged 11 commits into from
Feb 3, 2025
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