Added
Link Here
|
1 |
PORTNAME= dbt-snowflake |
2 |
PORTVERSION= 1.6.0 |
3 |
CATEGORIES= databases python |
4 |
MASTER_SITES= PYPI |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
|
7 |
MAINTAINER= pat@patmaddox.com |
8 |
COMMENT= Snowflake adapter plugin for dbt |
9 |
WWW= https://github.com/dbt-labs/dbt-snowflake |
10 |
|
11 |
LICENSE= APACHE20 |
12 |
|
13 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}agate>0:textproc/py-agate@${PY_FLAVOR} \ |
14 |
${PYTHON_PKGNAMEPREFIX}dbt-core>=1.6,<2:databases/py-dbt-core@${PY_FLAVOR} \ |
15 |
${PYTHON_PKGNAMEPREFIX}snowflake-connector-python>=3.0,<4:databases/py-snowflake-connector-python@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}keyring>0:security/py-keyring@${PY_FLAVOR} |
17 |
|
18 |
USES= python |
19 |
USE_PYTHON= autoplist concurrent distutils |
20 |
|
21 |
# py-dbt-snowflake attempts to install __init__.py and the generated bytecode into |
22 |
# these directories which conflicts with those installed by py-dbt-core. We need to |
23 |
# delete these files and their entries in the generated plist post-install. |
24 |
COMMON_DIRS= dbt \ |
25 |
dbt/adapters \ |
26 |
dbt/include |
27 |
|
28 |
post-stage: |
29 |
.for dir in ${COMMON_DIRS:S|/|\/|g} |
30 |
@${REINPLACE_CMD} -e '/.*\/${dir}\/__init__.py/d' \ |
31 |
-e '/.*\/${dir}\/__pycache__.*/d' \ |
32 |
${WRKDIR}/.PLIST.pymodtmp |
33 |
.endfor |
34 |
.for dir in ${COMMON_DIRS} |
35 |
@(cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${dir} && ${RM} -r __pycache__ __init__.py) |
36 |
.endfor |
37 |
|
38 |
.include <bsd.port.mk> |