Files
dbt-core/scripts/build-dist.sh
colin-rogers-dbt 15dcb9a19d Remove dbt-postgres and dbt-tests-adapter from dbt-core (#9492)
* delete dbt-tests-adapter and dbt-postgres from dbt-core

* update non-code files to reflect change

* add changie

* update build-dist.sh

* update tox.ini

* fix build-dist.sh

* move adapter tests into /functional dir

* remove adapter unit tests

* update code comments and README.md
2024-02-05 12:28:57 -08:00

25 lines
395 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
DBT_PATH="$( cd "$(dirname "$0")/.." ; pwd -P )"
PYTHON_BIN=${PYTHON_BIN:-python}
echo "$PYTHON_BIN"
set -x
rm -rf "$DBT_PATH"/dist
rm -rf "$DBT_PATH"/build
mkdir -p "$DBT_PATH"/dist
rm -rf "$DBT_PATH"/core/dist
rm -rf "$DBT_PATH"core/build
cd "$DBT_PATH"/core
$PYTHON_BIN setup.py sdist bdist_wheel
cp -r "$DBT_PATH"/"core"/dist/* "$DBT_PATH"/dist/
set +x