View | Details | Raw Unified | Return to bug 274583
Collapse All | Expand All

(-)b/databases/Makefile (+1 lines)
Lines 757-762 Link Here
757
    SUBDIR += py-dbf
757
    SUBDIR += py-dbf
758
    SUBDIR += py-dbt-core
758
    SUBDIR += py-dbt-core
759
    SUBDIR += py-dbt-semantic-interfaces
759
    SUBDIR += py-dbt-semantic-interfaces
760
    SUBDIR += py-dbt-snowflake
760
    SUBDIR += py-dbutils
761
    SUBDIR += py-dbutils
761
    SUBDIR += py-duckdb
762
    SUBDIR += py-duckdb
762
    SUBDIR += py-fakeredis
763
    SUBDIR += py-fakeredis
(-)b/databases/py-dbt-snowflake/Makefile (+38 lines)
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>
(-)b/databases/py-dbt-snowflake/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1691563233
2
SHA256 (dbt-snowflake-1.6.0.tar.gz) = 1e710aeafceaa57318dce58789595c813cc1c551f43a0e1ec03d34c6659f504c
3
SIZE (dbt-snowflake-1.6.0.tar.gz) = 31680
(-)b/databases/py-dbt-snowflake/pkg-descr (-1 / +2 lines)
Added Link Here
0
- 
1
The dbt-snowflake package contains all of the code enabling dbt to work with
2
Snowflake.

Return to bug 274583