-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
databases/py-dbt-snowflake: new port
The dbt-snowflake package contains all of the code enabling dbt to work with Snowflake. PR: 274583 Author: Pat Maddox <pat@patmaddox.com>
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
PORTNAME= dbt-snowflake | ||
PORTVERSION= 1.6.0 | ||
CATEGORIES= databases python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= pat@patmaddox.com | ||
COMMENT= Snowflake adapter plugin for dbt | ||
WWW= https://github.com/dbt-labs/dbt-snowflake | ||
|
||
LICENSE= APACHE20 | ||
|
||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}agate>0:textproc/py-agate@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}dbt-core>=1.6,<2:databases/py-dbt-core@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}snowflake-connector-python>=3.0,<4:databases/py-snowflake-connector-python@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}keyring>0:security/py-keyring@${PY_FLAVOR} | ||
|
||
USES= python | ||
USE_PYTHON= autoplist concurrent distutils | ||
|
||
# py-dbt-snowflake attempts to install __init__.py and the generated bytecode into | ||
# these directories which conflicts with those installed by py-dbt-core. We need to | ||
# delete these files and their entries in the generated plist post-install. | ||
COMMON_DIRS= dbt \ | ||
dbt/adapters \ | ||
dbt/include | ||
|
||
post-stage: | ||
.for dir in ${COMMON_DIRS:S|/|\/|g} | ||
@${REINPLACE_CMD} -e '/.*\/${dir}\/__init__.py/d' \ | ||
-e '/.*\/${dir}\/__pycache__.*/d' \ | ||
${WRKDIR}/.PLIST.pymodtmp | ||
.endfor | ||
.for dir in ${COMMON_DIRS} | ||
@(cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${dir} && ${RM} -r __pycache__ __init__.py) | ||
.endfor | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1691563233 | ||
SHA256 (dbt-snowflake-1.6.0.tar.gz) = 1e710aeafceaa57318dce58789595c813cc1c551f43a0e1ec03d34c6659f504c | ||
SIZE (dbt-snowflake-1.6.0.tar.gz) = 31680 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The dbt-snowflake package contains all of the code enabling dbt to work with | ||
Snowflake. |