mirror of
https://github.com/dbt-labs/dbt-core
synced 2025-12-17 19:31:34 +00:00
* convert setup.py to pyproject.toml * move dev requirements into pyproject.toml * with setup.py gone we can install from root * lint cleanrly state intention to remove * convert precommit to use dev deps * consolidate version to pyproject.toml * editable req get rid of editable-req * docs updates * tweak configs for builds * fix script * changelog * fixes to build * revert unnecesary changes more simplification revert linting more simplification fix don’t need it
17 lines
390 B
Bash
Executable File
17 lines
390 B
Bash
Executable File
#!/bin/bash -e
|
|
set -e
|
|
|
|
# this is used in dbt-common for CI
|
|
|
|
repo=$1
|
|
ref=$2
|
|
target_req_file="dev-requirements.txt"
|
|
|
|
req_sed_pattern="s|${repo}.git@main|${repo}.git@${ref}|g"
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
# mac ships with a different version of sed that requires a delimiter arg
|
|
sed -i "" "$req_sed_pattern" "$target_req_file"
|
|
else
|
|
sed -i "$req_sed_pattern" "$target_req_file"
|
|
fi
|